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

Questions 41

A provider configuration block is required in every Terraform configuration.

Example:

Terraform-Associate-004 Question 41

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 42

What is a key benefit of the Terraform state file?

Options:
A.

A state file can schedule recurring infrastructure tasks

B.

A state file is a source of truth for resources provisioned with Terraform

C.

A state file is a source of truth for resources provisioned with a public cloud console

D.

A state file is the desired state expressed by the Terraform code files

Questions 43

Which of the following does HCP Terraform perform during a health assessment for a workspace?

Options:
A.

Terraform test execution

B.

Check block validation

C.

Infrastructure cost estimation

D.

Resource drift detection

E.

Sentinel policy checks

Questions 44

When you initialize Terraform, where does it cache modules from the public Terraform Registry?

Options:
A.

In the /tmp directory.

B.

In the .terraform sub-directory.

C.

In memory.

D.

They are not cached.

Questions 45

Where does HashiCorp recommend you store API tokens and other secrets within your team ' s Terraform workspaces?

Pick three correct responses below:

Options:
A.

In a plaintext document on a shared drive.

B.

In HashiCorp Vault.

C.

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

D.

In an environment variable and referenced with TF_VAR_variablename.

E.

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

Questions 46

Select the command that doesn’t cause Terraform to refresh its state.

Options:
A.

Terraform destroy

B.

Terraform apply

C.

Terraform plan

D.

Terraform state list

Questions 47

You much initialize your working directory before running terraform validate.

Options:
A.

True

B.

False

Questions 48

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 49

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?

Options:
A.

terraform refresh -upgrade

B.

terraform apply -upgrade

C.

terraform init -upgrade

D.

terraform providers -upgrade

Questions 50

The_________determines how Terraform creates, updates, or delete resources.

Options:
A.

Terraform configuration

B.

Terraform provisioner

C.

Terraform provider

D.

Terraform core