nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #197

Which command(s) adds existing resources in a public cloud into Terraform state?

The correct answer is D. terraform import. Importing Existing Resources: The terraform import command brings resources already deployed in a cloud environment into Terraform's state file, allowing Terraform to manage them. Workflow Usage: Importing is vital when managing resources created outside of Terraform or those…

Implement and Maintain State

Question

Which command(s) adds existing resources in a public cloud into Terraform state?

Options

  • Aterraform init
  • Bterraform plan
  • Cterraform refresh
  • Dterraform import
  • EAll of these

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    10% (2)
  • D
    80% (16)

Explanation

Importing Existing Resources: The terraform import command brings resources already deployed in a cloud environment into Terraform's state file, allowing Terraform to manage them. Workflow Usage: Importing is vital when managing resources created outside of Terraform or those in place before Terraform adoption.

Topics

#terraform import#existing resources#state management#infrastructure import

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice