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 7 out of 11 pages
Viewing questions 61-70 out of questions
Questions # 61:

What feature stops multiple users from operating on the Terraform state at the same time?

Options:

A.

State locking


B.

Version control


C.

Provider constraints


D.

Remote backends


Expert Solution
Questions # 62:

You want to create a string that is a combination of 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 data source.


B.

Use a module.


C.

Add a local value.


D.

Add an output value.


Expert Solution
Questions # 63:

Which of the following should you add in the required_providers block to define a provider version constraint?

Options:

A.

version


B.

version = " 3.1 "


C.

version: 3.1


D.

version - 3.1


Expert Solution
Questions # 64:

Which is a benefit of the Terraform state file?

Options:

A.

A state file can schedule recurring infrastructure tasks.


B.

A state file is the desired state expressed by the Terraform code files.


C.

A state file is a source of truth for resources provisioned with Terraform.


D.

A state file is a source of truth for resources provisioned with a public cloud console.


Expert Solution
Questions # 65:

Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.

Options:

A.

True


B.

False


Expert Solution
Questions # 66:

Which of these commands makes your code more human readable?

Options:

A.

Terraform validate


B.

Terraform output


C.

Terraform show


D.

Terraform file


Expert Solution
Questions # 67:

A data source is shown in the exhibit below.

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

Question # 67

}

}

Options:

A.

data.aws_ami.web.id


B.

aws_ami.web.id


C.

web.id


D.

data.web.id


Expert Solution
Questions # 68:

You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.

Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.

Options:

A.

Run terraform state rm ‘


B.

Run terraform show :destroy


C.

Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval


D.

Run terraform plan .destory


Expert Solution
Questions # 69:

Where does HashiCorp recommend you store API tokens and other secrets within your team ' s Terraform workspaces?

Pick three correct responses below:

Options:

A.

In a plaintext document on a shared drive.


B.

In HashiCorp Vault.


C.

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


D.

In an environment variable and referenced with TF_VAR_variablename.


E.

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


Expert Solution
Questions # 70:

terraform apply will fail if you have not run terraform plan first to update the plan output.

Options:

A.

True


B.

False


Expert Solution
Viewing page 7 out of 11 pages
Viewing questions 61-70 out of questions