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: 10

Questions 91

Your Terraform configuration declares a variable. You want to enforce that its value meets your specific requirements, and you want to block the Terraform operation if it does not. What should you add to your configuration?

Options:
A.

Add a top-level check block.

B.

Add a validation block to the variable block.

C.

Add a top-level validation block.

D.

Add a check block to the variable block.

HashiCorp Terraform-Associate-004 Premium Access
Questions 92

Where in your Terraform configuration do you specify remote state storage settings?

Options:
A.

The resource block

B.

The provider block

C.

The data block

D.

The terraform block

Questions 93

Which of the following can you do with terraform plan? (Pick 2 correct responses)

Options:
A.

Schedule Terraform to run at a planned time in the future.

B.

View the execution plan and check if the changes match your expectations.

C.

Save a generated execution plan to apply later.

D.

Execute a plan in a different workspace.

Questions 94

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

Options:
A.

Run terraform refresh

B.

It will happen automatically

C.

Manually update the state fire

D.

Run terraform import

Questions 95

If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.

Options:
A.

True

B.

False

Questions 96

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

Options:
A.

With a tab

B.

With two spaces

C.

With four spaces

D.

With three spaces

Questions 97

What information does the public Terraform Module Registry automatically expose about published modules?

Options:
A.

Required input variables

B.

Optional inputs variables and default values

C.

Outputs

D.

All of the above

E.

None of the above

Questions 98

Which argument can you set on a module block to prevent Terraform from updating the module’s configuration during an init or get operation?

Options:
A.

version

B.

lifecycle

C.

count

D.

source

Questions 99

A data source is shown in the exhibit below.

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

Terraform-Associate-004 Question 99

}

}

Options:
A.

data.aws_ami.web.id

B.

aws_ami.web.id

C.

web.id

D.

data.web.id

Questions 100

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.