
Ultimate access to all questions.
A serverless application on AWS continuously processes customer orders using an AWS Lambda function and interacts with an external vendor's HTTP API for payment processing. The development team is looking to implement a real-time notification system for the support team using an existing Amazon Simple Notification Service (Amazon SNS) topic. Notifications should only be sent when the error rate of the external API exceeds 5% of the total transactions processed within an hour.
Considering the role of an AWS Certified Developer Associate, which solution would you recommend as the most efficient to achieve this requirement?
A
Log the results of payment processing API calls to Amazon CloudWatch. Leverage Amazon CloudWatch Logs Insights to query the CloudWatch logs. Set up the Lambda function to check the output from CloudWatch Logs Insights on a schedule and send notification via the existing SNS topic when the error rate exceeds the specified rate
B
Log the results of payment processing API calls to Amazon CloudWatch. Leverage Amazon CloudWatch Metric Filter to look at the CloudWatch logs. Set up the Lambda function to check the output from CloudWatch Metric Filter on a schedule and send notification via the existing SNS topic when the error rate exceeds the specified rate
C
Configure and push high-resolution custom metrics to CloudWatch that record the failures of the external payment processing API calls. Create a CloudWatch alarm that sends a notification via the existing SNS topic when the error rate exceeds the specified rate
D
Configure CloudWatch metrics with detailed monitoring for the external payment processing API calls. Create a CloudWatch alarm that sends a notification via the existing SNS topic when the error rate exceeds the specified rate