A company built an ecommerce website on AWS using a three-tier web architecture. The application is Java-based and composed of an Amazon CloudFront distribution, an Apache web server layer of Amazon EC2 instances in an Auto Scaling group, and a backend Amazon Aurora MySQL database. Last month, during a promotional sales event, users reported errors and timeouts while adding items to their shopping carts. The operations team recovered the logs created by the web servers and reviewed Aurora DB cluster performance metrics. Some of the web servers were terminated before logs could be collected and the Aurora metrics were not sufficient for query performance analysis. Which combination of steps must the solutions architect take to improve application performance visibility during peak traffic events? (Choose three.)
- AConfigure the Aurora MySQL DB cluster to publish slow query and error logs to Amazon CloudWatch Logs. (correct answer)
- BImplement the AWS X-Ray SDK to trace incoming HTTP requests on the EC2 instances and implement tracing of SQL queries with the X-Ray SDK for Java. (correct answer)
- CConfigure the Aurora MySQL DB cluster to stream slow query and error logs to Amazon Kinesis.
- DInstall and configure an Amazon CloudWatch Logs agent on the EC2 instances to send the Apache logs to CloudWatch Logs. (correct answer)
- EEnable and configure AWS CloudTrail to collect and analyze application activity from Amazon EC2 and Aurora
- FEnable Aurora MySQL DB cluster performance benchmarking and publish the stream to AWS X-Ray.
Reveal answer & explanationHide answer
The correct answer is A, B, D. Option A: Configure the Aurora MySQL DB cluster to publish slow query and error logs to Amazon CloudWatch Logs. Option B: Implement the AWS X-Ray SDK to trace incoming HTTP requests on the EC2 instances and implement tracing of SQL queries with the X-Ray SDK for Java. Option D: Install and configure an Amazon CloudWatch Logs agent on the EC2 instances to send the Apache logs to CloudWatch Logs.
Explanation
Amazon EC2 provides resizable virtual servers when you need full control of the operating system. Amazon Aurora is a high-performance managed relational database with built-in replication and failover. Amazon CloudWatch collects metrics, logs and alarms to monitor and react to operational health.