Problem Statement
Explain techniques to prevent configuration drift in IaC environments.
Explanation
Configuration drift is prevented by enforcing IaC as the single source of truth.
All infrastructure changes must go through code pipelines rather than manual edits. Automated drift detection tools, continuous compliance scans, and immutable infrastructure principles ensure environments remain synchronized with declared configurations.
