AWS Certified Developer Associate · Free Practice Question Medium

Question 12

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.)
  • 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 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.
  • C 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.
  • D Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
  • E Deploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role policy to allow access to the X-Ray API.
Reveal correct answers

Correct answer: A

Explanation

To address the errors reported in the application deployed on Amazon ECS with AWS Fargate, a developer should take the following steps: 1. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon. 2. Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API. These steps will help in tracing and diagnosing the issues within the microservices.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need