HashiCorp Certified: Terraform Associate (004) (HCTA0-004) (Terraform-Associate-004) Free Practice Test
Question 1
What is the workflow for deploying new infrastructure with Terraform?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources.
Which scenario presents a challenge for your team?
Which scenario presents a challenge for your team?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
If a module declares a variable with a default, that variable must also be defined within the module.
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Using the terraform state rm command against a resource will destroy it.
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
terraform validate confirms that your infrastructure matches the Terraform state file.
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
How will Terraform choose which version of the provider to use?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 9
What is an advantage of immutable infrastructure?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).