Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers | Set: 7

Questions 61

A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?

Options:
A.

resource.kubernetes_namespace.example.name

B.

kubernetes_namespace.example.name

C.

data.kubernetes.namespace.name

D.

kubernetes_namespace.test.name

HashiCorp Terraform-Associate-004 Premium Access
Questions 62

Which command doesnotcause Terraform to refresh its state?

Options:
A.

terraform state list

B.

terraform plan

C.

terraform apply

D.

terraform destroy

Questions 63

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?

Options:
A.

Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages

B.

Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs

C.

Run terraform taint/code on all the VMs to recreate them

D.

Use terraform refresh/code to find out which IDs are already part of state

Questions 64

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

Options:
A.

True

B.

False

Questions 65

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Options:
A.

Terraform plan –refresh-only

B.

Terraform show –json

C.

Terraform apply –lock-false

D.

Terraform plan target-state

Questions 66

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

Questions 67

What functionality do providers offer in Terraform?(Pick 3 correct responses)

Options:
A.

Interact with cloud provider APIs.

B.

Provision resources for on-premises infrastructure services.

C.

Group a collection of Terraform configuration files that map to a single state file.

D.

Provision resources for public cloud infrastructure services.

E.

Enforce security and compliance policies.

Questions 68

Which of the following is not true of Terraform providers?

Options:
A.

An individual person can write a Terraform Provider

B.

A community of users can maintain a provider

C.

HashiCorp maintains some providers

D.

Cloud providers and infrastructure vendors can write, maintain, or collaborate on Terraform

E.

providers

F.

None of the above

Questions 69

The -refresh-only parameter will update your state file when used with terraform plan.

Options:
A.

True

B.

False

Questions 70

Which method for sharing Terraform configurations fulfills the following criteria:

1. Keeps the configurations confidential within your organization

2. Support Terraform’s semantic version constrains

3. Provides a browsable directory

Options:
A.

Subfolder within a workspace

B.

Generic git repository

C.

Terraform Cloud private registry

D.

Public Terraform module registry