Medium1 markMultiple Choice

AWS SAA-C03 · Question 65 · Domain 4.1: Storage Cost Optimization

A company has a fleet of EC2 instances that generate log files. The logs are sent to Amazon CloudWatch Logs. The company needs to retain these logs for 5 years for compliance, but they are rarely queried after 30 days. What is the MOST cost-effective way to store these logs long-term?

Answer options:

A.

Keep the logs in CloudWatch Logs and set the retention period to 5 years.

B.

Export the logs from CloudWatch to Amazon S3, and use a lifecycle policy to transition them to S3 Glacier Deep Archive.

C.

Stream the logs to Amazon OpenSearch Service and retain them there.

D.

Use AWS Backup to backup the CloudWatch Logs to AWS Storage Gateway.

How to approach this question

Identify the need for 5-year retention of rarely accessed data. S3 Glacier Deep Archive is always the cheapest option for this.

Full Answer

B.Export the logs from CloudWatch to Amazon S3, and use a lifecycle policy to transition them to S3 Glacier Deep Archive.✓ Correct
Export the logs from CloudWatch to Amazon S3, and use a lifecycle policy to transition them to S3 Glacier Deep Archive.
CloudWatch Logs storage is more expensive than S3. Exporting logs to S3 and transitioning them to Glacier Deep Archive provides the lowest possible cost for long-term compliance archiving.

Common mistakes

Leaving logs in CloudWatch indefinitely, which incurs unnecessary storage costs.

Practice the full AWS SAA-C03 Practice Exam 7

65 questions · hints · full answers · grading

More questions from this exam