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 the infrastructure state remains consistent after each launch. Which of the following design approaches will help the company meet these requirements by embracing the concept of immutable infrastructure?
Updating the existing instances in place with new software revisions using configuration management tools.
Leveraging Amazon EC2 Auto Scaling to automatically adjust the number of instances during traffic variations.
Employing AWS Elastic Beanstalk to manage application deployments by directly updating the application versions on existing instances.
Packaging the application into Docker containers and running them on a fleet of Amazon EC2 instances without predefined configurations.
Creating new Amazon Machine Images (AMIs) for each deployment and replacing the existing instances with new instances launched from these AMIs.
Utilizing AWS CodeDeploy to orchestrate in-place application updates to the latest revision by replacing application code.
Using Amazon Machine Images (AMIs) to pre-bake configurations ensures that the infrastructure deployed is consistent and unchangeable after deployment. When a new deployment is required, a new AMI is built with the desired state and new instances are created from this AMI, which provides predictability and easy rollback to previous versions by switching to the corresponding AMI. This embodies the concept of immutable infrastructure as opposed to mutable approaches like in-place upgrades or ad-hoc scripting that can lead to inconsistent states. Docker containers, while they can be part of an immutable infrastructure, on their own do not encapsulate the entire machine's configuration and state. Additionally, AWS Elastic Beanstalk, AWS CodeDeploy, and Amazon EC2 Auto Scaling can support immutable deployments, but they are not synonymous with it; they can also be used in mutable deployment strategies.
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?