Pre-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: 8

Questions 71

Which configuration consistency errors does terraform validate report?

Options:
A.

Terraform module isn ' t the latest version

B.

Differences between local and remote state

C.

Declaring a resource identifier more than once

D.

A mix of spaces and tabs in configuration files

HashiCorp Terraform-Associate-004 Premium Access
Questions 72

Infrastructure as Code (laC) can be stored in a version control system along with application code.

Options:
A.

True

B.

False

Questions 73

A provider configuration block is required in every Terraform configuration.

Example:

Terraform-Associate-004 Question 73

Options:
A.

True

B.

False

Questions 74

Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?

Options:
A.

Self-service infrastructure deployment.

B.

Modify a count parameter to scale resources.

C.

API-driven workflows.

D.

Troubleshoot via a Linux diff command.

E.

Public cloud console configuration workflows.

Questions 75

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Options:
A.

Local values

B.

Count arguments

C.

Collection functions

D.

Dynamic blocks

Questions 76

Select the command that doesn’t cause Terraform to refresh its state.

Options:
A.

Terraform destroy

B.

Terraform apply

C.

Terraform plan

D.

Terraform state list

Questions 77

What is the purpose of the terraform.lock.hcl file in Terraform?

Options:
A.

There is no such file.

B.

Storing references to workspaces, which are locked.

C.

Preventing Terraform runs from occurring.

D.

Tracking specific provider dependencies.

Questions 78

Which of the following arguments are required when declaring a Terraform output?

Options:
A.

value

B.

description

C.

default

D.

sensitive

Questions 79

When does Sentinel enforce policy logic during a Terraform Cloud run?

Options:
A.

Before the plan phase

B.

During the plan phase

C.

Before the apply phase

D.

After the apply phase

Questions 80

You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.

How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

Options:
A.

Run the terraform fmt command during the code linting phase of your CI/CD process Most Voted

B.

Designate one person in each team to review and format everyone ' s code

C.

Manually apply two spaces indentation and align equal sign " = " characters in every Terraform file (*.tf)

D.

Write a shell script to transform Terraform files using tools such as AWK, Python, and sed