Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 7Objective 1

7a Import Existing Infrastructure into Your Terraform Workspace TERRAFORM-ASSOCIATE-004 Practice Questions (Page 1)

Part of the Maintain infrastructure with Terraform domain, which makes up ~7% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~2–3 in this domain), expect 1–1 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)

22questions here
5free pages
5concepts

Questions 1–5

  1. 1foundation · medium

    After running terraform import, what should you do to verify that the resource was correctly added to the state?

    Select an answer first
  2. 2application · hard

    A team is importing an existing AWS security group into Terraform. The security group ID is sg-0123456789abcdef0. They have a resource block aws_security_group.sg in their configuration. They run the import command and it succeeds. However, when they run terraform plan, they see that Terraform wants to remove all ingress rules. What is the most likely reason?

    Select an answer first
  3. 3foundation · medium

    What is the immediate effect of importing a resource into the state file?

    Select an answer first
  4. 4application · medium

    An administrator is importing an existing Azure virtual network into a Terraform configuration. The configuration file contains a resource block for azurerm_virtual_network.main. The administrator runs the import command and receives the error: 'Error: resource address azurerm_virtual_network.main has no corresponding resource in the configuration'. What is the most likely cause of this error?

    Select an answer first
  5. 5foundation · medium

    After importing an existing resource, what should you do before running terraform apply?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-ASSOCIATE-004” is a trademark of its owner, used for identification only.