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

Page 13 of 45

You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?

  1. List
  2. Object
  3. Map
  4. Terraform does not support complex input variables of different types

Answer(s): B

Explanation:

This is the variable type that you could use for this input, as it can store multiple attributes of different types within a single value. The other options are either invalid or incorrect for this use case.



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

  1. Modules can call other modules
  2. A module is a container for one or more resources
  3. Modules must be publicly accessible
  4. You can call the same module multiple times

Answer(s): C

Explanation:

This is not true, as modules can be either public or private, depending on your needs and preferences. You can use the Terraform Registry to publish and consume public modules, or use Terraform Cloud or Terraform Enterprise to host and manage private modules.



When you use a remote backend that needs authentication, HashiCorp recommends that you:

  1. Write the authentication credentials in the Terraform configuration files
  2. Keep the Terraform configuration files in a secret store
  3. Push your Terraform configuration to an encrypted git repository
  4. Use partial configuration to load the authentication credentials outside of the Terraform code

Answer(s): D

Explanation:

This is the recommended way to use a remote backend that needs authentication, as it allows you to provide the credentials via environment variables, command-line arguments, or interactive prompts, without storing them in the Terraform configuration files.



You can reference a resource created with for_each using a Splat ( *) expression.

  1. True
  2. False

Answer(s): B

Explanation:

You cannot reference a resource created with for_each using a splat (*) expression, as it will not work with resources that have non-numeric keys. You need to use a for expression instead to iterate over the resource instances.



Page 13 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