Month End Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers

Questions 1

Exhibit:

Error: Saved plan is stale

The given plan file can no longer be applied because the state was changed by another operation after the plan was created.

You have a saved execution plan containing desired changes for infrastructure managed by Terraform. After running terraform apply my.tfplan, you receive the error shown. How can you apply the desired changes? (Pick the 2 correct responses below.)

Options:
A.

Generate a new execution plan file with terraform plan, and apply the new plan.

B.

Run terraform apply without the saved execution plan.

C.

Force the apply command by adding the flag -lock=false.

D.

Refresh the current state data using the -refresh-only flag.

E.

Update the current plan file using the terraform state push command.

HashiCorp Terraform-Associate-004 Premium Access
Questions 2

Terraform configuration can only import modules from the public registry.

Options:
A.

True

B.

False

Questions 3

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

Options:
A.

True

B.

False

Questions 4

Terraform configuration can only call modules from the public registry.

Options:
A.

True

B.

False

Questions 5

What task does the terraform import command perform?

Options:
A.

Imports resources from one Terraform state file to another.

B.

Imports existing resources into Terraform ' s state file.

C.

Imports a new Terraform module into Terraform ' s state file.

D.

Imports all infrastructure from the configured cloud provider.

E.

Imports provider configuration from one state file to another.

Questions 6

Terraform providers are part of the Terraform core binary.

Options:
A.

True

B.

False

Questions 7

A data source is shown in the exhibit below.

How do you reference the id attribute of this data source?

}

}

Options:
A.

data.aws_ami.web.id

B.

aws_ami.web.id

C.

web.id

D.

data.web.id

Questions 8

Which of the following is not a way to trigger terraform destroy?

Options:
A.

Using the destroy command with auto-approve.

B.

Passing --destroy at the end of a plan request.

C.

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.

Questions 9

Module version is required to reference a module on the Terraform Module Registry.

Options:
A.

True

B.

False

Questions 10

Parent modules can always access a child module’s variable values.

Options:
A.

True

B.

False