Free TA-002-P Exam Braindumps

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

Page 11 of 19
QUESTION 46

- (Exam Topic 4)
Most Terraform providers interact with _____.

  1. A. API
  2. B. VCS Systems
  3. C. Shell scripts
  4. D. None of the above

Correct Answer: A
Terraform relies on plugins called "providers" to interact with cloud providers, SaaS providers, and other APIs, as per: https://www.terraform.io/language/providers

QUESTION 47

- (Exam Topic 4)
terraform init retrieves the source code tot all referenced modules

  1. A. True
  2. B. False

Correct Answer: A
Terraform installs providers, initialises source code & modules etc at this stage

QUESTION 48

- (Exam Topic 4)
What does terraform refresh modify?

  1. A. Your cloud infrastructure
  2. B. Your state file
  3. C. Your Terraform plan
  4. D. Your Terraform configuration

Correct Answer: B
The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match. Source: https://www.terraform.io/cli/commands/refresh

QUESTION 49

- (Exam Topic 4)
Which statements best describes what the local variable assignment is doing in the following code snippet:

  1. A. Create a distinct list of route table name objects
  2. B. Create a map of route table names to subnet names
  3. C. Create a map of route table names from a list of subnet names
  4. D. Create a list of route table names eliminating duplicates

Correct Answer: D

QUESTION 50

- (Exam Topic 1)
If a module uses a local variable, you can expose that value with a terraform output.

  1. A. True
  2. B. False

Correct Answer: A
Output values are like function return values.
Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.html

Page 11 of 19

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