What feature will enable this requirement?

Posted by: Pdfprep Category: SCS-C01 Tags: , ,

Development teams in your organization use S3 buckets to store the log files for various applications hosted ir development environments in AWS. The developers want to keep the logs for one month for troubleshooting purposes, and then purge the logs.

What feature will enable this requirement?
A . Adding a bucket policy on the S3 bucket.
B . Configuring lifecycle configuration rules on the S3 bucket.
C . Creating an IAM policy for the S3 bucket.
D . Enabling CORS on the S3 bucket.

Answer: B

Explanation:

The AWS Documentation mentions the following on lifecycle policies

Lifecycle configuration enables you to specify the lifecycle management of objects in a bucket. The configuration is a set of one or more rules, where each rule defines an action for Amazon S3 to apply to a group of objects. These actions can be classified a« follows: Transition actions – In which you define when objects transition to another.

For example, you may choose to transition objects to the STANDARDJA (IA, for infrequent access) storage class 30 days after creation, or archive objects to the GLACIER storage class one year after creation. Expiration actions – In which you specify when the objects expire. Then Amazon S3 deletes the expired objects on your behalf.

Option A and C are invalid because neither bucket policies neither IAM policy’s can control

the purging of logs Option D is invalid CORS is used for accessing objects across domains

and not for purging of logs

For more information on AWS S3 Lifecycle policies, please visit the following URL:

com/AmazonS3/latest/d<

The correct answer is: Configuring lifecycle configuration rules on the S3 bucket. Submit your Feedback/Queries to our Experts

Leave a Reply

Your email address will not be published.