nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #34

Which command add existing resources into Terraform state?

The correct answer is D. Terraform import. This is the command that can add existing resources into Terraform state, by matching them with the corresponding configuration blocks in your files.

Implement and maintain state

Question

Which command add existing resources into Terraform state?

Options

  • ATerraform init
  • BTerraform plan
  • CTerraform refresh
  • DTerraform import
  • EAll of these

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    81% (22)
  • E
    11% (3)

Explanation

This is the command that can add existing resources into Terraform state, by matching them with the corresponding configuration blocks in your files.

Topics

#terraform import#state management#existing resources#import command

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice