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

Questions 101

In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 102

You want to create a string that combines a generated random_id and a variable and reuse that string several times in your configuration. What is the simplest correct way to implement this without repeating the random_id and variable?

Options:
A.

Use a module.

B.

Add an output value.

C.

Add a local value.

D.

Use a data source.

Questions 103

What functionality do providers offer in Terraform? (Pick the 3 correct responses below.)

Options:
A.

Group a collection of Terraform configuration files that map to a single state file.

B.

Provision resources for on-premises infrastructure services.

C.

Provision resources for public cloud infrastructure services.

D.

Interact with cloud provider APIs.

E.

Enforce security and compliance policies.

Questions 104

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?

Options:
A.

terraform state

B.

terraform init

C.

terraform push

D.

terraform refresh

Questions 105

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 3)

Options:
A.

In a plaintext document on a shared drive.

B.

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

C.

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

D.

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

E.

In HashiCorp Vault.

Questions 106

You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?

Options:
A.

Make the change via the public cloud API endpoint.

B.

Submit a pull request and wait for an approved merge of the proposed changes.

C.

Clone the repository containing your infrastructure code and then run the code.

D.

Use the public cloud console to make the change after approval.

E.

Make the change programmatically via the cloud CLI.

Questions 107

Why would you use the -replace flag for terraform apply?

Options:
A.

You want Terraform to ignore a resource on the next apply

B.

You want Terraform to destroy all the infrastructure in your workspace

C.

You want to force Terraform to destroy a resource on the next apply

D.

You want to force Terraform to destroy and recreate a resource on the next apply

Questions 108

Terraform configuration (including any module references) can contain only one Terraform provider type.

Options:
A.

True

B.

False

Questions 109

When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.

Options:
A.

True

B.

False