Free Terraform Associate Exam Braindumps (page: 34)

Page 33 of 88

You are using a networking module in your Terraform configuration with the name label my_network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?

  1. Define the attribute vnet_id as a variable in the networking module
  2. Change the referenced value to module.my_network.outputs.vnet_id
  3. Define the attribute vnet_id as an output in the networking module
  4. Change the referenced value to my_network.outputs.vnet_id

Answer(s): C



You are writing a child Terraform module which provisions an AWS instance. You want to make use of the IP address returned in the root configuration. You name the instance resource "main".
Which of these is the correct way to define the output value using HCL2?



Answer(s): A



How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? (Choose two.)

  1. A full audit trail of the request and fulfillment process is generated
  2. A request must be submitted for infrastructure changes
  3. As additional resources are required, more tickets are submitted
  4. A catalog of approved resources can be accessed from drop down lists in a request form

Answer(s): C



Which of the following statements about Terraform modules is not true?

  1. Modules must be publicly accessible
  2. Modules can be called multiple times
  3. Module is a container for one or more resources
  4. Modules can call other modules

Answer(s): A






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

Exam Discussions & Posts