AWS Certified Developer – Associate (DVA-C02) — Question 138
Users are reporting errors in an application. The application consists of several microservices that are deployed on Amazon Elastic Container Service (Amazon ECS) with AWS Fargate.
Which combination of steps should a developer take to fix the errors? (Choose two.)
Answer options
- A. Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API.
- B. Deploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role policy to allow access to the X-Ray API.
- C. Instrument the application by using the AWS X-Ray SDK. Update the application to use the PutXrayTrace API call to communicate with the X-Ray API.
- D. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
- E. Instrument the ECS task to send the stdout and stderr output to Amazon CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action.
Correct answer: A
Explanation
The correct answer is A because deploying AWS X-Ray as a sidecar container allows for detailed tracing of microservices and updating the task role policy ensures that the application can access the X-Ray API. Other options either incorrectly suggest the use of a daemonset, which is not applicable for Fargate, or do not properly address the tracing and policy needs for diagnostics.