nerdexam
HashiCorpHashiCorp

TA-002-P · Question #329

TA-002-P Question #329: Real Exam Question with Answer & Explanation

The correct answer is B: False. terraform apply does not strictly require a previously generated plan file; if no plan is specified, it will automatically generate one before prompting for approval to apply changes.

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

terraform apply will fail if you have not run terraform plan first to update the plan output.

Options

  • ATrue
  • BFalse

Explanation

terraform apply does not strictly require a previously generated plan file; if no plan is specified, it will automatically generate one before prompting for approval to apply changes.

Common mistakes.

  • A. The statement is false because terraform apply can generate its own plan if one isn't explicitly provided, meaning a prior terraform plan -out=FILE command is not strictly necessary for it to succeed.

Concept tested. Terraform apply command behavior

Reference. https://developer.hashicorp.com/terraform/cli/commands/apply

Topics

#terraform apply#terraform plan#Terraform CLI#workflow

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions