nerdexam
HashiCorpHashiCorp

TA-002-P · Question #67

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

The correct answer is A: Validates your expectations against the execution plan without permanently modifying. The 'terraform plan' command helps in development by showing a preview of the changes Terraform will make to infrastructure without actually applying them, allowing validation of configuration before deployment.

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

Question

How can terraform plan aid in the development process?

Options

  • AValidates your expectations against the execution plan without permanently modifying
  • BInitializes your working directory containing your Terraform configuration files
  • CFormats your Terraform configuration files
  • DReconciles Terraform's state against deployed resources and permanently modifies state

Explanation

The 'terraform plan' command helps in development by showing a preview of the changes Terraform will make to infrastructure without actually applying them, allowing validation of configuration before deployment.

Common mistakes.

  • B. 'terraform init' initializes the working directory, downloads providers, and sets up backend configuration.
  • C. 'terraform fmt' formats Terraform configuration files to a canonical style.
  • D. 'terraform refresh' reconciles state, and 'terraform apply' modifies state and infrastructure; 'plan' does not permanently modify.

Concept tested. Terraform plan command purpose

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

Topics

#terraform plan#execution plan#CLI#validation

Community Discussion

No community discussion yet for this question.

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