
Answer-first summary for fast verification
Answer: Configure the CloudWatch log group retention policy to retain logs for 2 years.
Option D is the correct answer because CloudWatch allows you to configure a retention policy for log groups, which determines how long the logs are retained. By setting the retention period to 2 years, you ensure that the logs are retained for the required period. Option A only prevents deletion but does not ensure the logs are retained for 2 years. Option B transitions logs to Glacier after 1 year, which does not meet the 2-year retention requirement. Option C is not applicable as AWS Backup does not support backing up CloudWatch log groups.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is using Amazon CloudWatch to monitor its AWS resources. You need to design a solution that ensures the retention of CloudWatch log groups for a minimum of 2 years. Which of the following steps should you take to achieve this objective?
A
Enable S3 Object Lock on the CloudWatch log groups to prevent deletion for 2 years.
B
Create a lifecycle policy for the CloudWatch log groups to transition them to Glacier after 1 year and then delete them after 2 years.
C
Use AWS Backup to create a backup plan for the CloudWatch log groups with a 2-year retention period.
D
Configure the CloudWatch log group retention policy to retain logs for 2 years.
No comments yet.