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

Questions 91

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

Terraform-Associate-004 Question 91

Options:
A.

aws_instance.example.ebs_block_device[sda2,sda3).volume_id

B.

aws_lnstance.example.ebs_block_device.[*].volume_id

C.

aws_lnstance.example.ebs_block_device.volume_ids

D.

aws_instance.example-ebs_block_device.*.volume_id

HashiCorp Terraform-Associate-004 Premium Access
Questions 92

Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?

Options:
A.

Dry runs with terraform plan.

B.

Secure variable storage.

C.

Using one workspace ' s state as a data source for another.

D.

Support for multiple cloud providers.

Questions 93

Which is a recommended way to share Terraform state across teams?

Options:
A.

Use a remote state backend.

B.

No additional configuration is recommended.

C.

Store the terraform.tfstate file in version control.

D.

Store the terraform.tfstate file in HashiCorp Vault.

Questions 94

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

Questions 95

terraform validate confirms thesyntaxof Terraform files.

Options:
A.

True

B.

False

Questions 96

It is best practice to store secret data in the same version control repository as your Terraform configuration.

Options:
A.

True

B.

False

Questions 97

What is the provider for the resource shown in the Exhibit?

resource " aws_vpc " " main " {

name = " test "

}

Options:
A.

VPC

B.

test

C.

main

D.

aws

Questions 98

You manage two workspaces in your HCP Terraform organization. The first workspace manages your network configuration. The second workspace manages your compute resources and retrieves values from the networking workspace.

What HCP Terraform feature lets you run an apply operation on the compute workspace every time you update the networking workspace?

Options:
A.

Run triggers

B.

Policy

C.

Run tasks

D.

Projects

Questions 99

What does terraform import do?

Options:
A.

Imports existing resources into the state file

B.

Imports all infrastructure from a given cloud provider

C.

Imports a new Terraform module

D.

Imports clean copies of tainted resources

E.

None of the above

Questions 100

What does this code do?

terraform { required_providers { aws = " > = 3.0 " }}

Options:
A.

Requires any version of the AWS provider > = 3.0 and < 4.0

B.

Requires any version of the AWS provider > = 3.0

C.

Requires any version of the AWS provider > = 3.0 major release. like 4.1

D.

Requires any version of the AWS provider > 3.0