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?
Answer(s): B
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?
Answer(s): C
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:
Answer(s): D
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.
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.
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
Our website is free, but we have to fight against bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the Terraform-Associate-003 content, but please register or login to continue.