nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #111

A terraform apply can not _________ infrastructure.

The correct answer is D. import. 'terraform apply' can provision, change, and destroy infrastructure (using the -destroy flag or by removing resources from configuration). However, 'terraform apply' cannot import existing infrastructure into the Terraform state. Importing is a separate operation performed exclus

Submitted by ricky.ec· Apr 18, 2026Use Terraform CLI

Question

A terraform apply can not _________ infrastructure.

Options

  • Achange
  • Bdestroy
  • Cprovision
  • Dimport

How the community answered

(31 responses)
  • A
    6% (2)
  • C
    3% (1)
  • D
    90% (28)

Explanation

'terraform apply' can provision, change, and destroy infrastructure (using the -destroy flag or by removing resources from configuration). However, 'terraform apply' cannot import existing infrastructure into the Terraform state. Importing is a separate operation performed exclusively with the 'terraform import' command, which brings real-world resources under Terraform management by writing them into the state file. There is no way to trigger an import as part of a normal apply.

Topics

#terraform apply#terraform import#CLI commands#infrastructure lifecycle

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice