Pre-Winter Sale 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 9 out of 12 pages
Viewing questions 81-90 out of questions
Questions # 81:

Exhibit:

resource " kubernetes_namespace " " example " {

name = " test "

}

A resource block is shown in the exhibit. How would you reference the name attribute of this resource in HCL?

Options:

A.

kubernetes_namespace.example,name


B.

kubernetes_namespace.test.name


C.

data.kubernetes_namespace.name


D.

resource.kubernetes_namespace.example.name


Expert Solution
Questions # 82:

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

Options:

A.

True


B.

False


Expert Solution
Questions # 83:

Define the purpose of state in Terraform.

Options:

A.

State maps real world resources to your configuration and keeps track of metadata


B.

State lets you enforce resource configurations that relate to compliance policies


C.

State stores variables and lets you quickly reuse existing code


D.

State codifies the dependencies of related resources


Expert Solution
Questions # 84:

You can define multiple backend blocks in your Terraform configuration to store your state in multiple locations.

Options:

A.

True


B.

False


Expert Solution
Questions # 85:

Which option does not keep secret variable values out of Terraform configuration files?

Options:

A.

Pass the secret values via a -var flag.


B.

Pass the secret values as environment variables.


C.

Store the secrets in a shared credentials file.


D.

Configure the variable as sensitive.


Expert Solution
Questions # 86:

How is terraform import run?

Options:

A.

As a part of terraform init


B.

As a part of terraform plan


C.

As a part of terraform refresh


D.

By an explicit call


E.

All of the above


Expert Solution
Questions # 87:

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

Question # 87

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 # 88:

Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.

Options:

A.

Plan


B.

Import


C.

Alidate


D.

Init


E.

apply


Expert Solution
Questions # 89:

Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.

Options:

A.

Automated infrastructure deployment visualization.


B.

A web-based user interface (UI).


C.

Automatic backups of configuration and state.


D.

Remote state storage.


Expert Solution
Questions # 90:

What task does the terraform import command perform?

Options:

A.

Imports resources from one Terraform state file to another.


B.

Imports existing resources into Terraform ' s state file.


C.

Imports a new Terraform module into Terraform ' s state file.


D.

Imports all infrastructure from the configured cloud provider.


E.

Imports provider configuration from one state file to another.


Expert Solution
Viewing page 9 out of 12 pages
Viewing questions 81-90 out of questions