SAA-C03 exam dumps

SAA-C03 practice question 197 of 553

AWS Certified Solutions Architect - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAA-C03 Question 197

Single answer

A 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?

  1. A

    Use an Auto Scaling Group to terminate old EC2 instances and launch new ones with the updated configuration.

  2. B

    Log in to existing EC2 instances and manually apply the configuration changes.

  3. C

    Update the EC2 instances in place using Systems Manager to apply new configuration scripts.

  4. 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.

Timed practice exam

Take a SAA-C03 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam