Online TA-002-P Practice TestMore HashiCorp Products >

Free HashiCorp TA-002-P Exam Dumps Questions

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

- Get instant access to TA-002-P practice exam questions

- Get ready to pass the HashiCorp Certified: Terraform Associate exam right now using our HashiCorp TA-002-P exam package, which includes HashiCorp TA-002-P practice test plus an HashiCorp TA-002-P Exam Simulator.

- The best online TA-002-P exam study material and preparation tool is here.

4.5 
(6195 ratings)

Question 1

- (Exam Topic 4)
What is a downside to using the Vault provider to read secrets from Vault?

Correct Answer:A
The Vault provider allows Terraform to read from, write to, and configure Hashicorp Vault.
Interacting with Vault from Terraform causes any secrets that you read and write to be persisted in both Terraform's state file and in any generated plan files. For any Terraform module that reads or writes Vault secrets, these files should be treated as sensitive and protected accordingly.

Question 2

- (Exam Topic 4)
Which of the following locations can Terraform use as a private source for modules? (Choose two.)

Correct Answer:AC

Question 3

- (Exam Topic 4)
When using parent/child modules to deploy infrastructure, how would you export a value from one module to import into another module.
For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.

Correct Answer:C
Output values are like the return values of a Terraform module, and have several uses:
* A child module can use outputs to expose a subset of its resource attributes to a parent module.
* A root module can use outputs to print certain values in the CLI output after running terraform apply.
* When using remote state, root module outputs can be accessed by other configurations via a terraform_remote_state data source.
https://www.terraform.io/docs/configuration/outputs.html

Question 4

- (Exam Topic 4)
What kind of configuration block will create an infrastructure object with settings specified in the block?

Correct Answer:C

Question 5

- (Exam Topic 3)
After running into issues with Terraform, you need to enable verbose logging to assist with troubleshooting the error. Which of the following values provides the MOST verbose logging?

Correct Answer:D
Terraform has detailed logs that can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr.
You can set TF_LOG to one of the log levels TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs. TRACE is the most verbose and it is the default if TF_LOG is set to something other than a log level name.
Examples:
export TF_LOG=DEBUG export TF_LOG=TRACE

Question 6

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

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

START TA-002-P EXAM