Cost Optimization Flashcards
7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Cost Optimization flashcards as text
A DevOps team uses AWS CloudFormation for infrastructure deployments and notices high costs from frequent stack updates in lower environments. Which approach best reduces these costs?
Answer: Use CloudFormation Change Sets to preview and batch changes before applying
Change Sets allow teams to review and batch multiple infrastructure changes before a single deployment, reducing the number of stack update operations and associated resource churn.
Which AWS Cost Explorer feature helps a DevOps team identify which CI/CD pipeline components are driving the highest AWS spend?
Answer: Cost allocation tags filtered by pipeline name or environment
Cost allocation tags applied to pipeline-created resources (e.g., 'pipeline:my-app', 'env:staging') allow Cost Explorer to break down spend by pipeline component or environment.
A team's CodeDeploy blue/green deployments leave old Auto Scaling Groups running for 1 hour after successful deployment. What change reduces unnecessary costs?
Answer: Reduce the termination wait time for the original environment in the deployment group
The original environment termination wait time in a blue/green deployment controls how long old instances stay running; reducing it minimizes the overlap period where both environments incur costs.
A DevOps team uses Systems Manager Automation documents to run remediation tasks across hundreds of accounts. Which approach minimizes SSM Automation costs?
Answer: Consolidate multiple small automation steps into fewer, larger documents
SSM Automation pricing is per automation step executed; consolidating steps reduces the total step count and therefore total cost.
Which action reduces costs when using Amazon EventBridge rules to trigger CodePipeline executions?
Answer: Add event pattern filters to EventBridge rules to avoid triggering pipelines on irrelevant events
Precise event patterns filter out irrelevant events before they trigger pipeline executions, reducing unnecessary pipeline runs and their associated build, test, and deploy costs.
A team runs Selenium-based end-to-end tests in CodeBuild that take 45 minutes each. Which optimization reduces cost without sacrificing coverage?
Answer: Split the test suite and run shards in parallel across multiple smaller CodeBuild instances
Parallelizing test shards across multiple smaller instances reduces total wall-clock time (and sometimes total compute cost) while keeping the same test coverage.
A company wants to optimize costs for AWS Config rules used to enforce compliance in their CI/CD pipeline. Which configuration reduces Config evaluation costs?
Answer: Use periodic evaluation mode instead of configuration-change-triggered mode for stable resources
Periodic evaluation mode reduces the number of Config rule evaluations triggered for resources that change infrequently, lowering the per-evaluation cost.