Free TA-002-P Exam Braindumps

Pass your HashiCorp Certified: Terraform Associate exam with these free Questions and Answers

Page 2 of 19
QUESTION 1

- (Exam Topic 1)
Which of the following is not true of Terraform providers?

  1. A. Providers can be written by individuals
  2. B. Providers can be maintained by a community of users
  3. C. Some providers are maintained by HashiCorp
  4. D. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
  5. E. None of the above

Correct Answer: E
https://registry.terraform.io/providers/hashicorp/google/latest - This provider is collaboratively maintained by the Google Terraform Team at Google and the Terraform team at HashiCorp
https://www.terraform.io/language/providers

QUESTION 2

- (Exam Topic 1)
Which of the following is allowed as a Terraform variable name?

  1. A. count
  2. B. name
  3. C. source
  4. D. version

Correct Answer: B
"The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals." https://www.terraform.io/language/values/variables

QUESTION 3

- (Exam Topic 4)
Why should secrets not be hard coded into Terraform code? Choose two correct answers

  1. A. All passwords should be rotated on a quarterly basis.
  2. B. The Terraform code is copied to the target resources to be applied locally and could expose secrets if a target resource is compromised.
  3. C. Terraform code is typically stored in version control, as well as copied to the systems from h it's run.Any of those may not have robust security mechanisms.
  4. D. It makes the code less reusable.

Correct Answer: BC

QUESTION 4

- (Exam Topic 3)
The canonical format may change in minor ways between Terraform versions, so after upgrading Terraform it is recommended to proactively run.

  1. A. terraform fmt
  2. B. terraform init
  3. C. terraform validate
  4. D. terraform plan

Correct Answer: A

QUESTION 5

- (Exam Topic 4)
What does the command terraform fmt do?

  1. A. Rewrite Terraform configuration files to a canonical format and style.
  2. B. Deletes the existing configuration file.
  3. C. Updates the font of the configuration file to the official font supported by HashiCorp.
  4. D. Formats the state file in order to ensure the latest state of resources can be obtained.

Correct Answer: A
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of the Terraform language style conventions, along with other minor adjustments for readability.
Other Terraform commands that generate Terraform configuration will produce configuration files that conform to the style imposed by terraform fmt, so using this style in your own files will ensure consistency.
https://www.terraform.io/docs/commands/fmt.html

Page 2 of 19

Post your Comments and Discuss HashiCorp TA-002-P exam with other Community members: