โ† All AWS Flashcard Decks

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
  1. A team uses AWS Step Functions to orchestrate their deployment workflow with many short-lived state transitions. Which Step Functions pricing model minimizes cost for high-frequency, fast-executing workflows?

    Answer: Express Workflows, which bill per execution duration rather than per state transition

    Express Workflows bill based on the number of executions and their duration, making them far cheaper than Standard Workflows for high-volume, short-duration orchestration tasks.

  2. Which approach best reduces API Gateway costs for a webhook endpoint that triggers CodePipeline executions?

    Answer: Switch from REST API to HTTP API in API Gateway

    HTTP APIs in API Gateway cost approximately 71% less than REST APIs and support the same webhook use cases, making them the most cost-effective choice for simple trigger endpoints.

  3. A DevOps team wants to reduce costs on their multi-region deployment pipeline that replicates artifacts across 5 regions. Which strategy is most cost-effective?

    Answer: Deploy artifacts on-demand to each region only when a deployment is triggered in that region

    Deploying artifacts to regions only when deployments are triggered avoids paying for pre-replication data transfer and storage in regions that may not be actively used.

  4. A team's CodeBuild project pulls a large base Docker image (8GB) on every build. What is the most cost-effective solution to reduce build time and data transfer costs?

    Answer: Build a custom base image with pre-installed dependencies and store it in ECR, then use CodeBuild Docker layer caching

    A pre-built base image stored in ECR combined with Docker layer caching means CodeBuild only pulls changed layers, drastically reducing build duration and intra-region transfer costs.

  5. Which AWS Compute Optimizer recommendation is most actionable for reducing EC2 costs in a deployment fleet managed by CodeDeploy?

    Answer: Downsize over-provisioned instances to a smaller instance type that still meets performance requirements

    Compute Optimizer analyzes CloudWatch metrics to identify over-provisioned instances and recommends right-sized instance types that reduce costs while maintaining performance.

  6. A team runs hourly health-check Lambda functions as part of their post-deployment verification. Lambda logs generate significant CloudWatch Logs costs. What is the best mitigation?

    Answer: Set CloudWatch Logs retention policies on Lambda log groups to 7 days instead of Never Expire

    CloudWatch Logs storage is billed monthly per GB stored; setting a short retention period on frequently-writing Lambda log groups significantly reduces the total stored log volume.

  7. A company uses AWS CodeArtifact to host internal npm packages for their CI/CD pipeline. Which practice reduces CodeArtifact costs?

    Answer: Configure upstream repository connections and rely on CodeArtifact's pull-through cache rather than copying all packages proactively

    Using upstream connections lets CodeArtifact cache packages on first request rather than pre-populating the repository, reducing storage costs by only caching packages that are actually used.