AWS Certified Developer – Associate — Question 15
A company is running a Docker application on Amazon ECS. The application must scale based on user load in the last 15 seconds.
How should a Developer instrument the code so that the requirement can be met?
Answer options
- A. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
- B. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
- C. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
- D. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
Correct answer: B
Explanation
The correct answer is B because a high-resolution metric published every 5 seconds provides the granularity needed to accurately reflect user activity within the last 15 seconds. Options A and C do not meet the requirement for high-frequency data, and D, while publishing every 5 seconds, uses standard resolution which is insufficient for the required responsiveness.