TA-002-P Dumps

TA-002-P Free Practice Test

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

QUESTION 41

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

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 42

- (Exam Topic 4)
Which command lets you experiment with Terraform's built-in functions?

Correct Answer: B
https://www.terraform.io/cli/commands/console

QUESTION 43

- (Exam Topic 2)
You want terraform plan and apply to be executed in Terraform Cloud's run environment but the output is to be streamed locally. Which one of the below you will choose?

Correct Answer: C
The remote backend stores Terraform state and may be used to run operations in Terraform Cloud. When using full remote operations, operations like terraform plan or terraform apply can be executed in
Terraform Cloud's run environment, with log output streaming to the local terminal.
Remote plans and applies use variable values from the associated Terraform Cloud workspace. https://www.terraform.io/docs/backends/types/remote.html

QUESTION 44

- (Exam Topic 2)
The terraform init command is always safe to run multiple times, to bring the working directory up to date with changes in the configuration. Though subsequent runs may give errors, this command will never delete your existing configuration or state.

Correct Answer: B
https://www.terraform.io/docs/commands/init.html

QUESTION 45

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

Correct Answer: A