Q52 — AWS DVA-C02 Ch.1
Question 52 of 100 | ← Chapter 1
A developer needs to use AWS X-Ray to monitor an application running on Amazon EC2 instances. The developer has instrumented the application using the X-Ray SDK. How should monitoring be implemented?
- A. Configure X-Ray SDK sampling rules and targets. Activate the X-Ray daemon via the modify-instance-attribute command from the EC2 console or AWS CLI to set the XRayEnabled flag.
- B. Install the X-Ray daemon. Assign an IAM role with a policy permitting write access to X-Ray to the EC2 instance. ✓
- C. Install the X-Ray daemon. Configure it to forward data to Amazon EventBridge (Amazon CloudWatch Events). Grant the EC2 instance permissions to write to EventBridge (CloudWatch Events).
- D. Deploy the X-Ray SDK with the application and instrument the application code. Use the SDK logger to capture and send events.
Correct Answer: B. Install the X-Ray daemon. Assign an IAM role with a policy permitting write access to X-Ray to the EC2 instance.
Explanation
https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html#xray-daemon-permissions