DEA-C01 Question 518
Select 4A company is running a high-traffic web application on AWS and needs to log application data for monitoring and troubleshooting. The development team wants to ensure that the logs are durable, scalable, and easily queryable while keeping costs low. Which combination of actions should the team take to meet these requirements?
- A
Configure the application to write logs directly to Amazon S3
- B
Use Amazon CloudWatch Logs to monitor and analyze application logs
- C
Enable Amazon S3 Lifecycle policies to transition logs to Amazon S3 Glacier for cost optimization
- D
Stream logs from Amazon CloudWatch Logs to Amazon Elasticsearch Service for real-time querying and analysis
- E
Store logs on EC2 instance volumes and periodically back them up to Amazon S3
Show answer and explanation
Correct answers: A, B, C, D
Explanation
The best practices for logging application data in AWS involve using scalable and durable services like Amazon S3 and Amazon CloudWatch Logs for storage and monitoring. Cost optimization can be achieved with S3 Lifecycle policies, while real-time querying and analysis can be implemented by integrating CloudWatch Logs with Amazon Elasticsearch Service. Storing logs directly on EC2 instances is not a scalable or durable solution, making it unsuitable for high-traffic applications.
- A. Correct.
Configuring the application to write logs directly to Amazon S3 ensures durability and scalability as S3 provides high availability and secure storage for large volumes of data.
- B. Correct.
Using Amazon CloudWatch Logs allows real-time monitoring, alerting, and analysis of application logs, making it suitable for troubleshooting and monitoring purposes.
- C. Correct.
Enabling Amazon S3 Lifecycle policies reduces costs by transitioning older logs to Amazon S3 Glacier, which is a cost-effective storage solution for infrequently accessed data.
- D. Correct.
Streaming logs from Amazon CloudWatch Logs to Amazon Elasticsearch Service enables real-time querying and visualization of log data using tools like Kibana, which is valuable for debugging and operational insights.
- E. Incorrect.
Storing logs on EC2 instance volumes is not recommended as it does not provide the durability and scalability required for large-scale logging, and managing backups manually is error-prone and inefficient.