AWS Budgets: Automatically Stop EC2 Instances When Cost Exceeds Threshold
A company runs a development environment composed of multiple Amazon EC2 instances. The finance team has set a monthly budget of $5,000 for this environment and wants to automatically stop all EC2 instances if the accumulated cost reaches $4,500 before the end of the month. The team needs a managed AWS-native solution that does not require custom scripts or third-party tools. Which AWS feature or service should the company use to meet this requirement?
Quick Answer
The answer is AWS Budgets with a budget action that stops EC2 instances when the cost threshold is exceeded. This is correct because AWS Budgets allows you to define a cost budget of $4,500 and attach a budget action that automatically triggers an EC2 stop action when the actual or forecasted cost reaches that limit, all without custom scripts or third-party tools. On the AWS Certified Cloud Practitioner CLF-C02 exam, this scenario tests your understanding of managed cost governance features versus manual or custom solutions; a common trap is choosing AWS Cost Explorer (which only visualizes costs) or AWS Lambda with custom code (which violates the “no custom scripts” requirement). Remember the key phrase: “budget action” is the bridge between a cost threshold and an automated EC2 stop. For the exam, think of it as “set a budget, attach an action, stop the instance”—no scripting needed.
⚠ Common exam trap
Test-takers frequently confuse AWS Cost Explorer's visualization capabilities with automated cost control actions, or mistakenly think Trusted Advisor can enforce cost limits, when only AWS Budgets with budget actions provides native, automated instance stopping based on cost thresholds.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AWS Budgets with a budget action that stops EC2 instances when the threshold is exceeded
AWS Budgets allows you to set a cost budget with an associated budget action that can automatically stop EC2 instances when the actual or forecasted cost exceeds a specified threshold (e.g., $4,500). This is a fully managed, native AWS solution that requires no custom scripts or third-party tools, directly meeting the requirement to stop instances automatically based on cost.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
AWS Budgets with a budget action that stops EC2 instances when the threshold is exceeded
Why this is correct
AWS Budgets supports budget actions that can automate responses to cost or usage threshold breaches. You can configure an action to stop Amazon EC2 instances, which directly satisfies the requirement without custom scripts.
- ✗
AWS Cost Explorer with a saved filter and manual instance termination
Why it's wrong here
AWS Cost Explorer is a cost visualization and analysis tool. It cannot automatically stop instances; it only provides data for manual review. This does not meet the automation requirement.
When this WOULD be correct
A company needs to analyze historical cost trends and identify top-spending services to manually optimize usage, without requiring automated actions or budget alerts.
- ✗
AWS Trusted Advisor cost optimization checks
Why it's wrong here
AWS Trusted Advisor provides recommendations to reduce costs, such as identifying idle instances, but it does not execute automated actions like stopping instances. It only advises, not enforces.
When this WOULD be correct
A company wants to identify underutilized EC2 instances to reduce costs and needs recommendations for rightsizing or stopping idle instances, without requiring automated actions.
- ✗
AWS Organizations Service Control Policies (SCPs)
Why it's wrong here
Service Control Policies centrally control permissions for accounts in an organization. They can deny actions like launching EC2 instances but cannot automate stopping running instances based on cost thresholds. They are not designed for cost-based resource management.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.
✓AWS Budgets with a budget action that stops EC2 instances when the threshold is exceededCorrect answer▾
Why this is correct
AWS Budgets supports budget actions that can automate responses to cost or usage threshold breaches. You can configure an action to stop Amazon EC2 instances, which directly satisfies the requirement without custom scripts.
✗AWS Cost Explorer with a saved filter and manual instance terminationWrong answer — click to see why▾
Why this is wrong here
AWS Cost Explorer does not support automated actions like stopping instances; it only provides cost visualization and filtering, requiring manual termination which violates the 'automatically stop' requirement.
★ When this WOULD be the correct answer
A company needs to analyze historical cost trends and identify top-spending services to manually optimize usage, without requiring automated actions or budget alerts.
Why candidates choose this
Candidates may confuse Cost Explorer's cost analysis capabilities with automated cost control, assuming it can trigger actions based on saved filters.
✗AWS Trusted Advisor cost optimization checksWrong answer — click to see why▾
Why this is wrong here
Trusted Advisor cost optimization checks provide recommendations to reduce costs but cannot automatically stop EC2 instances based on a budget threshold.
★ When this WOULD be the correct answer
A company wants to identify underutilized EC2 instances to reduce costs and needs recommendations for rightsizing or stopping idle instances, without requiring automated actions.
Why candidates choose this
Candidates may confuse cost optimization recommendations with automated cost control actions, assuming Trusted Advisor can enforce budget limits.
Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
About these practice questions
One of 988 original CLF-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
3 more ways this is tested on CLF-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company has a development environment running on Amazon EC2 instances. To control costs, the team wants to set a monthly budget of $5,000 for this environment. If the forecasted cost for the month exceeds $6,000 (20% over budget), they want AWS to automatically stop all non-critical EC2 instances to prevent further spending. Which AWS feature should the team use to implement this automated cost control?
medium- A.AWS Cost Explorer
- ✓ B.AWS Budgets with budget actions
- C.AWS Trusted Advisor
- D.AWS Cost Anomaly Detection
Why B: AWS Budgets with budget actions allows you to set a monthly budget of $5,000 and define an action that triggers when the forecasted cost exceeds a specified threshold (e.g., 20% over budget, or $6,000). The action can automatically stop non-critical EC2 instances using an IAM role and a predefined runbook, directly enforcing cost control without manual intervention. This is the only AWS feature that combines budget monitoring with automated remediation actions.
Variation 2. A company runs development and test environments on Amazon EC2 instances in separate AWS accounts. The finance team wants to automatically stop all non-production EC2 instances if the monthly development account costs exceed $1,000. The team needs a solution that requires no manual intervention and uses only AWS-native features. Which AWS feature should the team configure to meet these requirements?
medium- A.AWS Cost Explorer with a cost allocation tag filter
- ✓ B.AWS Budgets with a cost action
- C.AWS Trusted Advisor with the cost optimization check
- D.Amazon CloudWatch with a billing metric alarm
Why B: AWS Budgets supports cost actions that automatically stop EC2 instances when a budget threshold is exceeded. You can configure a system-defined 'Stop EC2 instances' action, which directly stops instances without needing an IAM policy or SCP. This meets the requirement for no manual intervention and uses only native AWS features.
Variation 3. A company runs non-production Amazon EC2 instances for development and testing. The finance team wants to automatically stop all non-production instances if the monthly spending exceeds $5,000. The team wants to set this up without writing custom scripts or using third-party tools. Which AWS feature should the finance team use to meet this requirement?
medium- ✓ A.AWS Budgets with a budget action to stop EC2 instances
- B.AWS Cost Explorer
- C.AWS Trusted Advisor
- D.AWS Config
Why A: AWS Budgets allows you to set a cost budget (e.g., $5,000) and attach a budget action that triggers an AWS Systems Manager (SSM) automation document to stop EC2 instances when the actual or forecasted spend exceeds the threshold. This meets the requirement without custom scripts or third-party tools, as the budget action natively integrates with EC2 via SSM.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CLF-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CLF-C02 exam.