Big Halloween Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free HashiCorp Terraform-Associate-003 Practice Exam with Questions & Answers | Set: 2

Questions 11

When do you need to explicitly execute Terraform in refresh-only mode?

Options:
A.

Before every terraform plan.

B.

Before every terraform apply.

C.

Before every terraform import.

D.

None of the above.

HashiCorp Terraform-Associate-003 Premium Access
Questions 12

Which of the following is not a valid Terraform variable type?

Options:
A.

list

B.

array

C.

nap

D.

string

Questions 13

Terraform providers are always installed from the Internet.

Options:
A.

True

B.

False

Questions 14

You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)

Options:
A.

In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.

B.

In HashiCorp Vault.

C.

In a terraform.tfvars file, securely managed and shared with your team.

D.

In a terraform.tfvars file, checked into your version control system.

E.

In a plaintext document on a shared drive.

Questions 15

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

Options:
A.

Edit your state file to scrub out the sensitive data

B.

Always store your secrets in a secrets.tfvars file

C.

Delete the state file every time you run Terraform

D.

Store the state in an encrypted backend

Questions 16

You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:

When you run terraform validate, you get the following error:

What must you do to successfully retrieve this value from your networking module?

Options:
A.

Change the reference value to my-network,outputs,vmet_id

B.

Define the attribute vmet_id as a variable in the networking modeule

C.

Define the attribute vnet_id as an output in the networking module

D.

Change the reference value module.my,network,outputs,vnet_id

Questions 17

Infrastructure as Code (laC) can be stored in a version control system along with application code.

Options:
A.

True

B.

False

Questions 18

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Options:
A.

data

B.

local

C.

resource

D.

provider

Questions 19

One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.

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