DEA-C01 Question 519
Select 2You are building a data pipeline to process and analyze real-time application logs generated by a fleet of EC2 instances. The application logs need to be ingested, stored, and queried efficiently for insights, while ensuring scalability and fault tolerance. Which services and methods should you use to log application data in this scenario?
- A
Use Amazon Kinesis Data Firehose to ingest logs and deliver them to an S3 bucket for storage.
- B
Use Amazon RDS to store the application logs in a relational database for querying.
- C
Configure the EC2 instances to stream application logs directly to Amazon CloudWatch Logs.
- D
Use AWS Glue to clean and transform the logs before sending them to Amazon CloudWatch Logs.
- E
Enable AWS CloudTrail to capture and store logs generated by the application.
Show answer and explanation
Correct answers: A, C
Explanation
The best solutions for logging application data in this scenario involve using services that are purpose-built for log ingestion, storage, and querying. Amazon Kinesis Data Firehose provides a scalable and fault-tolerant way to ingest and store logs, while Amazon CloudWatch Logs is a powerful service for real-time monitoring and analysis of logs from EC2 instances. Together, these services fulfill the requirements of the scenario, whereas RDS, AWS Glue, and CloudTrail are not suitable for logging application data in this context.
- A. Correct.
Correct. Amazon Kinesis Data Firehose is a fully managed service that can ingest, transform, and store streaming data like application logs into destinations such as S3, Redshift, or Elasticsearch. It ensures scalability and fault tolerance.
- B. Incorrect.
Incorrect. Amazon RDS is not designed for storing large volumes of log data. It is better suited for structured data and relational database use cases rather than log ingestion and storage.
- C. Correct.
Correct. Streaming logs from EC2 to Amazon CloudWatch Logs is a recommended practice for log aggregation and monitoring. CloudWatch Logs allows you to query, analyze, and monitor log data efficiently.
- D. Incorrect.
Incorrect. AWS Glue is a service for data transformation and ETL processes but is not designed to send logs to CloudWatch Logs. It is not directly used in logging workflows.
- E. Incorrect.
Incorrect. AWS CloudTrail is used for logging API activity across AWS accounts and services but does not capture application logs generated by EC2 instances.