HashiCorp Certified: Terraform Associate - TA-002-P Exam Practice Test
Question 1
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: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 2
When you use a remote backend that needs authentication, HashiCorp recommends that you:
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 3
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 4
Where can Terraform not load a provider from?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 5
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 Actualtests4sure members. You can sign-up / login (it's free).
Question 6
What does Terraform use the .terraform.lock.hc1 file for?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 7
When does Sentinel enforce policy logic during a Terraform Cloud run?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
Terraform providers are always installed from the Internet.
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 9
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: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 10
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).

