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 4 out of 11 pages
Viewing questions 31-40 out of questions
Questions # 31:

Which are benefits of migrating from a local state backend to a remote backend? (Pick the 2 correct responses below.)

Options:

A.

Guarantees that configuration drift cannot occur for the managed infrastructure.


B.

Eliminates the need to manage credentials when deploying infrastructure to multiple cloud providers.


C.

Faster plan and apply execution because the state is cached locally on the cloud provider.


D.

State locking that allows multiple team members to safely work on the same infrastructure.


E.

The ability to enable server-side encryption at rest.


Expert Solution
Questions # 32:

Which command doesnotcause Terraform to refresh its state?

Options:

A.

terraform state list


B.

terraform plan


C.

terraform apply


D.

terraform destroy


Expert Solution
Questions # 33:

You are updating a child module with the resource block shown in the exhibit below. The public_ip attribute of the resource needs to be accessible to the parent module.

Exhibit:

resource " aws_instance " " example " {

ami = " ami-0a123456789abcdef "

instance_type = " t3.micro "

}

How do you meet this requirement?

Options:

A.

Create a local value in the child module.


B.

Create an output in the child module.


C.

Add a data source to the parent module.


D.

Add an import block to the parent module.


Expert Solution
Questions # 34:

Terraform configuration can only call modules from the public registry.

Options:

A.

True


B.

False


Expert Solution
Questions # 35:

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

Question # 35

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


Expert Solution
Questions # 36:

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


Expert Solution
Questions # 37:

Which statements are true about terraform apply? (Choose TWO correct answers)

Options:

A.

Depending on the provider specification, Terraform may need to destroy and recreate your infrastructure resources.


B.

It only operates on infrastructure defined in the current working directory or workspace.


C.

You must pass the output of a terraform plan command to it.


D.

By default, it does not refresh your state file to reflect the current infrastructure configuration.


E.

You cannot target specific resources for the operation.


Expert Solution
Questions # 38:

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.


Expert Solution
Questions # 39:

When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 40:

Which parameters does terraform import require? Choose two correct answers.

Options:

A.

Provider


B.

Resource ID


C.

Resource address


D.

Path


Expert Solution
Viewing page 4 out of 11 pages
Viewing questions 31-40 out of questions