Q72 — AWS DVA-C02 Ch.2

Question 72 of 100 | ← Chapter 2

A company has deployed a photo processing application on Amazon EC2 instances. The application must process each photo in under 5 seconds. If processing exceeds 5 seconds, the development team must be notified. How can the developer implement timing measurement and notification with minimal operational overhead?

Correct Answer: A. Create an Amazon CloudWatch custom metric. Publish the processing time as a metric value each time a photo is processed. Create a CloudWatch alarm based on a static threshold of 5 seconds. Notify the development team using an Amazon Simple Notification Service (Amazon SNS) topic.

Explanation

Option A achieves the requirement with minimal operational overhead: publishing processing time to a CloudWatch custom metric and triggering an alarm on a static 5-second threshold enables immediate, precise notification without introducing queues, streams, or averaging logic that could delay or obscure individual violations. Options B and D add unnecessary infrastructure complexity; Option C uses averaging, which fails to detect individual violations exceeding 5 seconds.