ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 77 - DVA-C02 discussion

Report
Export

A developer is working on a Python application that runs on Amazon EC2 instances. The developer wants to enable tracing of application requests to debug performance issues in the code.

Which combination of actions should the developer take to achieve this goal? (Select TWO)

A.
Install the Amazon CloudWatch agent on the EC2 instances.
Answers
A.
Install the Amazon CloudWatch agent on the EC2 instances.
B.
Install the AWS X-Ray daemon on the EC2 instances.
Answers
B.
Install the AWS X-Ray daemon on the EC2 instances.
C.
Configure the application to write JSON-formatted togs to /var/log/cloudwatch.
Answers
C.
Configure the application to write JSON-formatted togs to /var/log/cloudwatch.
D.
Configure the application to write trace data to /Var/log-/xray.
Answers
D.
Configure the application to write trace data to /Var/log-/xray.
E.
Install and configure the AWS X-Ray SDK for Python in the application.
Answers
E.
Install and configure the AWS X-Ray SDK for Python in the application.
Suggested answer: B, E

Explanation:

This solution will meet the requirements by using AWS X-Ray to enable tracing of application requests to debug performance issues in the code. AWS X-Ray is a service that collects data about requests that the applications serve, and provides tools to view, filter, and gain insights into that data. The developer can install the AWS X-Ray daemon on the EC2 instances, which is a software that listens for traffic on UDP port 2000, gathers raw segment data, and relays it to the X-Ray API. The developer can also install and configure the AWS X-Ray SDK for Python in the application, which is a library that enables instrumenting Python code to generate and send trace data to the X-Ray daemon. Option A is not optimal because it will install the Amazon CloudWatch agent on the EC2 instances, which is a software that collects metrics and logs from EC2 instances and on-premises servers, not application performance data. Option C is not optimal because it will configure the application to write JSON-formatted logs to /var/log/cloudwatch, which is not a valid path or destination for CloudWatch logs. Option D is not optimal because it will configure the application to write trace data to /var/log/xray, which is also not a valid path or destination for X-Ray trace data.

Reference: [AWS X-Ray], [Running the X-Ray Daemon on Amazon EC2]

asked 16/09/2024
Eric Hebert
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first