nerdexam
Amazon

DOP-C02 · Question #44

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…

The correct answer is A. Modify the Lambda function to write the API operation name, response code, and version number. Note that the metric filter is different from a log insights query, where the experience is interactive and provides immediate search results for the user to investigate. No automatic action can be invoked from an insights query. Metric filters, on the other hand, will generate…

Submitted by javi_es· Mar 6, 2026Monitoring & Logging

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?

Options

  • AModify the Lambda function to write the API operation name, response code, and version number
  • BModify the Lambda function to write the API operation name, response code, and version number
  • CConfigure the ALB access logs to write to an Amazon CloudWatch Logs log group. Modify the
  • DConfigure AWS X-Ray integration on the Lambda function. Modify the Lambda function to create

How the community answered

(25 responses)
  • A
    56% (14)
  • B
    12% (3)
  • C
    4% (1)
  • D
    28% (7)

Explanation

Note that the metric filter is different from a log insights query, where the experience is interactive and provides immediate search results for the user to investigate. No automatic action can be invoked from an insights query. Metric filters, on the other hand, will generate metric data in the form of a time series. This lets you create alarms that integrate into your ITSM processes, execute AWS Lambda functions, or even create anomaly detection models. https://aws.amazon.com/blogs/mt/quantify-custom-application-metrics-with-amazon-cloudwatch- logs-and-metric-filters/

Topics

#Lambda custom metrics#CloudWatch Metrics#Application monitoring#API Gateway monitoring

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice