HashiCorp Certified: Terraform Associate (004) (HCTA0-004) - Terraform-Associate-004 Exam Practice Test
When does Terraform create the .terraform.lock.hc1 file?
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Terraform encrypts sensitive values stored in your state file.
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
How do you specify a module's version when publishing it to the public terraform Module Registry?
Correct Answer: D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
Correct Answer: D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
A resource block is shown in the Exhibit space of this page. How would you reference the name value of the second instance of this resource?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Which is a benefit of the Terraform state file?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
A provider configuration block is required in every Terraform configuration.
Example:

Example:

Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You just scaled your VM infrastructure and realize you set the count variable to the wrong value. You correct the value and save your change. What must you do next to make your infrastructure match your configuration?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Any user can publish modules to the public Terraform Module Registry.
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?


Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).