DEA-C01 Question 516
Select 3You are designing a logging solution for a data processing application running on Amazon EC2. The application generates high volumes of log data that needs to be stored, analyzed, and queried later. The logs should be durable, scalable, and cost-effective. Which combination of services and configurations is the most appropriate for this use case?
- A
Use Amazon CloudWatch Logs to collect and monitor application logs, and configure log retention policies.
- B
Stream the logs from the application to Amazon Kinesis Data Firehose, and set the destination as Amazon S3.
- C
Store the logs directly on the EC2 instance's local disk to minimize storage costs.
- D
Enable AWS Glue to automatically parse and process the logs as they are generated.
- E
Use Amazon S3 for log storage and enable S3 Object Lock for immutability if required.
Show answer and explanation
Correct answers: A, B, E
Explanation
To design a scalable, durable, and cost-effective logging solution, you can use Amazon CloudWatch Logs for monitoring and collection, Amazon Kinesis Data Firehose to stream logs reliably to a storage destination, and Amazon S3 for durable and cost-effective long-term storage. Storing logs on the EC2 instance is not durable, and AWS Glue is not intended for direct log collection. S3 Object Lock can be enabled if log immutability is required for compliance.
- A. Correct.
Correct: Amazon CloudWatch Logs is ideal for monitoring and collecting logs from applications. It allows for log retention policies and real-time monitoring.
- B. Correct.
Correct: Amazon Kinesis Data Firehose can reliably stream logs to Amazon S3 or other destinations, ensuring scalability and durability.
- C. Incorrect.
Incorrect: Storing logs on the EC2 instance's local disk is not durable or scalable and may lead to data loss if the instance fails.
- D. Incorrect.
Incorrect: AWS Glue is not designed to directly handle log collection or real-time log processing. It is better suited for ETL tasks on stored data.
- E. Correct.
Correct: Amazon S3 is a cost-effective and scalable storage solution for logs. Enabling S3 Object Lock ensures data immutability if compliance is required.