Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 3Objective 3

3c Validate a Terraform Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)

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

19questions here
4free pages
4concepts

Questions 6–10

  1. 6expert · hard

    A team is working on a large Terraform configuration with multiple modules and providers. They want to integrate validation into their CI/CD pipeline, but they are concerned about the time it takes to run terraform validate. They have already run terraform init in the pipeline. What is the most efficient way to validate the configuration in the pipeline?

    Select an answer first
  2. 7expert · hard

    A team is using Terraform with a custom provider that has a validation function that checks if a resource name meets specific naming conventions. The developer runs terraform validate and it succeeds, but terraform plan fails because the resource name does not meet the naming convention. Why did terraform validate not catch this?

    Select an answer first
  3. 8application · medium

    A junior engineer is editing a Terraform configuration in a shared repository. After making several changes, the engineer wants to ensure the configuration is still syntactically correct and internally consistent before committing. The engineer has not yet run terraform init in this directory. What is the most appropriate action?

    Select an answer first
  4. 9application · medium

    A developer runs terraform validate and receives the following output: 'Error: Reference to undeclared resource; A resource or module named "aws_instance.web" was not found.' The configuration does not define an aws_instance resource. What is the most likely cause of this error?

    Select an answer first
  5. 10application · medium

    A team is using Terraform to manage AWS infrastructure. After running terraform validate, the output shows 'Success! The configuration is valid.' However, when the team runs terraform plan, it fails because the AMI ID specified in the configuration does not exist in the AWS region being used. Why did terraform validate not catch this issue?

    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.