Question 1 · choose 1
Every month an operations team must produce a hardened Amazon Linux AMI: start from the latest base image, apply operating system updates, install the company's agents, run tests on the result, and make the AMI available in three AWS Regions and to two other AWS accounts. The team wants this to run automatically with the least custom work. What should the team use?
- AAn Amazon Data Lifecycle Manager AMI policy that targets a reference instance
- BAn EC2 Image Builder pipeline with a recipe, test components, a schedule and distribution settings
- CAmazon ECR replication rules that copy the image to the three Regions and two accounts
- DA monthly CopyImage call from the console for each target Region after patching an instance by hand
Show the answer and why
AAn Amazon Data Lifecycle Manager AMI policy that targets a reference instance
Incorrect
Data Lifecycle Manager creates, retains and deletes EBS-backed AMIs of existing instances. It does not install updates or run tests.
BAn EC2 Image Builder pipeline with a recipe, test components, a schedule and distribution settings
Correct
Image Builder pipelines build, test and schedule images, and distribution settings copy the output AMI to other Regions and share it with other accounts.
CAmazon ECR replication rules that copy the image to the three Regions and two accounts
Incorrect
ECR replication copies container images between registries. It does not build or distribute AMIs.
DA monthly CopyImage call from the console for each target Region after patching an instance by hand
Incorrect
Copying an AMI to each Region works, but the patching, testing and copying would all stay manual.
Build, test, schedule and distribute in one managed pipeline is what EC2 Image Builder is for.
AWS documentation
- What is Image Builder? (opens in a new tab)
- Manage Image Builder distribution settings (opens in a new tab)
- Create Amazon Data Lifecycle Manager custom policy for EBS-backed AMIs (opens in a new tab)
- Automate backups with Amazon Data Lifecycle Manager (opens in a new tab)
- Private image replication in Amazon ECR (opens in a new tab)
- Copy an Amazon EC2 AMI (opens in a new tab)