HashiCorp Certified: Terraform Associate (TA-002-P) Free Practice Test
Question 1
Which command must you first run before performing further Terraform operations in a working directory?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
You must use different Terraform commands depending on the cloud provider you use.
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Which command add existing resources into Terraform state?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Why does this backend configuration not follow best practices?


Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
A module can always refer to all variables declared in its parent module.
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
Which backend does the Terraform CU use by default?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
How does Terraform determine dependencies between resources?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 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?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
Which variable type could you use for this input?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).