DevOps · Infrastructure as Code
How would you answer an interview scenario involving configuration drift?
In an interview, I would first define configuration drift and the problem it solves, then explain how I would detect drift with scheduled plans or inventory checks, restrict manual modification, import legitimate resources into IaC, document emergency changes, and reconcile differences quickly. I would also call out the main failure mode: ignoring drift until the next deployment can cause Terraform or another tool to unexpectedly overwrite important manual changes. Finally, I would describe how I would test, monitor, and safely roll back or recover the solution.