AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company is deploying a new web application that requires a disciplined approach to deployment, management, and rollback. They want to ensure that every deployment is predictable and that the infrastructure state remains consistent after each launch. Which design approach best meets these requirements by embracing the concept of immutable infrastructure?
Update existing instances in place with new software revisions using configuration-management tools.
Use AWS CodeDeploy to orchestrate in-place application updates to the latest revision on the existing instances.
Package the application into Docker containers and run them on a fleet of Amazon EC2 instances without predefined host configurations.
Create a new Amazon Machine Image (AMI) for each deployment and replace existing instances with new instances launched from the AMI.
Creating new Amazon Machine Images (AMIs) for each release and launching new instances from those AMIs prevents in-place changes, eliminating configuration drift. If a problem occurs, the deployment can roll back simply by switching traffic to the previous AMI version. In-place updates performed by configuration-management tools or by AWS CodeDeploy's in-place mode modify running servers and therefore break immutability. Packaging an application into Docker containers without controlling the host configuration can still leave the underlying EC2 hosts mutable, so the entire stack is not guaranteed to be immutable.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Amazon Machine Images (AMIs) and how do they work?
Open an interactive chat with Bash
What does immutable infrastructure mean in cloud computing?
Open an interactive chat with Bash
What are the advantages of using immutable infrastructure over mutable approaches?