TA-002-P · Question #359
Which of the following can you do with terraform plan? Choose two correct answers.
The correct answer is A. View the execution plan and check if the changes match your expectations D. Save a generated execution plan to apply later. A is correct: 'terraform plan' reads your configuration and state, then generates an execution plan showing what actions Terraform would take (create, update, destroy). This lets you review changes before applying them. D is also correct: using 'terraform plan -out=<filename>' sa
Question
Which of the following can you do with terraform plan? Choose two correct answers.
Options
- AView the execution plan and check if the changes match your expectations
- BSchedule Terraform to run at a planned time in the future
- CExecute a plan in a different workspace
- DSave a generated execution plan to apply later
How the community answered
(29 responses)- A90% (26)
- B3% (1)
- C7% (2)
Explanation
A is correct: 'terraform plan' reads your configuration and state, then generates an execution plan showing what actions Terraform would take (create, update, destroy). This lets you review changes before applying them. D is also correct: using 'terraform plan -out=<filename>' saves the plan to a file, which can later be passed to 'terraform apply <filename>' to execute exactly those planned changes - useful for separating the review and apply steps in CI/CD workflows. B is incorrect: Terraform has no built-in scheduler. C is incorrect: 'terraform plan' operates in the current workspace; workspace switching is done with 'terraform workspace select'.
Topics
Community Discussion
No community discussion yet for this question.