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 5 out of 11 pages
Viewing questions 41-50 out of questions
Questions # 41:

What is a key benefit of the Terraform state file?

Options:

A.

A state file can schedule recurring infrastructure tasks


B.

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


C.

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


D.

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


Expert Solution
Questions # 42:

You are creating a reusable Terraform configuration and want to include an optional billing_dept tag so your Finance team can track team-specific spending on resources. Which of the following billing_dept variable declarations will achieve this?

Options:

A.

variable " billing_dept " { type = default}


B.

variable " billing_dept " { default =}


C.

variable " billing_dept " { type = optional(string)}


D.

variable " billing_dept " { optional = true}


Expert Solution
Questions # 43:

Terraformrequiresthe Go runtime as a prerequisite for installation.

Options:

A.

True


B.

False


Expert Solution
Questions # 44:

Your Terraform configuration manages a resource that requires maximum uptime. You need to update the resource, and when you run terraform plan, Terraform indicates that the update requires the resource to be destroyed and recreated.

Which lifecycle rule can you add to the resource to reduce downtime while still applying the update?

Options:

A.

prevent_destroy = true


B.

ignore_changes = all


C.

create_before_destroy = true


D.

destroy = false


Expert Solution
Questions # 45:

How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?

Options:

A.

It can execute Terraform runs on dedicated infrastructure in Terraform Cloud


B.

It doesn ' t show the output of a terraform apply locally


C.

It is only arable lo paying customers


D.

All of the above


Expert Solution
Questions # 46:

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?

Options:

A.

terraform refresh -upgrade


B.

terraform apply -upgrade


C.

terraform init -upgrade


D.

terraform providers -upgrade


Expert Solution
Questions # 47:

What is the Terraform style convention for indenting a nesting level compared to the one above it?

Options:

A.

With two spaces.


B.

With four spaces.


C.

With three spaces.


D.

With a tab.


Expert Solution
Questions # 48:

terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?

Error:

yaml

CopyEdit

Error loading state: AccessDenied: Access Denied

status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com

Options:

A.

Run terraform login to reauthenticate with the provider.


B.

Set TF_LOG=DEBUG.


C.

Review /var/log/terraform.log for error messages.


D.

Review syslog for Terraform error messages.


Expert Solution
Questions # 49:

Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?

Options:

A.

servers = num_servers


B.

servers = var(num_servers)


C.

servers = var.num_servers


D.

servers = ${var.num_servers}


Expert Solution
Questions # 50:

Which parameters does the import block require? (Pick the 2 correct responses below.)

Options:

A.

The resource ID


B.

Provider


C.

The target resource address


D.

Backend


Expert Solution
Viewing page 5 out of 11 pages
Viewing questions 41-50 out of questions