SAA-C03 Question 197
Single answerA company is adopting an immutable infrastructure approach for its application deployments. The company uses EC2 instances to host its applications and wants to ensure that any infrastructure changes are deployed using a new set of EC2 instances rather than modifying the existing ones. Which strategy aligns with the principles of immutable infrastructure?
- A
Use an Auto Scaling Group to terminate old EC2 instances and launch new ones with the updated configuration.
- B
Log in to existing EC2 instances and manually apply the configuration changes.
- C
Update the EC2 instances in place using Systems Manager to apply new configuration scripts.
- D
Perform a rolling update by modifying the existing EC2 instances one at a time.
Show answer and explanation
Correct answer: A
Explanation
Immutable infrastructure emphasizes creating new infrastructure with the desired state rather than modifying existing infrastructure. Using an Auto Scaling Group to replace old EC2 instances with new ones ensures that updates are implemented in line with this principle, avoiding configuration drift or unintended issues caused by modifying running instances.
- A. Correct.
Using an Auto Scaling Group to terminate old instances and launch new ones aligns with immutable infrastructure principles, as it ensures that updated configurations are applied to new instances without modifying the existing ones.
- B. Incorrect.
Manually applying changes to existing instances violates immutable infrastructure principles, as changes should not be made directly to running instances.
- C. Incorrect.
Updating instances in place with Systems Manager modifies existing infrastructure, which is contrary to the concept of immutable infrastructure.
- D. Incorrect.
Performing a rolling update modifies existing instances incrementally, which does not adhere to the principle of creating new infrastructure for updates.