Free Terraform-Associate-004 Mock Exam – Practice Online Confidently

Increase your chances of passing the HashiCorp Terraform-Associate-004 exam questions on your first try. Practice with our free online Terraform-Associate-004 exam mock test designed to help you prepare effectively and confidently.

Exam Code: Terraform-Associate-004
Exam Questions: 600
HashiCorp Certified: Terraform Associate (004) HCTAO-004
Updated: 02 Apr, 2026
Question 1

You have a variable containing subnet CIDR blocks as a list: ["10.0.5.0/24", "10.0.0.0/24", "10.0.2.0/24"]. You need to determine how many subnets are in the list to use. Which function returns the number of elements?

Options :
Answer: A

Question 2

You are currently using version 4.50.0 of the azurerm provider. You need to provision a few resources that are supported with the latest provider version, so you add the resource blocks and update the required_providers block to version = 4.53.0.What happens when you run terraform plan?

Options :
Answer: B

Question 3

Which statements about sensitive data and Terraform state are correct? (select two)

Options :
Answer: A,D

Question 4

What is the purpose of Terraform’s dependency graph?

Options :
Answer: A

Question 5

In the snippet below, where does the value for vpc_security_group_ids come from?module "ec2_instances" {  source  = "terraform-aws-modules/ec2-instance/aws"  version = "4.3.0"  name            = "pr0d-east-app"              instance_count  = 2  ami             = "ami-0c5204531f799e5-2"  instance_type   = "t3.micro"  vpc_security_group_ids = [module.vpc.default_security_group_id]  subnet_id              = module.vpc.public_subnets[0]  tags = { Owner = "btk-platform", Env = "pr0d-east" }}

Options :
Answer: D

Viewing Page : 1 - 60
Practicing : 1 - 5 of 600 Questions

© Copyrights FreeMockExams 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreeMockExams). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeMockExams.