Q: 8
[Understand Terraform Basics and CLI]
You modified your Terraform configuration and run Terraform plan to review the changes.
Simultaneously, your teammate manually modified the infrastructure component you are working
on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the
same.
Options
Discussion
False . Terraform apply triggers a refresh, so if your teammate made manual infra changes after your plan, apply will see them and generate a new plan. Only using a saved plan file would skip that. Pretty sure that's exam intent, but let me know if you disagree.
Always some Terraform trickery, right? False tbh
False tbh, because terraform apply does its own refresh before applying, so it'll see whatever your teammate changed and adjust the plan. Manual tweaks outside of Terraform always risk drift like this. Only with a saved plan file would the apply skip that refresh step. Anyone else catch that nuance?
Would the answer change if terraform apply used a saved plan file instead of running a fresh plan?
Guessing False pretty confidently, saw a similar question in exam reports and it's a classic Terraform refresh scenario.
Nope, that's False. terraform apply will always refresh and see those manual tweaks, not just replay your earlier plan.
False . People miss that terraform apply refreshes state so new manual changes get noticed, trap for A.
False . The plan changes if your teammate messes with infra after you run plan, since terraform apply refreshes before acting.
Seen this on a few practice exams. Official docs and practice tests both show it's False.
Be respectful. No spam.