Recover an accidentally deleted EBS volume or EC2 instance.
IntermediateScenarioCost Optimization and Disaster Recovery
Answer
Situation read → Needs prior snapshots or AMI.
What I'd do →
- Use Data Lifecycle Manager or AWS Backup schedule
- Restore a volume:
aws ec2 create-volume --snapshot-id snap-0abc --availability-zone eu-west-1a - Recycle Bin for snapshots and AMIs retention rules
- Attach and mount
- Verify
Why → Recycle Bin protects against deletion mistakes.
Interview tip → Enable it for AMIs and snapshots.
More on Cost Optimization and Disaster Recovery
Your AWS bill jumped 40 percent this month. How do you find the cause?BeginnerSet up budgets so no one is surprised by spend.BeginnerDev environments run 24/7 but are used 9 to 6 on weekdays. How do you cut cost?IntermediateFind and remove idle and orphaned resources.IntermediateReduce data transfer cost in a media-heavy architecture.AdvancedChoose S3 storage classes for data accessed unpredictably.Intermediate