Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 189


Which of the following can you do with terraform plan? (Choose two.)

Show Answer
Correct Answer: AC

Terraform plan can be used to save a generated execution plan with the -out=FILE flag, which allows you to apply this saved plan later. Additionally, it enables you to view the execution plan and verify that the changes match your expectations before applying them. These functionalities make options A and C the correct choices.

Discussion

4 comments
Sign in to comment
depal_dhirOptions: AC
Mar 7, 2024

https://learn.hashicorp.com/tutorials/terraform/plan

G4ExamsOptions: AC
May 1, 2024

C is the main purpose of plan and A can be done with plan -out=FILE flag. So A & C.

campsOptions: AC
Sep 30, 2024

A. Save a generated execution plan to apply later C. View the execution plan and check if the changes match your expectations

chessmaster5000Options: AC
Mar 22, 2025

Answer: A. Save a generated execution plan to apply later You can use terraform plan -out=planfile to save the execution plan. Later, you can run terraform apply planfile to apply that exact plan. C. View the execution plan and check if the changes match your expectations The primary purpose of terraform plan is to preview changes Terraform will make. This helps you review and validate before applying. Wrong answer: B. Execute a plan in a different workspace terraform plan runs in the currently selected workspace. You'd need to switch workspaces manually using terraform workspace select. D. Schedule Terraform to run at a planned time in the future Terraform doesn’t support scheduling out of the box. Scheduling would need to be handled by external tools like cron, CI/CD pipelines, or task schedulers.