What is the difference between immutable and mutable infrastructure?

Prepare for the MP Deployment Exam 2. Ace your exam with targeted flashcards and practice questions, complete with hints and explanations. Boost your skills for test day!

Multiple Choice

What is the difference between immutable and mutable infrastructure?

Explanation:
The key distinction is how you apply changes to infrastructure. In immutable infrastructure, you don’t modify a running resource. instead you create a new resource with the desired changes (a new VM or container image with the updated software or configuration), deploy it, and switch traffic to the new resource while the old one is gradually decommissioned. This approach makes it easy to roll back by simply reactivating a previously released version. That idea is why the correct option is the one that says changes are achieved by replacing components rather than patching them in place. Patching or updating an existing component describes mutable infrastructure, where in-place changes are made to the current resource. They’re not the same concept, and mutable does involve changes after deployment, not a guarantee that nothing ever changes.

The key distinction is how you apply changes to infrastructure. In immutable infrastructure, you don’t modify a running resource. instead you create a new resource with the desired changes (a new VM or container image with the updated software or configuration), deploy it, and switch traffic to the new resource while the old one is gradually decommissioned. This approach makes it easy to roll back by simply reactivating a previously released version.

That idea is why the correct option is the one that says changes are achieved by replacing components rather than patching them in place. Patching or updating an existing component describes mutable infrastructure, where in-place changes are made to the current resource. They’re not the same concept, and mutable does involve changes after deployment, not a guarantee that nothing ever changes.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy