TA-002-P Dumps

TA-002-P Free Practice Test

HashiCorp TA-002-P: HashiCorp Certified: Terraform Associate

QUESTION 66

- (Exam Topic 2)
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?

Correct Answer: BC
Structural type of variable allows multiple values of several distinct types to be grouped together as a single value. They require a schema as an argument, to specify which types are allowed for which elements.
https://www.terraform.io/docs/configuration/types.html

QUESTION 67

- (Exam Topic 1)
You’re building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run.
How can you do this safely?

Correct Answer: A
https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code-1d586955ace1

QUESTION 68

- (Exam Topic 2)
What is the default backend for Terraform?

Correct Answer: C
By default, Terraform uses the "local" backend, which is the normal behavior of Terraform you're used to. https://www.terraform.io/docs/backends/index.html

QUESTION 69

- (Exam Topic 4)
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Correct Answer: D
Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration. Use of data sources allows a Terraform configuration to build on information defined outside of Terraform, or defined by another separate Terraform configuration.

QUESTION 70

- (Exam Topic 4)
You have modified your Terraform configuration to fix a typo in the Terraform ID of a resource from aws_security_group.http to aws_security_group.http
TA-002-P dumps exhibit
Which of the following commands would you run to update the ID in state without destroying the resource?

Correct Answer: C
The terraform state mv command changes which resource address in your configuration is associated with a particular real-world object. Use this to preserve an object when renaming a resource, or when moving a resource into or out of a child module.