Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 5 out of 12 pages
Viewing questions 41-50 out of questions
Questions # 41:

You want to create a string that is a combination of a generated random_id and a variable, and reuse that string several times in your configuration.

What is the simplest correct way to implement this without repeating the random_id and variable?

Options:

A.

Use a data source.


B.

Use a module.


C.

Add a local value.


D.

Add an output value.


Expert Solution
Questions # 42:

A Terraform configuration returns errors when you run terraform plan. How would you enable debug logging to investigate further?

Options:

A.

Rerun terraform plan with the appropriate command-line flag.


B.

Set the appropriate environment variable.


C.

Edit the Terraform CLI configuration file.


D.

Update the backend configuration.


Expert Solution
Questions # 43:

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

Options:

A.

True


B.

False


Expert Solution
Questions # 44:

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?

Options:

A.

List


B.

Object


C.

Map


D.

Terraform does not support complex input variables of different types


Expert Solution
Questions # 45:

Terraform variables and outputs that set the description argument will store that description in the state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 46:

When do changes invoked by terraform apply take effect?

Options:

A.

After Terraform has updated the state file


B.

Once the resource provider has fulfilled the request


C.

Immediately


D.

None of the above are correct


Expert Solution
Questions # 47:

Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.

Options:

A.

True


B.

False


Expert Solution
Questions # 48:

When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.

Options:

A.

True


B.

False


Expert Solution
Questions # 49:

Which parameters does the import block require? (Pick the 2 correct responses below.)

Options:

A.

The resource ID


B.

Provider


C.

The target resource address


D.

Backend


Expert Solution
Questions # 50:

You provisioned virtual machines (VMs) on Google Cloud Platform using the gcloud command-line tool.

What must be done to manage these VMs using Terraform instead? Pick the two correct responses.

Options:

A.

Pick the two correct responses below.


B.

Run terraform state pull.


C.

Add an import block to the configuration.


D.

Add a resource block for the existing VM.


E.

Run terraform apply -refresh-only.


Expert Solution
Viewing page 5 out of 12 pages
Viewing questions 41-50 out of questions