AWS Certified Developer – Associate — Question 238
A developer is building various microservices for an application that will run on Amazon EC2 instances. The developer needs to monitor the end-to-end view of the requests between the microservices and debug any issues in the various microservices.
What should the developer do to accomplish these tasks?
Answer options
- A. Use Amazon CloudWatch to aggregate the microservices' logs and metrics, and build the monitoring dashboard.
- B. Use AWS CloudTrail to aggregate the microservices' logs and metrics, and build the monitoring dashboard.
- C. Use the AWS X-Ray SDK to add instrumentation in all the microservices, and monitor using the X-Ray service map.
- D. Use AWS Health to monitor the health of all the microservices.
Correct answer: C
Explanation
The correct answer is C because AWS X-Ray is specifically designed for tracing requests across microservices, allowing for detailed analysis and debugging. Options A and B focus on log aggregation, which does not provide the end-to-end tracking required, while D is about monitoring the overall health rather than the request flow between services.