What is Immutable infrastructure?

An operational approach in which servers (virtual machines or containers) are never changed once created; when an update is needed, new ones are created from an image containing the change and swapped in, and the old ones are discarded. Because every server is created from the same image, configurations do not drift apart through accumulated manual differences, and going back to the previous image easily restores the old state. Anything to be kept, such as logs and data, is placed in storage or databases outside the servers.

Japanese name: イミュータブルインフラストラクチャ

Immutable infrastructure appears in 1 practice question across 1 topic, including Cloud and Container Basics.

Field: Cloud and Container Basics

Try it: questions about Immutable infrastructure

Which of the following is an appropriate way to update the software on production servers in line with the idea of immutable infrastructure?

  1. ALog in to the running production servers with SSH, update the packages and then restart the service
  2. BCreate new servers from a new image that includes the update, switch over to them, and discard the old servers without modifying them
  3. CRewrite the configuration files by hand without stopping the production servers, and record the changes in a work log
Show answer and explanation

Answer: B. Create new servers from a new image that includes the update, switch over to them, and discard the old servers without modifying them

With immutable infrastructure, servers (virtual machines or containers) are never modified once created; when a change is needed, new ones are created from an image that includes the change and swapped in. Because every server is created from the same image, configurations do not drift apart from server to server through accumulated manual differences. When a problem occurs, recreating from the previous image restores the old state. Anything that must be kept, such as logs and data, is stored in storage or databases outside the servers.

Immutable infrastructure in the explanations

Questions that mention Immutable infrastructure (1)

  1. Which of the following is an appropriate way to update the software on production servers in line with the idea of immutable infrastructure?

Books on Cloud and Container Basics Ad

As an Amazon Associate I earn from qualifying purchases.

Related terms

Container Autoscaling Availability zone Blue-green deployment Canary release Container image Docker Infrastructure as code (IaC) Kubernetes Object storage

Back to the glossary