DOP-C02 · Question #490
DOP-C02 Question #490: Real Exam Question with Answer & Explanation
The correct answer is D: Configure the log groups to have a retention period of 30 days. Create a CloudWatch subscription. Set the CloudWatch Logs retention to 30 days so the team can search logs in CloudWatch for the required period. Use a CloudWatch Logs subscription filter to stream log events to Amazon Data Firehose, which delivers logs directly to Amazon S3 with minimal operational overhead and
Question
A company has an application that streams logs to an Amazon CloudWatch Logs log group. The logs must be available for the team to search in CloudWatch for at least 30 days. Logs must be accessible with low latency for at least 90 days. After 180 days, log retrieval is rare and latency is not important. A DevOps engineer creates an Amazon S3 bucket to store the logs. Log availability metrics and data protection are important to the company. Which solution will meet these requirements in the MOST cost-effective way?
Options
- AConfigure the log group to have a retention period of 30 days and to use the infrequent access
- BConfigure the log group to have a retention period of 30 days and to use the infrequent access
- CConfigure the log groups to have a retention period of 30 days. Create a CloudWatch subscription
- DConfigure the log groups to have a retention period of 30 days. Create a CloudWatch subscription
Explanation
Set the CloudWatch Logs retention to 30 days so the team can search logs in CloudWatch for the required period. Use a CloudWatch Logs subscription filter to stream log events to Amazon Data Firehose, which delivers logs directly to Amazon S3 with minimal operational overhead and provides built-in delivery monitoring metrics. Store objects in S3 Standard-Infrequent Access after 90 days to keep retrieval low latency while reducing storage cost, then transition objects to S3 Glacier Deep Archive after 180 days to minimize long-term cost for rarely accessed logs where retrieval latency is acceptable.
Topics
Community Discussion
No community discussion yet for this question.