0
0
AWScloud~20 mins

Spot Instances for cost savings in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Spot Instance Savings Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Spot Instances behavior

What happens to an AWS Spot Instance when the spot price exceeds your bid price?

AAWS sends a two-minute warning before terminating the instance.
BThe instance is terminated immediately without warning.
CThe instance is automatically converted to an On-Demand instance.
DThe instance continues running until you manually stop it.
Attempts:
2 left
💡 Hint

Think about how AWS manages Spot Instances to allow graceful shutdown.

Architecture
intermediate
2:00remaining
Designing fault-tolerant architecture with Spot Instances

You want to use Spot Instances to save costs but ensure your application remains highly available. Which architectural pattern best supports this goal?

ADeploy Spot Instances in a single Availability Zone to reduce complexity.
BUse only Spot Instances behind a load balancer with no fallback.
CUse Spot Instances with a fixed bid price and no scaling policies.
DMix Spot Instances with On-Demand Instances in an Auto Scaling group.
Attempts:
2 left
💡 Hint

Consider how to maintain availability when Spot Instances are interrupted.

Configuration
advanced
2:00remaining
Spot Instance interruption handling configuration

Which AWS service or feature allows you to automatically handle Spot Instance interruptions by launching replacement instances?

AAWS Lambda with CloudWatch Events monitoring Spot interruptions.
BAWS Elastic Beanstalk configured with Spot Instances only.
CEC2 Auto Scaling group with mixed instances policy including Spot Instances.
DAWS Systems Manager Automation documents for manual instance replacement.
Attempts:
2 left
💡 Hint

Think about automated scaling and instance replacement features.

security
advanced
2:00remaining
Security considerations for Spot Instances

What is a key security best practice when using Spot Instances in your AWS environment?

AAssign broad IAM roles to Spot Instances to simplify access management.
BUse dedicated security groups and restrict network access to Spot Instances.
CDisable encryption on Spot Instances to improve performance.
DStore sensitive data only on Spot Instance local storage for faster access.
Attempts:
2 left
💡 Hint

Consider how to protect instances that may be interrupted or replaced frequently.

service_behavior
expert
2:00remaining
Spot Instance interruption notice timing

How long before AWS terminates a Spot Instance does it provide an interruption notice, and how can you detect it programmatically?

ATwo minutes; by querying the instance metadata service for the interruption notice URL.
BTen minutes; by subscribing to SNS notifications configured on the instance.
CInstant termination; no programmatic detection is possible.
DFive minutes; by polling the EC2 metadata endpoint for interruption time.
Attempts:
2 left
💡 Hint

Recall the exact timing and how AWS exposes interruption notices to instances.