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 3 out of 11 pages
Viewing questions 21-30 out of questions
Questions # 21:

What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?

Options:

A.

The ability to share modules publicly with any user of Terraform


B.

The ability to restrict modules to members of Terraform Cloud or Enterprise organizations


C.

The ability to tag modules by version or release


D.

The ability to share modules with public Terraform users and members of Terraform Cloud Organizations


Expert Solution
Questions # 22:

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Options:

A.

Terraform plan –refresh-only


B.

Terraform show –json


C.

Terraform apply –lock-false


D.

Terraform plan target-state


Expert Solution
Questions # 23:

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.


Expert Solution
Questions # 24:

You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.

Options:

A.

Run the terraform Import-gcp command


B.

Write Terraform configuration for the existing VMs


C.

Use the terraform import command for the existing VMs


D.

Provision new VMs using Terraform with the same VM names


Expert Solution
Questions # 25:

By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?

Options:

A.

A subdirectory of your home directory named .terraform.d


B.

A file in your configuration ' s directory named terraform.tfstate


C.

A file in your configuration ' s directory named .terraform.lock.hcl


D.

A subdirectory of your configuration named .terraform


Expert Solution
Questions # 26:

A module can always refer to all variables declared in its parent module.

Options:

A.

True


B.

False


Expert Solution
Questions # 27:

Which task does terraform init not perform?

Options:

A.

Validates all required variables are present


B.

Sources any modules and copies the configuration locally


C.

Connects to the backend


D.

Sources all providers used in the configuration and downloads them


Expert Solution
Questions # 28:

All standard backend types support state locking, and remote operations like plan, apply, and destroy.

Options:

A.

True


B.

False


Expert Solution
Questions # 29:

One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.

Options:

A.

True


B.

False


Expert Solution
Questions # 30:

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?

Options:

A.

Terraform will terminate and recreate the VM.


B.

Terraform will create another duplicate VM.


C.

Terraform will apply the VM to the state file.


D.

Nothing


Expert Solution
Viewing page 3 out of 11 pages
Viewing questions 21-30 out of questions