
HashiCorp Certified:Terraform Associate
Domain 4Objective 2
4b Refer to Resource Attributes and Create Cross-Resource References 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 9 practice questions to prepare you well beyond it. (estimate)
9questions here
2free pages
4concepts
Questions 6–9
- 6
In a Terraform configuration, you have defined an AWS instance resource named "web" in the "aws_instance" resource type. You need to pass the instance's public IP address to a null_resource provisioner's connection block. Which expression correctly references that attribute?
Select an answer first - 7
A team is refactoring their Terraform configuration. They notice that a resource A references an attribute of resource B, but they want to ensure resource B is created before resource A even if the reference is removed later. What should they do?
Select an answer first - 8
A company has a Terraform configuration that creates an AWS VPC, a subnet, and an EC2 instance. The instance references the subnet ID. During a terraform plan, the team notices that Terraform wants to destroy and recreate the subnet. What is the most likely reason for this behavior?
Select an answer first - 9
An organization is using Terraform to deploy a multi-tier application on AWS. They have an ALB (Application Load Balancer), a target group, and an autoscaling group. The autoscaling group must register instances with the target group. The target group references the ALB's ARN. The autoscaling group references the target group's ARN. What is the correct dependency chain?
Select an answer first
Finished these 4 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to TERRAFORM-ASSOCIATE-004
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.