Spring 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: 6

Questions 51

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 52

When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

Options:
A.

Alias

B.

Id

C.

Depends_on

D.

name

Questions 53

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 54

As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?

Options:
A.

Make the change via the public cloud API endpoint

B.

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

C.

Use the public cloud console to make the change after a database record has been approved

D.

Make the change programmatically via the public cloud CLI

E.

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

Questions 55

When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.

Options:
A.

True

B.

False

Questions 56

Which of these ate features of Terraform Cloud? Choose two correct answers.

Options:
A.

Automated infrastructure deployment visualization

B.

Automatic backups

C.

A web-based user interface (Ul)

D.

Remote state storage

Questions 57

When should you use the force-unlock command?

Options:
A.

You have a high priority change

B.

Automatic unlocking failed

C.

apply failed due to a state lock

D.

You see a status message that you cannot acquire the lock

Questions 58

You must use different Terraform commands depending on the cloud provider you use.

Options:
A.

True

B.

False

Questions 59

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

Questions 60

A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.

Which of the following methods could you use to discover which instance Terraform manages?

Options:
A.

Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages

B.

Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs

C.

Run terraform taint/code on all the VMs to recreate them

D.

Use terraform refresh/code to find out which IDs are already part of state