0
0
AWScloud~20 mins

EC2 pricing models (on-demand, reserved, spot) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
EC2 Pricing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding EC2 On-Demand Pricing Behavior

Which statement best describes the behavior of EC2 On-Demand instances?

AYou commit to a 1-year or 3-year term and pay upfront for a discounted hourly rate.
BYou pay a fixed hourly rate regardless of usage duration, with no long-term commitment.
CYou bid for unused capacity and your instance can be terminated anytime AWS needs the resources.
DYou pay only when your instance is actively processing requests, with automatic scaling.
Attempts:
2 left
💡 Hint

Think about paying for flexibility without commitment.

Architecture
intermediate
2:00remaining
Choosing EC2 Pricing Model for a Steady Workload

You have a steady, predictable workload running 24/7 for the next 3 years. Which EC2 pricing model is most cost-effective?

AReserved instances with a 3-year term and upfront payment.
BOn-Demand instances to maintain maximum flexibility.
CSpot instances to save costs by bidding on unused capacity.
DDedicated hosts to isolate your instances physically.
Attempts:
2 left
💡 Hint

Consider long-term commitment discounts.

service_behavior
advanced
2:00remaining
Spot Instance Interruption Behavior

What happens when an EC2 Spot instance is interrupted by AWS?

AAWS sends a two-minute warning before terminating the instance.
BThe instance is terminated immediately without any warning.
CThe instance is stopped and can be restarted later without data loss.
DThe instance is paused and resumes automatically when capacity is available.
Attempts:
2 left
💡 Hint

Think about how AWS notifies you before reclaiming Spot capacity.

security
advanced
2:00remaining
Security Considerations for Spot Instances

Which security risk is most relevant when using EC2 Spot instances?

AData loss due to sudden instance termination without warning.
BUnauthorized access because Spot instances share hardware with other customers.
CPotential exposure of sensitive data if instances are reused by other customers.
DIncreased attack surface due to dynamic IP addresses on Spot instances.
Attempts:
2 left
💡 Hint

Consider how AWS manages hardware reuse for Spot instances.

Best Practice
expert
2:00remaining
Optimizing Cost with Mixed EC2 Pricing Models

You want to optimize costs for a web application with variable traffic: steady baseline load and occasional spikes. Which combination of EC2 pricing models is best?

AUse Dedicated hosts for baseline and Spot instances for spikes.
BUse On-Demand instances for baseline and Reserved instances for spikes.
CUse Spot instances for baseline and On-Demand instances for spikes.
DUse Reserved instances for baseline load and Spot instances for spikes.
Attempts:
2 left
💡 Hint

Think about balancing cost savings and availability.