DEA-C01 Question 364
Select 2You are working on an application that processes and analyzes e-commerce transactions in real-time using AWS services. The application needs to log all transaction data for future audits and troubleshooting. The logs must be stored durably, should allow querying, and need to be ingested with minimal latency. Which combination of services and configurations is best suited for this requirement?
- A
Use Amazon CloudWatch Logs to collect and store transaction logs, and enable log retention.
- B
Store the logs in Amazon S3 with lifecycle policies enabled for cost optimization.
- C
Use Amazon Kinesis Data Firehose to ingest logs into Amazon S3 in near real-time.
- D
Enable Amazon DynamoDB Streams to store logs for querying and real-time analytics.
- E
Use AWS Lambda to process logs and store them in Amazon RDS for querying.
Show answer and explanation
Correct answers: B, C
Explanation
The best combination for the given scenario is to use Amazon Kinesis Data Firehose to ingest logs into Amazon S3. S3 provides durable, cost-effective storage, and lifecycle policies can manage data retention costs. Kinesis Data Firehose ensures that logs are ingested with minimal latency, meeting the real-time logging requirement.
- A. Incorrect.
Amazon CloudWatch Logs is a good option for monitoring and troubleshooting, but it is not optimized for long-term storage or querying transaction logs.
- B. Correct.
Amazon S3 is a highly durable and cost-effective storage solution. Enabling lifecycle policies will help optimize costs by transitioning logs to lower-cost storage tiers over time.
- C. Correct.
Amazon Kinesis Data Firehose can ingest logs into Amazon S3 in near real-time, ensuring minimal latency while storing logs durably for future audits.
- D. Incorrect.
Amazon DynamoDB Streams is designed for change data capture in DynamoDB tables and not for storing or querying application logs.
- E. Incorrect.
Storing logs in Amazon RDS is not ideal because it is not cost-effective for large-scale log storage, and querying would be less efficient compared to tools like Amazon S3 with Athena.