AWS Certified Developer – Associate — Question 44
A microservices application is deployed across multiple containers in Amazon Elastic Container Service (Amazon ECS). To improve performance, a developer wants to capture trace information between the microservices and visualize the microservices architecture.
Which solution will meet these requirements?
Answer options
- A. Build the container from the amazon/aws-xray-daemon base image. Use the AWS X-Ray SDK to instrument the application.
- B. Install the Amazon CloudWatch agent on the container image. Use the CloudWatch SDK to publish custom metrics from each of the microservices.
- C. Install the AWS X-Ray daemon on each of the ECS instances.
- D. Configure AWS CloudTrail data events to capture the traffic between the microservices.
Correct answer: A
Explanation
The correct answer is A because using the amazon/aws-xray-daemon base image along with the AWS X-Ray SDK allows for effective instrumentation and tracing of requests across microservices. Option B focuses on custom metrics rather than tracing, C does not provide the necessary instrumentation for microservices, and D captures API calls rather than trace data.