A platform team fixes production bugs by opening an SSH session into running containers and editing files in place. Over time the containers drift apart and nobody can reproduce a given container's exact state. Which cloud native practice removes this drift by treating running instances as disposable?
- AMutable configuration management, where an agent continuously re-applies a desired file state onto each running container.
- BVertical scaling, where each container is granted more CPU and memory so that fewer manual fixes are ever needed.
- CImmutable infrastructure, where a change is shipped as a rebuilt image and the old container is replaced rather than edited. Correct
- DBlue-green deployment, where traffic is split between two container versions so that live edits can be tested safely.
Why A is wrong: Tempting because configuration-management agents do enforce a target state, but they keep mutating live instances, which is the very source of drift, so instances never become disposable.
Why B is wrong: Tempting because more resources reduce some failures, but adding capacity does nothing about in-place edits or reproducibility and leaves the drift untouched.
Why C is correct: Correct: rebuilding the image and replacing the container means running instances are never modified, so every instance is reproducible from its image and drift cannot accumulate.
Why D is wrong: Tempting because blue-green does swap between versions, but it is a traffic and release strategy that still permits editing running containers and does not make instances immutable.