AWS Certified Developer – Associate (DVA-C02) — Question 416
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
AWS X-Ray is specifically designed to analyze and debug distributed applications, providing an end-to-end view of requests through its service map. Amazon CloudWatch and AWS CloudTrail are used for logging, metrics, and API auditing respectively, but they do not natively offer end-to-end distributed request tracing out-of-the-box. AWS Health is used to monitor the status of AWS infrastructure and services, not custom application-level microservice transactions.