Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 4Objective 1

4a Use and Differentiate Resource and Data Blocks TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)

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

16questions here
4free pages
6concepts

Questions 6–10

  1. 6expert · hard

    A Terraform configuration includes a resource block for an Azure virtual machine. The VM has an argument `os_disk` that includes a `caching` setting. The engineer changes the `caching` setting from `ReadOnly` to `ReadWrite`. The Azure provider marks this argument as forcing replacement. What will Terraform do during `terraform apply`?

    Select an answer first
  2. 7expert · hard

    A team uses Terraform to manage infrastructure in AWS. They have an existing S3 bucket that is used for logging and is NOT managed by Terraform. They need to create a new S3 bucket that replicates objects to the existing bucket. The replication configuration must reference the existing bucket's ARN. The team wants to ensure that if the existing bucket is deleted, Terraform will not try to recreate it. What is the correct approach?

    Select an answer first
  3. 8expert · hard

    A Terraform configuration creates an Azure resource group, a virtual network, and a subnet. The subnet references the virtual network's name. The virtual network references the resource group's name. The engineer wants to ensure that the resource group is created before the virtual network, and the virtual network is created before the subnet. Which statement about dependencies is correct?

    Select an answer first
  4. 9expert · hard

    A company is adopting Terraform to manage a portion of their AWS environment. They have an existing VPC and an existing security group that are shared across multiple teams. They need to create a new EC2 instance in the existing VPC, using the existing security group. The instance must be recreated if the security group's ID changes, but the VPC and security group must NOT be managed by Terraform. The configuration currently uses data blocks for the VPC and security group. What is the most accurate statement about how Terraform will handle the instance if the security group's ID changes?

    Select an answer first
  5. 10foundation · easy

    Which of the following is an example of an implicit dependency in Terraform?

    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.