SOA-C02 exam dumps

SOA-C02 practice question 162 of 341

AWS Certified SysOps Administrator - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SOA-C02 Question 162

Single answer

Your company uses Amazon S3 to store critical log files, and you are tasked with ensuring that any log file older than 90 days is automatically archived to Amazon S3 Glacier. You decide to automate this using a combination of AWS services. Which solution will allow you to achieve this?

  1. A

    Use Amazon EventBridge to create a rule that triggers every 90 days and moves the log files to Amazon S3 Glacier.

  2. B

    Create an S3 Lifecycle policy to automatically transition log files older than 90 days to Amazon S3 Glacier.

  3. C

    Use AWS Config to identify log files older than 90 days and set up a remediation action to move them to Amazon S3 Glacier.

  4. D

    Schedule an AWS Lambda function with Amazon EventBridge to scan the S3 bucket daily and move files older than 90 days to Amazon S3 Glacier.

Show answer and explanation

Correct answer: B

Explanation

S3 Lifecycle policies are specifically designed for managing the lifecycle of objects stored in Amazon S3. They allow you to define rules to transition objects to different storage classes or delete them based on age or other criteria. In this scenario, the most efficient and cost-effective solution is to configure an S3 Lifecycle policy to transition log files older than 90 days to Amazon S3 Glacier.

  • A. Incorrect.

    Amazon EventBridge cannot directly move files from S3 to Glacier. It is primarily used for event-driven workflows, not for lifecycle management of S3 objects.

  • B. Correct.

    An S3 Lifecycle policy is the most efficient way to automate the transition of objects based on their age. It is specifically designed for such use cases.

  • C. Incorrect.

    AWS Config can track the compliance of resources, but it is not capable of directly moving files between S3 storage classes.

  • D. Incorrect.

    While it is possible to use Amazon EventBridge and a Lambda function for this task, it would be a more complex and less cost-effective solution compared to using an S3 Lifecycle policy.

Timed practice exam

Take a SOA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam