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: 6

Questions 51

You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?

Options:
A.

terraform get

B.

terraform refresh

C.

terraform import

D.

terraform init

HashiCorp Terraform-Associate-003 Premium Access
Questions 52

You cannot install third party plugins using terraform init.

Options:
A.

True

B.

False

Questions 53

If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.

Options:
A.

True

B.

False

Questions 54

If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.

Options:
A.

True

B.

False

Questions 55

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 56

terraform validate confirms thesyntaxof Terraform files.

Options:
A.

True

B.

False

Questions 57

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?

Options:
A.

Artifactory

B.

Amazon S3

C.

Terraform Cloud

D.

Git

Questions 58

What is the workflow for deploying new infrastructure with Terraform?

Options:
A.

Write Terraform configuration, run terraform init to initialize the working directory orworkspace, and run terraform apply

B.

Write Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure

C.

Write Terraform configuration, run terraform apply to create infrastructure, use terraform validate to confirm Terraform deployed resources correctly

D.

Write Terraform configuration, run terraform plan to initialize the working directory or workspace, and terraform apply to create the infrastructure

Questions 59

The public Terraform Module Registry is free to use.

Options:
A.

True

B.

False

Questions 60

Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)

Options:
A.

Public repository on GitHub.

B.

Public Terraform Registry.

C.

Internally hosted VCS (Version Control System) platform.

D.

Private repository on GitHub.