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: 20 Feb, 2026
Question 1

You have a set of city names, but the module input expects a list of strings. Which expression correctly converts the set to a list?variable "cities" {  type    = set(string)  default = ["pune", "goa", "austin", "agra"]}

Options :
Answer: C

Question 2

Which of the following Terraform files should be ignored by Git when committing code to a repo?

Options :
Answer: B

Question 3

You are performing a code review of a colleague's Terraform code and see the following code. Where is this module stored?module "vault-aws-tgw" {  source  = "terraform-aws-modules/transit-gateway/aws"  version = "3.0.3"  client_id      = var.bk_client  hvn_id         = var.hvn  route_table_id = var.rtb_id}

Options :
Answer: B

Question 4

In HCP Terraform, what is the purpose of using a run trigger?

Options :
Answer: B

Question 5

You join a new team and run terraform plan in a repository without running terraform init first. Which errors might you encounter? (select two)

Options :
Answer: C,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.