exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 20 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 20
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps team manages an API running on-premises that serves as a backend for an Amazon API Gateway endpoint. Customers have been complaining about high response latencies, which the development team has verified using the API Gateway latency metrics in Amazon CloudWatch. To identify the cause, the team needs to collect relevant data without introducing additional latency.
Which actions should be taken to accomplish this? (Choose two.)

  • A. Install the CloudWatch agent server side and configure the agent to upload relevant logs to CloudWatch.
  • B. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and upload those segments to X-Ray during each request.
  • C. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and use the X-Ray daemon to upload segments to X-Ray.
  • D. Modify the on-premises application to send log information back to API Gateway with each request.
  • E. Modify the on-premises application to calculate and upload statistical data relevant to the API service requests to CloudWatch metrics.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
WhyIronMan
Highly Voted 3 years, 6 months ago
I'll go with A and C References: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-on-premise.html https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html
upvoted 24 times
MBJames
3 years, 5 months ago
Agreed. B is sub-optimal because sending every xray segment back to AWS API directly from the application will introduce more latency. Having a local x-ray daemon mitigates that, so C is better.
upvoted 4 times
...
RightAnswers
3 years, 3 months ago
Installing CloudWatch agents on on-prem servers will provider server metrics. How that will help calculate API latency? Ans A doesn't make sense. Ans E would rather help getting latency information. Ans C, E
upvoted 4 times
Mobasher
2 years, 1 month ago
Having the on-prem instance 'calculate' and send statistical data is more work for the nodes, which makes matters worse. Instead, ship all logs to a log server (CW Logs) and run statistics from there (CW Logs Insights or Metric Filters)
upvoted 2 times
...
...
...
SatenderRathee
Highly Voted 2 years, 4 months ago
Selected Answer: AC
To identify the cause of the high response latencies, the DevOps team should: Install the CloudWatch agent server side and configure the agent to upload relevant logs to CloudWatch. This will allow the team to collect log data without introducing additional latency. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and use the X-Ray daemon to upload segments to X-Ray. This will allow the team to collect tracing data without introducing additional latency. Therefore, the correct actions to take are A and C. Option B is incorrect because uploading request segments to X-Ray during each request would introduce additional latency. Option D is incorrect because sending log information back to API Gateway with each request would introduce additional latency. Option E is incorrect because calculating and uploading statistical data relevant to the API service requests to CloudWatch metrics would introduce additional latency.
upvoted 9 times
...
Simba84
Most Recent 4 months, 3 weeks ago
Selected Answer: BC
B C is correct B. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and upload those segments to X-Ray during each request. Why? AWS X-Ray tracing helps trace end-to-end requests, enabling latency analysis. By capturing request segments in your application and uploading them to X-Ray, you gain visibility into where delays occur without impacting performance significantly. C. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and use the X-Ray daemon to upload segments to X-Ray. Why? Using the X-Ray daemon optimizes the process of sending trace data, offloading this task from your application and reducing performance impact. The daemon works seamlessly with API Gateway and on-premises systems.
upvoted 1 times
...
gigi_devops
1 year, 10 months ago
Selected Answer: AC
AC es la bonne réponse
upvoted 1 times
...
Tika01
2 years, 1 month ago
Selected Answer: AB
A. Install the CloudWatch agent server-side and configure the agent to upload relevant logs to CloudWatch is a valid action to collect relevant data. This action will collect logs and other relevant system data from the on-premises API, which can then be analyzed in CloudWatch Logs Insights to identify the cause of the high response latencies. B. Enable AWS X-Ray tracing in API Gateway, modify the application to capture request segments, and upload those segments to X-Ray during each request is another valid action. This will allow the DevOps team to trace the request as it passes through the system and identify which segments are causing the high response latencies. Therefore, the correct options are A and B.
upvoted 2 times
...
saeidp
2 years, 2 months ago
Selected Answer: AC
A and C for me E introduces more latency
upvoted 1 times
...
f3d3x15c0
2 years, 2 months ago
I'll go with A and C
upvoted 1 times
...
[Removed]
2 years, 2 months ago
Enabling X-Ray tracing in the API Gateway console You can use the Amazon API Gateway console to enable active tracing on an API stage. These steps assume that you have already deployed the API to a stage. Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway. In the APIs pane, choose the API, and then choose Stages. In the Stages pane, choose the name of the stage. In the Stage Editor pane, choose the Logs/Tracing tab. To enable active X-Ray tracing, choose Enable X-Ray Tracing under X-Ray Tracing. If desired, choose Set X-Ray Sampling Rules and go to the X-Ray console to configure sampling rules. Once you've enabled X-Ray for your API stage, you can use the X-Ray management console to view the traces and service maps. Nothing shows here that you should use an x-ray daemon everything is collected automatically with proper service role attached on API gateway, not sure C is one of the correct answer.
upvoted 1 times
...
Piccaso
2 years, 2 months ago
Selected Answer: AC
B, D and E will increase the latency.
upvoted 1 times
...
Bulti
2 years, 3 months ago
The question is about latency and not logging/monitoring. As a result, X-ray is the right answer and not Cloudwatch logs for transaction tracing across API Gateway and on-prem application hosting the API. So the correct answer is C,D. I will go with C and D.
upvoted 1 times
...
Bulti
2 years, 3 months ago
A and C is the correct answer!
upvoted 1 times
...
kyozanuro
2 years, 5 months ago
Selected Answer: CE
A. After you install the cloudwatch agent, then it will provide the metrics but cannot use them to get the latency information
upvoted 2 times
...
Arbaj
2 years, 7 months ago
A and C for sure
upvoted 1 times
...
Manh
2 years, 7 months ago
A & C. high response latencies could happen when your resource is full
upvoted 1 times
...
colinquek
2 years, 7 months ago
Selected Answer: AC
the only 2 options that dont cause the application to incur more processing.
upvoted 1 times
...
SamHan
2 years, 7 months ago
Selected Answer: CE
Ans is : CE
upvoted 1 times
...
[Removed]
3 years, 1 month ago
Selected Answer: AC
A for metrics and C for performance data
upvoted 1 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