DVA-C02 · Question #73
A company is building a serverless application on AWS. The application uses an AWS Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external…
The correct answer is B. Publish custom metrics to CloudWatch that record the failures of the external payment processing. You can use the Embedded Metrics format to embed custom metrics alongside detailed log event data. CloudWatch automatically extracts the custom metrics so you can visualize and alarm on them, for real-time incident detection…
Question
A company is building a serverless application on AWS. The application uses an AWS Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external vendor's HTTP API to process payments. During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors. The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team. Which solution will meet these requirements?
Options
- AWrite the results of payment processing API calls to Amazon CloudWatch. Use Amazon
- BPublish custom metrics to CloudWatch that record the failures of the external payment processing
- CPublish the results of the external payment processing API calls to a new Amazon SNS topic.
- DWrite the results of the external payment processing API calls to Amazon S3. Schedule an
How the community answered
(23 responses)- A26% (6)
- B57% (13)
- C4% (1)
- D13% (3)
Explanation
You can use the Embedded Metrics format to embed custom metrics alongside detailed log event data. CloudWatch automatically extracts the custom metrics so you can visualize and alarm on them, for real-time incident detection. https://docs.aws.amazon.com/lambda/latest/operatorguide/custom-metrics.html
Community Discussion
No community discussion yet for this question.