Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DOP-C02 Exam - Topic 3 Question 47 Discussion

Posted by Margurite on Apr 07, 2025 at 10:48 AM

A company has a mobile application that makes HTTP API calls to an Application Load Balancer (ALB). The ALB routes requests to an AWS Lambda function. Many different versions of the application are in use at any given time, including versions that are in testing by a subset of users. The version of the application is defined in the user-agent header that is sent with all requests to the API.

After a series of recent changes to the API, the company has observed issues with the application. The company needs to gather a metric for each API operation by response code for each version of the application that is in use. A DevOps engineer has modified the Lambda function to extract the API operation name, version information from the user-agent header and response code.

Which additional set of actions should the DevOps engineer take to gather the required metrics?

Get Premium DOP-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
36 comments · newest first
SH
Sharika 10 months ago
Wait, can we really extract metrics from logs like that? Sounds a bit complex!
RI
Rikki 10 months ago
D sounds cool, but X-Ray might be overkill for just metrics.
KA
Kati 10 months ago
C is interesting, but do we really need ALB logs for this?
ED
Eden 11 months ago
I think B is better since it uses CloudWatch Insights for more flexibility.
AN
Anisha 11 months ago
Option A seems straightforward for logging metrics.
LE
Leanora 11 months ago
I recall that we had a similar question about logging with Lambda functions, and I think option B could be a good choice since it uses CloudWatch Insights, which we covered in our last session.
FL
Flo 11 months ago
I feel like option D with AWS X-Ray might be overkill for just gathering metrics, but it does sound like a solid approach for tracing. I’m not entirely sure though.
TE
Teddy 11 months ago
I think option A sounds familiar because it involves writing logs and then filtering them, which we practiced in class. But I’m a bit confused about the dimensions part.
HO
Hollis 12 months ago
I remember we discussed using CloudWatch Logs for tracking metrics, but I'm not sure if we should use metric filters or Insights queries for this scenario.
ME
Melodie 12 months ago
I feel confident I can solve this. The key is to identify the most efficient and scalable way to gather the metrics across different application versions.
DA
Dalene 1 year ago
This looks like a tricky one. I'll need to draw out the architecture and think through the implications of each approach to make sure I select the best option.
AL
Alesia 1 year ago
Okay, let's think this through step-by-step. The question is asking for the additional actions the DevOps engineer should take, so I need to evaluate each option carefully.
VA
Vallie 1 year ago
Hmm, I'm a bit confused about the different options. I'll need to carefully read through each one and understand the differences before deciding.
LU
Lucille 1 year ago
This question seems straightforward. I think I can handle it - the key is to identify the right set of actions to gather the required metrics.
EA
Earleen 1 year ago
Haha, 'response metadata'? That sounds like a great way to confuse everyone. I'd steer clear of that one!
AR
Arlen 1 year ago
Wait, did you say 'response metadata'? I think I'd rather go with an option that doesn't involve that. Yikes!
NI
Nieves 1 year ago
Option A seems a bit too manual for my liking. I'd prefer a more automated solution like B or D.
ED
Edelmira 1 year ago
I don't know, I'm leaning towards C. Getting the data directly from the ALB access logs and then using a metric filter seems like the simplest option.
TH
Thora 1 year ago
↳ replying to Edelmira
Let's go with D then, it seems like the best option for gathering the required metrics.
WE
Weldon 1 year ago
↳ replying to Edelmira
I agree, D seems like it could give us more comprehensive metrics.
AU
Audry 1 year ago
↳ replying to Edelmira
I think C could work, but D might provide more detailed insights.
LA
Lasandra 1 year ago
I'd go with D. Using X-Ray to capture the data and then have CloudWatch pull the metrics from there seems like a more robust solution.
TO
Tonette 1 year ago
↳ replying to Lasandra
Yeah, X-Ray integration seems like the most comprehensive approach for gathering the required metrics.
LU
Lucina 1 year ago
↳ replying to Lasandra
D sounds good, X-Ray can provide detailed insights into the API operations and versions.
AH
Ahmed 1 year ago
↳ replying to Lasandra
I agree, using X-Ray for capturing the data and CloudWatch for metrics sounds like a solid plan.
LO
Louvenia 1 year ago
↳ replying to Lasandra
D) Configure AWS X-Ray integration on the Lambda function. Modify the Lambda function to create an X-Ray subsegment with the API operation name, response code, and version number. Configure X-Ray insights to extract an aggregated metric for each API operation name and to publish the metric to Amazon CloudWatch. Specify response code and application version as dimensions for the metric.
GE
Georgeanna 1 year ago
Hmm, I think option B is the way to go. Writing the data to CloudWatch Logs and then using Insights to populate the metrics sounds like a pretty straightforward approach.
LI
Ling 1 year ago
↳ replying to Georgeanna
Option B does sound like a straightforward approach. It's a good way to gather the required metrics.
EL
Eladia 1 year ago
↳ replying to Georgeanna
Yeah, writing the data to CloudWatch Logs and then using Insights to populate the metrics seems efficient.
VA
Vanna 1 year ago
↳ replying to Georgeanna
Option B does sound like a straightforward approach. It's important to have a clear method for collecting and analyzing the data.
BO
Bok 1 year ago
↳ replying to Georgeanna
Yeah, writing the data to CloudWatch Logs and then querying it with Insights seems like an efficient way to gather the required metrics.
FL
Fletcher 1 year ago
↳ replying to Georgeanna
I agree, option B seems like a good choice. Using CloudWatch Logs and Insights for metrics makes sense.
TU
Tu 1 year ago
↳ replying to Georgeanna
I agree, option B seems like a good choice. Using CloudWatch Logs and Insights for metrics makes sense.
LA
Lauran 1 year ago
I'm not sure about option A. I think option D with AWS X-Ray integration could provide more detailed insights and a better way to track the metrics we need.
ST
Stanford 1 year ago
I agree with Lottie. Option A provides a clear path to gather the metrics we need, and using CloudWatch Logs for this purpose makes sense.
LO
Lottie 2 years ago
I think option A is the best choice. Writing logs to CloudWatch Logs and using metric filters seems like a straightforward way to gather the required metrics.
0/2000 characters

Save Cancel