Summer 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: 2

Questions 11

Using the terraform state rm command against a resource will destroy it.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 12

Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Options:
A.

Prevents manual modifications to your resources

B.

Lets you version, reuse, and share infrastructure configuration

C.

Secures your credentials

D.

Provisions the same resources at a lower cost

E.

Reduces risk of operator error

Questions 13

Terraform encrypts sensitive values stored in your state file.

Options:
A.

True

B.

False

Questions 14

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

Options:
A.

terraform import

B.

terraform workspace

C.

terraform plan

D.

terraform init

Questions 15

What information does the public Terraform Module Registry automatically expose about published modules?

Options:
A.

Required input variables

B.

Optional inputs variables and default values

C.

Outputs

D.

All of the above

E.

None of the above

Questions 16

Which of these statements about Terraform Cloud workspaces is false?

Options:
A.

They have role-based access controls

B.

You must use the CLI to switch between workspaces

C.

Plans and applies can be triggered via version control system integrations

D.

They can securely store cloud credentials

Questions 17

Part of a configuration is shown in the exhibit below.

You want to pass the id of the vsphere_datacenter data source to the datacenter_id argument of the vsphere_folder resource.

Terraform-Associate-004 Question 17 Which reference would you use?

Options:
A.

data.vsphere_datacenter.dc.id

B.

data.vsphere_datacenter.dc

C.

data.dc.id

D.

vsphere_datacenter.dc.id

Questions 18

Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.

Options:
A.

Automated infrastructure deployment visualization.

B.

A web-based user interface (UI).

C.

Automatic backups of configuration and state.

D.

Remote state storage.

Questions 19

In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.

Options:
A.

True

B.

False

Questions 20

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Options:
A.

terraform destroy, then terraform apply

B.

terraform init

C.

terraform push

D.

terraform apply