DOP-C02 Question 75
Select 3Your team is managing an e-commerce application hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). For the next deployment, your manager suggests using a mutable deployment pattern to reduce the operational overhead. Which of the following aspects BEST describe the risks or characteristics associated with mutable deployments compared to immutable deployments?
- A
The existing EC2 instances are updated in place, which increases the risk of configuration drift.
- B
Rollbacks are more complex because the previous application version and environment state might not be preserved.
- C
Mutable deployments require deploying new EC2 instances and decommissioning the old ones, ensuring no configuration drift.
- D
The deployment process is faster with mutable deployments since there is no need to provision new instances.
- E
Testing and validation of the new deployment can be done in isolation before switching traffic in a mutable deployment.
Show answer and explanation
Correct answers: A, B, D
Explanation
Mutable deployments involve updating existing resources (e.g., EC2 instances) in place. While they are faster and might reduce operational overhead initially, they introduce risks like configuration drift and make rollbacks more complex. Immutable deployments, on the other hand, create new resources and switch traffic to them, avoiding these risks at the cost of more infrastructure management.
- A. Correct.
Correct: With mutable deployments, updates are applied directly to existing resources, which increases the chances of configuration drift if changes are not properly managed.
- B. Correct.
Correct: Because the updates occur in place, rolling back to a previous state can be challenging since the environment’s previous state might not be preserved.
- C. Incorrect.
Incorrect: This describes an immutable deployment pattern, where new resources are provisioned, and old ones are decommissioned to avoid configuration drift.
- D. Correct.
Correct: Mutable deployments are typically faster since they do not require provisioning entirely new resources, unlike immutable deployments.
- E. Incorrect.
Incorrect: Testing and validation in isolation before traffic switching is a characteristic of immutable deployments, where a new environment is created and tested before replacing the old one.