Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 285

When do you need to explicitly execute terraform refresh-only?

    Correct Answer: D

    The correct option is 'None of the above'. The 'terraform refresh-only' command doesn't need to be executed explicitly under typical conditions before any of the other commands listed (terraform plan, terraform apply, or terraform import). This command is used to reconcile the state file with the real-world infrastructure without making any changes to that infrastructure.

Discussion
vindi135Option: D

D. none of the above. The question isn't fully correct, the command is terraform apply -refresh-only. You'd only want to do this in place of terraform taint, when you'd want the state to be the same as the real world infrastructure

Alandt

init mate? (London accent)