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

Questions 11

Where in your Terraform configuration do you specify a state backend?

Options:
A.

The resource block

B.

The data source block

C.

The terraform block

D.

The provider block

HashiCorp Terraform-Associate-004 Premium Access
Questions 12

What is one disadvantage of using dynamic blocks in Terraform?

Options:
A.

Dynamic blocks can construct repeatable nested blocks

B.

Terraform will run more slowly

C.

They cannot be used to loop through a list of values

D.

They make configuration harder to read and understand

Questions 13

How do you specify a module’s version when publishing it to the public terraform Module Registry?

Options:
A.

Configuration it in the module ' s Terraform code

B.

Mention it on the module ' s configuration page on the Terraform Module Registry

C.

The Terraform Module Registry does not support versioning modules

D.

Tag a release in the associated repo

Questions 14

Before you can use a remote backend, you must first execute terra-form init.

Options:
A.

True

B.

False

Questions 15

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

Options:
A.

curl commands manually run from a terminal

B.

A sequence of REST requests you pass to a public cloud API endpoint Most Voted

C.

A script that contains a series of public cloud CLI commands

D.

A series of commands you enter into a public cloud console

Questions 16

You must use different Terraform commands depending on the cloud provider you use.

Options:
A.

True

B.

False

Questions 17

Exhibit:

resource " aws_instance " " example " {

ami = " ami-0a123456789abcdef "

instance_type = " t3.micro "

}

You are updating a child module with the resource block shown in the exhibit. The public_ip attribute of the resource needs to be accessible to the parent module. How do you meet this requirement?

Options:
A.

Create an output in the child module.

B.

Add a data source to the parent module.

C.

Add an import block to the parent module.

D.

Create a local value in the child module.

Questions 18

What functionality do providers offer in Terraform? (Pick the 3 correct responses below.)

Options:
A.

Group a collection of Terraform configuration files that map to a single state file.

B.

Provision resources for on-premises infrastructure services.

C.

Provision resources for public cloud infrastructure services.

D.

Interact with cloud provider APIs.

E.

Enforce security and compliance policies.

Questions 19

Which of the following is not a benefit of adopting infrastructure as code?

Options:
A.

Versioning

B.

A Graphical User Interface

C.

Reusability of code

D.

Automation

Questions 20

What is the provider for this resource?

Options:
A.

Vpc

B.

Test

C.

Main

D.

aws