Q97 — AWS DVA-C02 Ch.1

Question 97 of 100 | ← Chapter 1

A company is running a Docker application on Amazon ECS. The application must scale based on user load over the past 15 seconds. How should the developer instrument the code to meet this requirement?

Correct Answer: B. Create a high-resolution custom Amazon CloudWatch metric for user activity data and publish data every 5 seconds.

Explanation

To meet the requirement of scaling based on user load within the past 15 seconds, a high-resolution custom Amazon CloudWatch metric must be created to precisely monitor user activity data. Additionally, to obtain timely data for scaling decisions, the publishing frequency must be high. Publishing data every 5 seconds reflects load changes more promptly than every 30 seconds, better satisfying the need to respond to load fluctuations within 15 seconds. Therefore, option B is correct.