Free TA-002-P Exam Braindumps

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

Page 20 of 19
QUESTION 91

- (Exam Topic 4)
Terraform console provides an interactive command-line console for evaluating and experimenting with expressions. You can use it to test interpolations before using them in configurations and to interact with any values currently saved in state.
Which configuration consistency errors does terraform validate report?

  1. A. A mix of spaces and tabs in configuration files
  2. B. Differences between local and remote state
  3. C. Terraform module isn't the latest version
  4. D. Declaring a resource identifier more than once

Correct Answer: D
validate will look for syntax errors "Declaring a resource identifier more than once" is a syntax error

QUESTION 92

- (Exam Topic 1)
Which of the following is not a key principle of infrastructure as code?

  1. A. Versioned infrastructure
  2. B. Golden images
  3. C. Idempotence
  4. D. Self-describing infrastructure

Correct Answer: B
Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as- code#:~:text=Idempotence is a principle of,of the environment's starting state.

QUESTION 93

- (Exam Topic 1)
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.

  1. A. True
  2. B. False

Correct Answer: B
TF_LOG_PATH IS NOT REQUIRED, in the docs, they do not mention HAVE TO SET TF_LOG_PATH, it is optional, therefore without TF_LOG_PATH will cause detailed logs to appear on stderr.
https://www.computerhope.com/jargon/s/stderr.htm#:~:text=Stderr, also known as standard,

QUESTION 94

- (Exam Topic 4)
What command can you run to generate DOT (Document Template) formatted data to visualize Terraform dependencies?

  1. A. terraform refresh
  2. B. terraform show
  3. C. terraform graph
  4. D. terraform output

Correct Answer: C
The terraform graph command is used to generate a visual representation of either a configuration or execution plan. The output is in the DOT format, which can be used by GraphViz to generate charts.

QUESTION 95

- (Exam Topic 3)
The terraform state command can be used to _____

  1. A. Update current state
  2. B. Refresh existing state file
  3. C. Print the current state file in console
  4. D. It is not a valid command

Correct Answer: A
The terraform state command is used for advanced state management. Rather than modify the state directly, the terraform state commands can be used in many cases instead.
https://www.terraform.io/docs/commands/state/index.html

Page 20 of 19

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