Which of the following can you do with terraform plan? (Choose two.)
Which of the following can you do with terraform plan? (Choose two.)
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.
https://learn.hashicorp.com/tutorials/terraform/plan
C is the main purpose of plan and A can be done with plan -out=FILE flag. So A & C.
A. Save a generated execution plan to apply later C. View the execution plan and check if the changes match your expectations
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.