Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 1 discussion

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?

  • A. Modify the Lambda function to write the API operation name, response code, and version number as a log line to an Amazon CloudWatch Logs log group. Configure a CloudWatch Logs metric filter that increments a metric for each API operation name. Specify response code and application version as dimensions for the metric.
  • B. Modify the Lambda function to write the API operation name, response code, and version number as a log line to an Amazon CloudWatch Logs log group. Configure a CloudWatch Logs Insights query to populate CloudWatch metrics from the log lines. Specify response code and application version as dimensions for the metric.
  • C. Configure the ALB access logs to write to an Amazon CloudWatch Logs log group. Modify the Lambda function to respond to the ALB with the API operation name, response code, and version number as response metadata. Configure a CloudWatch Logs metric filter that increments a metric for each API operation name. Specify response code and application version as dimensions for the metric.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
OrganizedChaos25
Highly Voted 1 year, 4 months ago
Anyone take the exam recently? Are these questions still valid?
upvoted 16 times
...
www_dumpsvibe_com_7
Highly Voted 1 week, 5 days ago
The correct answer is A.
upvoted 11 times
...
jamesf
Most Recent 1 month, 1 week ago
Selected Answer: A
Just pass my exam today and this examtopics help a lot. Please practice and practice and practice.
upvoted 1 times
...
tgv
1 month, 4 weeks ago
Passed the exam today with a score of 865. The questions are valid. I think more than 90% of them were from here. Make sure you go over ALL of them (some of the questions in the exam were from 1-50 even though I was expecting to get more from 200-277)
upvoted 2 times
...
c3518fc
4 months, 1 week ago
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.
upvoted 3 times
...
chamorro
5 months, 1 week ago
Did anyone take the exam recently? what is the % of accuracy?
upvoted 2 times
...
conacal
5 months, 1 week ago
I pass the exam today. A and C these questions still valid.
upvoted 2 times
...
nothinmuch
6 months, 3 weeks ago
Selected Answer: B
The answer is b based on the scenario. When to Choose Which Choose A (Metric Filters) if you need basic metrics with straightforward patterns (e.g., counting occurrences of specific API operations and response codes). Choose B (Insights Queries) if you require more complex metric calculations, such as: Aggregations (averages, sums, etc.) over time Filtering metrics based on conditions within the logs Creating custom metrics not directly defined in log lines
upvoted 1 times
...
Gowtham5798
7 months, 3 weeks ago
The correct answer is A.
upvoted 1 times
...
thanhnv142
7 months, 3 weeks ago
A is correct: Because only need to gather metric but not parse log or advanced analyzing the log.
upvoted 1 times
...
thanhnv142
7 months, 3 weeks ago
A definitely
upvoted 1 times
...
hoakhanh281
8 months, 3 weeks ago
Cloudwatch log metrics filter can apply on pattern and populate metrics, CW insight significant to get it. B should be correct one
upvoted 1 times
...
d262e67
8 months, 3 weeks ago
Selected Answer: A
CloudWatch Logs Insights is a powerful tool for analyzing log data, but it's more suited for ad-hoc exploration and troubleshooting rather than continuous metric collection and monitoring.
upvoted 3 times
...
DucSiu
9 months, 1 week ago
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
upvoted 1 times
...
iamunstopable
9 months, 1 week ago
I passed this morning with 830 score 88% Questions comes out word for word from this CO2 Dump
upvoted 3 times
...
iamunstopable
9 months, 1 week ago
I passed this exam today 11th/12/2023. Scored 830 about 58% questions comes from CO2 word for word.
upvoted 1 times
...
wem
10 months ago
Option A seems to be the most straightforward and effective method. By writing the required information as a log line to CloudWatch Logs and configuring a metric filter to increment metrics based on this data, the company can efficiently gather the metrics it needs with minimal complexity. This approach leverages existing AWS services in a simple and direct manner, aligning well with the company's requirements.
upvoted 3 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 ...