
Ultimate access to all questions.
You are designing a logging strategy for a distributed application that uses microservices architecture on AWS. The application includes services running on EC2 instances, containers in ECS, and serverless functions in Lambda. Describe how you would implement a unified logging approach that allows for easy correlation of logs across different services and ensures that logs are stored securely and can be easily queried for analysis.
A
Use AWS CloudTrail for all service logs and Amazon S3 for log storage.
B
Use Amazon CloudWatch Logs for EC2 and ECS logs, AWS X-Ray for Lambda traces, and Amazon Elasticsearch Service for log analysis.
C
Use Amazon Kinesis Data Firehose for log delivery, Amazon S3 for log storage, and Amazon Athena for log analysis.
D
Use AWS Config for configuration logs, Amazon CloudWatch Logs for operational logs, and Amazon Redshift for log analysis.