0
0
AWScloud~20 mins

Amazon Machine Images (AMIs) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AMI Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you deregister an AMI?

You have an AMI registered in your AWS account. You decide to deregister it. What is the immediate effect on instances launched from this AMI?

AExisting instances launched from the AMI continue running normally, but you cannot launch new instances from it.
BAll existing instances launched from the AMI are terminated immediately.
CThe AMI is deleted and all snapshots associated with it are also deleted immediately.
DYou can still launch new instances from the AMI for 24 hours after deregistration.
Attempts:
2 left
💡 Hint

Think about what deregistering an AMI means for existing and new instances.

Architecture
intermediate
2:00remaining
Choosing AMI for a multi-region deployment

You want to deploy an application in two AWS regions. You have a custom AMI in region A. What is the best way to use this AMI in region B?

ALaunch instances in region B using the AMI ID from region A directly.
BCreate a new AMI in region B by launching an instance and creating an AMI from it.
CCopy the AMI from region A to region B before launching instances.
DUse the public AMI with the same name in region B.
Attempts:
2 left
💡 Hint

AMIs are region-specific. Think about how to make an AMI available in another region.

security
advanced
2:00remaining
Securing AMI sharing with other AWS accounts

You want to share a private AMI with another AWS account securely. Which option ensures the AMI is shared but the underlying snapshots remain private?

AExport the AMI and send it as a file to the other account.
BModify the AMI launch permissions to include the other account, but do not modify snapshot permissions.
CCreate a public AMI so anyone can launch instances from it.
DShare the AMI and also share the snapshots with the other account explicitly.
Attempts:
2 left
💡 Hint

Think about what resources are needed to launch an instance from a shared AMI.

Best Practice
advanced
2:00remaining
Automating AMI creation with minimal downtime

You want to automate creating updated AMIs of your application servers daily with minimal downtime. Which approach is best?

AManually create AMIs from instances during off-hours.
BUse AWS Systems Manager Automation to create AMIs from running instances without stopping them.
CCreate AMIs only from stopped instances to ensure data consistency.
DStop the instance, create an AMI, then start the instance again every day.
Attempts:
2 left
💡 Hint

Consider how to create AMIs without stopping instances to avoid downtime.

🧠 Conceptual
expert
2:00remaining
Understanding AMI lifecycle and snapshot dependencies

You deregister an AMI but keep its snapshots. Later, you create a new AMI using those snapshots. What is the impact on instance launch and storage costs?

AYou can launch instances from the new AMI, and storage costs continue for snapshots until deleted.
BYou cannot launch instances from the new AMI because snapshots are orphaned.
CInstances launched from the new AMI will be free of storage costs for snapshots.
DStorage costs stop immediately after deregistering the original AMI.
Attempts:
2 left
💡 Hint

Think about how snapshots relate to AMIs and billing.