
HashiCorp Certified:Terraform Associate
Domain 4Objective 1
4a Use and Differentiate Resource and Data Blocks TERRAFORM-ASSOCIATE-004 Practice Questions (Page 1)
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 1–5
- 1
A team uses Terraform to manage infrastructure in Google Cloud. They have an existing VPC network that was created outside of Terraform. They need to create a new subnet inside that existing VPC. The subnet configuration must reference the VPC's self-link. Which block type should they use to obtain the VPC's self-link?
Select an answer first - 2
A company uses Terraform to manage a mix of existing and new AWS infrastructure. They have an existing IAM role that is used by multiple applications and must NOT be managed by Terraform. They need to create a new Lambda function that assumes this IAM role. The Lambda function's execution role ARN must reference the existing IAM role. What is the correct approach?
Select an answer first - 3
What does Terraform do when a resource block is removed from the configuration and `terraform apply` is run?
Select an answer first - 4
A configuration needs to use the ID of an existing subnet that was created outside of Terraform. Which block type should be used to obtain this ID?
Select an answer first - 5
In a Terraform data block, what is the purpose of the query arguments in the block body?
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.