Problem Statement
How does Terraform detect drift between configuration and actual infrastructure?
Explanation
Terraform detects drift by comparing the state file (what Terraform believes exists) with the live infrastructure fetched through provider APIs.
If any changes are detected, Terraform displays them in the plan output, allowing teams to review and reconcile differences before applying updates.
