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

Questions 41

Which type of information does the Terraform Registry provide about the modules it hosts?

Options:
A.

Required input variables

B.

Outputs

C.

Optional input variables and default values

D.

All of these are provided

HashiCorp Terraform-Associate-004 Premium Access
Questions 42

terraform validate confirms thesyntaxof Terraform files.

Options:
A.

True

B.

False

Questions 43

If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.

Options:
A.

True

B.

False

Questions 44

How can terraform plan aid in the development process?

Options:
A.

Initializes your working directory containing your Terraform configuration files

B.

Validates your expectations against the execution plan without permanently modifying state

C.

Formats your Terraform configuration files

D.

Reconciles Terraform ' s state against deployed resources and permanently modifies state using the current status of deployed resources

Questions 45

Which two steps are required to provision new infrastructure in the Terraform workflow? (Pick the 2 correct responses below.)

Options:
A.

Import

B.

Apply

C.

Validate

D.

Plan

E.

Init

Questions 46

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Options:
A.

data

B.

local

C.

resource

D.

provider

Questions 47

You corrected a typo in a resource name, changing it from aws_s3_bucket.photoes to aws_s3_bucket.photos. You want to update the Terraform state so that the existing resource is recognized under the new name, without destroying and recreating it. Which configuration should you use?

Options:
A.

Remove the old resource from your configuration and re-import it.

B.

Run terraform apply -refresh-only.

C.

Do nothing — Terraform will automatically update the state.

D.

Add a moved block to your configuration.

Questions 48

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

Options:
A.

True

B.

False

Questions 49

You have a list of numbers that represents the number of free CPU cores on each virtual cluster:

numcpus = [ 18, 3, 7, 11, 2 ]

What Terraform function could you use to select the largest number from the list?

Options:
A.

top(numcpus)

B.

max(numcpus)

C.

ceil (numcpus)

D.

hight[numcpus]

Questions 50

terraform destroy is the only way to remove infrastructure.

Options:
A.

True

B.

False