Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 7Objective 2

7b Use the CLI to Inspect State TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)

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 13 practice questions to prepare you well beyond it. (estimate)

13questions here
3free pages
8concepts

Questions 6–10

  1. 6application · medium

    An engineer has a local state file that they want to use to update the remote state. They have verified the local file is correct and want to push it to the backend. Which command should they use?

    Select an answer first
  2. 7application · medium

    During a refactoring effort, a resource block in the configuration is being renamed from aws_instance.old_name to aws_instance.new_name. To ensure Terraform continues to manage the same real infrastructure, you need to update the state to reflect the new address. Which command should you use?

    Select an answer first
  3. 8foundation · easy

    You have a local state file that you need to upload to the remote backend, overwriting the current remote state. Which command should you use?

    Select an answer first
  4. 9foundation · easy

    You want to retrieve the raw state file from the remote backend and output it to the terminal for inspection. Which command should you use?

    Select an answer first
  5. 10foundation · easy

    A team member asks you to inspect the recorded state of a resource named 'azurerm_linux_virtual_machine.main' without running a plan or apply. Which command accomplishes this?

    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.