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?
Select one answer.
Marked answer: A
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose A1
CW logs -> CW metric + Dimensions Addition
Chose A1
Option A: Is the correct Way of writing the lambda logs to CloudWatch logs group from their we can play with it with minimal effor
Chose A1
Why Option A is Correct: It directly addresses the requirement to gather metrics for each API operation by response code and application version. CloudWatch Logs and metric filters are designed for this purpose and are easy to implement. It provides a scalable and cost-effective solution.
Keyboard:←→previous / next·A–Echoose·Entercheck, then next