00:00

QUESTION 1

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
Terraform-Associate-003 dumps exhibit

Correct Answer: D
This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax. The other options are either invalid or incomplete.

QUESTION 2

Which Terraform collection type should you use to store key/value pairs?

Correct Answer: B
The Terraform collection type that should be used to store key/value pairs is map. A map is a collection of values that are accessed by arbitrary labels, called keys.
The keys and values can be of any type, but the keys must be unique within a map. For example, var = { key1 = "value1", key2 = "value2" } is a map with two key/value pairs. Maps are useful for grouping related values together, such as configuration options or
metadata. References = [Collection Types], [Map Type Constraints]

QUESTION 3

You can configure Terraform to log to a file using the TF_LOG environment variable.

Correct Answer: A
You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location. References = : Debugging Terraform

QUESTION 4

In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.

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

QUESTION 5

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Correct Answer: D
Dynamic blocks in Terraform allow you to define multiple nested blocks within a resource based on the values of a variable. This feature is particularly useful for scenarios where the number of nested blocks is not fixed and can change based on variable input.