Which of the following is the primary benefit of using immutable infrastructure?
Think about how replacing servers instead of changing them affects consistency.
Immutable infrastructure means servers are replaced rather than changed, which reduces errors and configuration drift.
In an immutable infrastructure deployment, what is the recommended approach to update an application running on cloud servers?
Consider how immutable infrastructure treats servers as replaceable units.
Immutable infrastructure updates by deploying new server images and replacing old ones, avoiding manual or live changes.
Given the following Terraform snippet, what will happen when you change the AMI ID and apply the configuration?
resource "aws_instance" "web" {
ami = "ami-12345678"
instance_type = "t2.micro"
tags = {
Name = "web-server"
}
}resource "aws_instance" "web" { ami = "ami-12345678" instance_type = "t2.micro" tags = { Name = "web-server" } }
Think about how Terraform handles changes to immutable properties like AMI.
Changing the AMI causes Terraform to replace the instance because AMI is immutable for an existing instance.
Which security advantage is most directly improved by adopting immutable infrastructure?
Consider how replacing servers affects unauthorized changes.
Immutable infrastructure reduces risk of unauthorized changes because servers are replaced rather than modified.
During an immutable infrastructure deployment, how should a load balancer be configured to minimize downtime when replacing backend servers?
Think about how to keep service available during server replacement.
Removing old servers only after new ones are healthy ensures continuous service without downtime.