Weekend 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

If a module declares a variable with a default, that variable must also be defined within the module.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-003 Premium Access
Questions 12

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 13

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 14

When you use a backend that requires authentication, it is best practice to:

Options:
A.

Run all of your Terraform commands on a shared server or container.

B.

Configure the authentication credentials in your Terraform configuration files, and store them in a private version control system.

C.

Use environment variables to configure authentication credentials outside of your Terraform configuration.

D.

None of the above.

Questions 15

What is a Terraform provider not responsible for?

Options:
A.

Provisioning infrastructure in multiple cloud providers.

B.

Managing actions to take based on resource differences.

C.

Managing resources and data sources based on an API.

D.

Understanding API interactions with a hosted service.

Questions 16

Any user can publish modules to the public Terraform Module Registry.

Options:
A.

True

B.

False

Questions 17

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

Options:
A.

curl commands manually run from a terminal

B.

A sequence of REST requests you pass to a public cloud API endpoint Most Voted

C.

A script that contains a series of public cloud CLI commands

D.

A series of commands you enter into a public cloud console

Questions 18

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Options:
A.

terraform fmt -write-false

B.

terraform fmt -list -recursive

C.

terraform fmt -check -recursive

D.

terraform fmt -check

Questions 19

Where can Terraform not load a provider from?

Options:
A.

Plugins directory

B.

Provider plugin chance

C.

Official HashCrop Distribution on releases.hashcrop.com

D.

Source code

Questions 20

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