
Answer-first summary for fast verification
Answer: Deploy the X-Ray daemon agent as a sidecar container, Provide the correct IAM task role to the X-Ray container
Deploy the X-Ray daemon agent as a sidecar container In Amazon ECS, create a Docker image that runs the X-Ray daemon, upload it to a Docker image repository, and then deploy it to your Amazon ECS cluster. You can use port mappings and network mode settings in your task definition file to allow your application to communicate with the daemon container. As we are using AWS Fargate, we do not have control over the underlying EC2 instance and thus we can't deploy the agent on the EC2 instance or run an X-Ray agent container as a daemon set (only available for ECS classic).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are planning to implement AWS X-Ray for tracing requests in your application, which is deployed as Docker containers using AWS Fargate. AWS X-Ray helps you analyze and debug distributed applications. To ensure the X-Ray daemon runs correctly in this environment, what steps do you need to take? (Select two)
A
Deploy the X-Ray daemon agent as a sidecar container
B
Deploy the X-Ray daemon agent as a process on your EC2 instance
C
Provide the correct IAM task role to the X-Ray container
D
Provide the correct IAM instance role to the EC2 instance
E
Deploy the X-Ray daemon agent as a daemon set on ECS
No comments yet.