Question 870
An application reduces idle resource costs without sacrificing peak availability. The team confirms that tests create large EC2 instances and never terminate them. Which design adjustment best addresses that requirement?
Explanation
Correct Answer
The scenario identifies this requirement: Tests create large EC2 instances and never terminate them. Select Automate resource expiration with tags and lifecycle rules as the specified technical mechanism. Ephemeral environment cleanup reduces orphaned compute cost. This response addresses the problem described rather than a different design goal.
Incorrect Answers
Configure target tracking and safe scale-in policies would help if containers are held at maximum task count after a weekend burst. Target tracking removes capacity as demand falls. That is not the symptom described here: tests create large EC2 instances and never terminate them. The matching response is Automate resource expiration with tags and lifecycle rules, because ephemeral environment cleanup reduces orphaned compute cost.
For the alternative failure the workload spikes at 9 a.m. daily and scaling arrives late, the control Configure scheduled scale-out ahead of the spike is relevant: predictable capacity can be provisioned before demand. Here the evidence instead is tests create large EC2 instances and never terminate them. The selected technical mechanism is Automate resource expiration with tags and lifecycle rules: ephemeral environment cleanup reduces orphaned compute cost.
Scope provisioned concurrency to critical aliases and active hours solves a different operational problem where a Lambda API has strict low latency but provisioned concurrency is enabled for every function 24/7. Prepared concurrency has ongoing costs even without invocations. It does not directly address tests create large EC2 instances and never terminate them. The case calls for Automate resource expiration with tags and lifecycle rules, since ephemeral environment cleanup reduces orphaned compute cost.