Exam Code: Terraform-Associate-004
Exam Questions: 600
HashiCorp Certified: Terraform Associate (004) HCTAO-004
Updated: 16 Apr, 2026
Viewing Page : 1 - 60
Practicing : 1 - 5 of 600 Questions
Question 1

You have a Terraform configuration file defining resources to deploy on VMware, yet there is no related state file. You have successfully run terraform init already. What happens when you run a terraform apply?

Options :
Answer: A

Question 2

What is the .terraform.lock.hcl file and when does Terraform create or modify it?

Options :
Answer: C

Question 3

A root module includes several variables in terraform.tfvars. You add a child module as shown below. What values can the child module access by default?module "web" {  source = "./modules/web"}

Options :
Answer: A

Question 4

You have recently run terraform apply successfully using the local backend. You notice Terraform has created a new file called terraform.tfstate.backup in your working directory. What is the purpose of this file?

Options :
Answer: D

Question 5

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

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

© Copyrights FreePDFQuestions 2026. All Rights Reserved

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