exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 63 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 63
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer must use AWS X-Ray to monitor an application that is running on an Amazon EC2 instance. The developer has prepared the application by using the
X-Ray SDK.
What should the developer do to perform the monitoring?

  • A. Configure the X-Ray SDK sampling rule and target. Activate the X-Ray daemon from the EC2 console or the AWS CLI with the modify-instance-attribute command to set the XRayEnabled flag.
  • B. Install the X-Ray daemon. Assign an IAM role to the EC2 instance with a policy that allows writes to X-Ray.
  • C. Install the X-Ray daemon. Configure it to forward data to Amazon EventBridge (Amazon CloudWatch Events). Grant the EC2 instance permission to write to Event Bridge (CloudWatch Events).
  • D. Deploy the X-Ray SDK with the application, and instrument the application code. Use the SDK logger to capture and send the events.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sumanshu
4 months, 2 weeks ago
Selected Answer: B
B) Correct To monitor an application with AWS X-Ray on an Amazon EC2 instance, you need two key components: The X-Ray SDK: This is already integrated into the application, as mentioned in the question. The X-Ray daemon: This is a process that runs alongside the application and collects trace data sent by the SDK, then sends it to the X-Ray service. The daemon needs permissions to send trace data to X-Ray. This is achieved by attaching an IAM role with the AWSXrayWriteOnlyAccess policy to the EC2 instance.
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: B
yes B is correct answer
upvoted 1 times
AsmaZoheb
1 year, 3 months ago
this is from tutorial dojo Compute platform How to enable X-Ray daemon EC2/on-premises -Download and install X-Ray daemon Lambda Function- Enable the Active Tracing option Elastic Beanstalk- Enable the X-Ray Daemon option Amazon ECS-Use a Docker image that has X-Ray daemon
upvoted 2 times
...
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
In order to run an application on EC2 that sends information to X-Ray, we need first to install the daemon on the instance and then configure the instance's instance profile role assigning the rights to send tracing data to XRay. So, B is the correct answer
upvoted 2 times
...
may2021_r
2 years, 2 months ago
To monitor an application running on an Amazon EC2 instance using AWS X-Ray, the following steps must be performed: 1. Install the X-Ray daemon on the EC2 instance. 2. Assign an IAM role to the EC2 instance that has a policy that allows writes to X-Ray. This will allow the X-Ray daemon to send tracing data to X-Ray. 3. Prepare the application by using the X-Ray SDK and instrumenting the application code. Once these steps are completed, X-Ray will be able to collect and visualize the tracing data from the application. The X-Ray daemon will automatically collect tracing data from the application and send it to X-Ray for analysis. Configuring the X-Ray SDK sampling rule and target is not necessary to perform the monitoring. Similarly, configuring the X-Ray daemon to forward data to Event Bridge (CloudWatch Events) is not necessary as it can directly send data to X-Ray.
upvoted 4 times
...
aarti_k
2 years, 2 months ago
Its B right? why we want to configure event ?
upvoted 2 times
...
whenthan
2 years, 3 months ago
https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html#xray-daemon-permissions ans : B
upvoted 2 times
...
althu_1995
2 years, 3 months ago
Can anyone tell me why we are going with B instead of C..plz?
upvoted 2 times
...
ramireze
2 years, 6 months ago
option B is the most accurate
upvoted 1 times
...
Millerules
2 years, 6 months ago
Selected Answer: B
I believe B is the right answer
upvoted 1 times
...
haazybanj
2 years, 7 months ago
Selected Answer: B
Answer seems to be B
upvoted 1 times
...
Harry_01
2 years, 7 months ago
Selected Answer: B
Clearly its option B!
upvoted 1 times
...
Spamuel
2 years, 8 months ago
Selected Answer: B
I believe the answer is B. https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html
upvoted 2 times
...
JAMG54
2 years, 8 months ago
Its B for me
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago