Free HashiCorp Terraform-Associate-003 Exam Actual Questions

The questions for Terraform-Associate-003 were last updated On May 6, 2024

Question No. 2

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?

A)

B)

C)

D)

Show Answer Hide Answer
Question No. 4

Which command must you first run before performing further Terraform operations in a working directory?

Show Answer Hide Answer
Correct Answer: D

terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It initializes a working directory containing Terraform configuration files and downloads any required providers and modules. The other commands are used for different purposes, such as importing existing resources, switching between workspaces, generating execution plans, etc.


Question No. 5

A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.

Which of the following methods could you use to discover which instance Terraform manages?

Show Answer Hide Answer