ExamGecko
Question list
Search
Search

Question 51 - Terraform Associate 003 discussion

Report
Export

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

A.
Terraform plan --refresh-only
Answers
A.
Terraform plan --refresh-only
B.
Terraform show --json
Answers
B.
Terraform show --json
C.
Terraform apply --lock-false
Answers
C.
Terraform apply --lock-false
D.
Terraform plan target-state
Answers
D.
Terraform plan target-state
Suggested answer: A

Explanation:

This is the command that always causes a state file to be updated with changes that might have been made outside of Terraform, as it will only refresh the state file with the current status of the real resources, without making any changes to them or creating a plan.

asked 18/09/2024
Mark Hughes
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first