Free Terraform-Associate-003 Exam Braindumps (page: 12)

Page 12 of 45

How does Terraform manage most dependencies between resources?

  1. Terraform will automatically manage most resource dependencies
  2. Using the depends_on parameter
  3. By defining dependencies as modules and including them in a particular order
  4. The order that resources appear in Terraform configuration indicates dependencies

Answer(s): A

Explanation:

This is how Terraform manages most dependencies between resources, by using the references between them in the configuration files. For example, if resource A depends on resource B, Terraform will create resource B first and then pass its attributes to resource A.



You have declared a variable called var.list which is a list of objects that all have an attribute id .
Which options will produce a list of the IDs? Choose two correct answers.

  1. [ var.list [ * ] , id ]
  2. [ for o in var.list : o.Id ]
  3. var.list[*].id
  4. { for o in var.llst : o => o.id }

Answer(s): B,C

Explanation:

These are two ways to produce a list of the IDs from a list of objects that have an attribute id, using either a for expression or a splat expression syntax.



It is best practice to store secret data in the same version control repository as your Terraform configuration.

  1. True
  2. False

Answer(s): B

Explanation:

It is not a best practice to store secret data in the same version control repository as your Terraform configuration, as it could expose your sensitive information to unauthorized parties or compromise your security. You should use environment variables, vaults, or other mechanisms to store and provide secret data to Terraform.



_______backends support state locking.

  1. All
  2. No
  3. Some
  4. Only local

Answer(s): C

Explanation:

Some backends support state locking, which prevents other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss. Not all backends support this feature, and you can check the documentation for each backend type to see if it does.



Page 12 of 45



Post your Comments and Discuss HashiCorp Terraform-Associate-003 exam with other Community members:

Marc commented on October 18, 2024
What the best way to learn terraform?
UNITED STATES
upvote

Chandra commented on October 09, 2024
This is the best and only way of passing this exam as it is extremely hard. Good questions and valid dump.
INDIA
upvote

Madhan commented on September 26, 2024
Useful questions
INDIA
upvote

Abu commented on September 22, 2024
I did not know these questions were available online. I did not believe and trust them and studied quite a lot and just used these questions for practice. But most of the questions turned out to be in the exam.
UNITED STATES
upvote

Sahin commented on July 04, 2024
Need que to learn new things
UNITED STATES
upvote