Leads4pass > HashiCorp > HashiCorp Certifications > TERRAFORM-ASSOCIATE-003 > TERRAFORM-ASSOCIATE-003 Online Practice Questions and Answers

TERRAFORM-ASSOCIATE-003 Online Practice Questions and Answers

Questions 4

How would you output returned values from a child module in the Terraform CLI output?

A. Declare the output in the root configuration

B. Declare the output in the child module

C. Declare the output in both the root and child module

D. None of the above

Buy Now
Questions 5

Terraform providers are part of the Terraform core binary.

A. True

B. False

Buy Now
Questions 6

Which option cannot be used to keep secrets out of Terraform configuration files?

A. A Terraform provider

B. Environment variables

C. A -var flag

D. secure string

Buy Now
Questions 7

Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

A. True

B. False

Buy Now
Questions 8

What does this code do?

A. Requires any version of the AWS provider > = 3.0 and <4.0

B. Requires any version of the AWS provider >= 3.0

C. Requires any version of the AWS provider > = 3.0 major release. like 4.1

D. Requires any version of the AWS provider > 3.0

Buy Now
Questions 9

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

A. terraform fmt -write-false

B. terraform fmt -list -recursive

C. terraform fmt -check -recursive

D. terraform fmt -check

Buy Now
Questions 10

You can reference a resource created with for_each using a Splat ( *) expression.

A. True

B. False

Buy Now
Questions 11

When do changes invoked by terraform apply take effect?

A. After Terraform has updated the state file

B. Once the resource provider has fulfilled the request

C. Immediately

D. None of the above are correct

Buy Now
Questions 12

Which are forbidden actions when the terraform state file is locked? Choose three correct answers.

A. Terraform state list

B. Terraform destroy

C. Terraform validate

D. Terraform validate

E. Terraform for

F. Terraform apply

Buy Now
Questions 13

You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?

A. Use the terraform state rm command to remove the VM from state file

B. Use the terraform taint command targeting the VMs then run terraform plan and terraform apply

C. Use the terraform apply command targeting the VM resources only

D. Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply

Buy Now
Exam Name: HashiCorp Certified: Terraform Associate (003) (HCTA0-003)
Last Update: Jul 03, 2026
Questions: 547
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99