nerdexam
HashiCorpHashiCorp

TA-002-P · Question #347

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

The correct answer is A: import. While terraform apply can provision, change, or destroy infrastructure, it does not have the capability to import existing infrastructure into the Terraform state.

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

Question

A terraform apply can not___________infrastructure.

Options

  • Aimport
  • Bprovision
  • Cdestroy
  • Dchange

Explanation

While terraform apply can provision, change, or destroy infrastructure, it does not have the capability to import existing infrastructure into the Terraform state.

Common mistakes.

  • B. terraform apply provisions new infrastructure resources defined in the configuration.
  • C. terraform apply with the -destroy flag can be used to destroy all resources managed by the configuration.
  • D. terraform apply is used to change or update existing infrastructure resources to match the desired state in the configuration.

Concept tested. Terraform apply command capabilities

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

Topics

#terraform apply#terraform import#Terraform CLI#infrastructure management

Community Discussion

No community discussion yet for this question.

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