Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 1 out of 11 pages
Viewing questions 1-10 out of questions
Questions # 1:

What does Terraform use the .terraform.lock.hc1 file for?

Options:

A.

There is no such file


B.

Tracking specific provider dependencies


C.

Preventing Terraform runs from occurring


D.

Storing references to workspaces which are locked


Expert Solution
Questions # 2:

You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?

Options:

A.

Terraform data sources


B.

Terraform local values


C.

Terraform modules


D.

Terraform workspaces


E.

None of the above


Expert Solution
Questions # 3:

terraform validate confirms thesyntaxof Terraform files.

Options:

A.

True


B.

False


Expert Solution
Questions # 4:

Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.

Options:

A.

True


B.

False


Expert Solution
Questions # 5:

What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.

Options:

A.

You can restrict specific resource configurations, such as disallowing the use of CIDR=0.0.0.0/0.


B.

You can check out and check in cloud access keys


C.

Sentinel Policies can be written in HashiCorp Configuration Language (HCL)


D.

Policy-as-code can enforce security best practices


E.

You can enforce a list of approved AWS AMIs


Expert Solution
Questions # 6:

What kind of configuration block will create an infrastructure object with settings specified within the block?

Options:

A.

provider


B.

state


C.

data


D.

resource


Expert Solution
Questions # 7:

When should you use the terraform force-unlock command?

Options:

A.

When terraform apply has failed due to a state lock.


B.

When you have a high-priority change.


C.

When automatic unlocking has failed.


D.

When you see a status message stating that Terraform cannot acquire the lock.


Expert Solution
Questions # 8:

The Terraform binary version and provider versions must match each other in a single configuration.

Options:

A.

True


B.

False


Expert Solution
Questions # 9:

What’s the proper syntax for the plan command?

Options:

A.

terraform apply -var-file=tfplan


B.

terraform plan -target=tfplan


C.

terraform plan -generate-config-out=tfplan


D.

terraform plan -out=tfplan


Expert Solution
Questions # 10:

A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?

Options:

A.

test


B.

google


C.

compute_instance


D.

main


Expert Solution
Viewing page 1 out of 11 pages
Viewing questions 1-10 out of questions