Rationale for Correct Answer: To save an execution plan to a file, Terraform uses the -out flag: terraform plan -out=tfplan. That produces a plan file that can later be applied with terraform apply tfplan.
Analysis of Incorrect Options (Distractors):
A: This is an apply command with a variable file flag; it does not create a plan file.
B: -target expects a resource address (like aws_instance.example), not a plan filename.
C: -generate-config-out is used with configuration generation workflows (e.g., from import), not for saving a plan.
Key Concept: Creating and saving plan files with terraform plan -out=....
[Reference: Terraform Objectives — Understand Terraform Basics and CLI (plan/apply workflow and plan files)., , , , ]
Submit