
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company runs an internal browser-based application. The application runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group across multiple Availability Zones. The Auto Scaling group scales up to 20 instances during work hours, but scales down to 2 instances overnight. Staff are complaining that the application is very slow when the day begins, although it runs well by mid-morning.
How should the scaling be changed to address the staff complaints and keep costs to a minimum?
A
Implement a scheduled action that sets the desired capacity to 20 shortly before the office opens.
B
Implement a step scaling action triggered at a lower CPU threshold, and decrease the cooldown period.
C
Implement a target tracking action triggered at a lower CPU threshold, and decrease the cooldown period.
D
Implement a scheduled action that sets the minimum and maximum capacity to 20 shortly before the office opens.
Explanation:
The problem described is a classic cold start issue where the application is slow at the beginning of the workday because the Auto Scaling group has scaled down to only 2 instances overnight. When staff arrive and start using the application, the system needs time to scale up from 2 to 20 instances, causing poor performance during the initial surge.
Let's analyze each option:
Option A: Implement a scheduled action that sets the desired capacity to 20 shortly before the office opens.
Option B: Implement a step scaling action triggered at a lower CPU threshold, and decrease the cooldown period.
Option C: Implement a target tracking action triggered at a lower CPU threshold, and decrease the cooldown period.
Option D: Implement a scheduled action that sets the minimum and maximum capacity to 20 shortly before the office opens.
Key AWS Concepts:
Best Practice: For predictable workloads with known business hours, use scheduled scaling to ensure capacity is available before demand increases, while still allowing scaling down during off-hours to save costs.