
Answer-first summary for fast verification
Answer: Use Amazon CloudWatch to create a custom metric for processing time and set an alarm with a 5-second threshold, notifying via Amazon SNS.
Option A is correct because it uses Amazon CloudWatch custom metrics and alarms, which are specifically designed for monitoring and alerting based on custom-defined criteria. By publishing the processing time as a custom metric and setting a static threshold of 5 seconds, CloudWatch can automatically notify the development team via Amazon SNS. This approach leverages AWS services for monitoring and notification with minimal setup and maintenance, making it the solution with the least operational overhead.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer implement time measurement and notification for a photo-processing application on Amazon EC2, ensuring processing time is under 5 seconds with minimal operational overhead?
A
Use Amazon CloudWatch to create a custom metric for processing time and set an alarm with a 5-second threshold, notifying via Amazon SNS.
B
Leverage Amazon SQS to log processing times and develop an application to monitor the queue, triggering an Amazon SNS notification for times over 5 seconds.
C
Record processing times with Amazon CloudWatch metrics, configure an alarm for average times exceeding 5 seconds, and notify using Amazon SES.
D
Publish processing times to an Amazon Kinesis data stream and set a CloudWatch alarm for values over 5 seconds, with notifications sent via Amazon SNS.