# AWS-Certified-DevOps-Engineer---Professional-DOP-C02 — Question 424

**Type:** multiple_choice
**Topics:** topic_1

## Question

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?

## Correct Answer

_See scenario._

## Explanation

Selected Answer: A
The other options are either incomplete or involve unnecessary complexity:

Option B requires using CloudWatch Logs Insights queries, which may introduce additional complexity and potential performance overhead.
Option C involves modifying the ALB access logs, which may not provide the required level of granularity or flexibility for capturing the application version information.
Option D requires integrating AWS X-Ray, which is primarily designed for distributed tracing and may not be necessary for this specific use case of gathering metrics by response code and application version.

Therefore, option A is the most appropriate and straightforward solution for the given requirements.

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/amazon/AWS-Certified-DevOps-Engineer---Professional-DOP-C02/424  
Practice (tracked): https://hiexam.net/study/AWS-Certified-DevOps-Engineer---Professional-DOP-C02/practice