Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)

Page: 11 / 11
Total 366 questions

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

A.

Terraform destroy

B.

Terraform apply

C.

Terraform plan

D.

Terraform state list

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

A.

version

B.

lifecycle

C.

count

D.

source

Your team uses HCP Terraform to manage infrastructure. You need to make a change to an infrastructure stack running in a public cloud. Which pattern follows Infrastructure as Code best practices for making the change?

A.

Clone the repository containing your infrastructure code, and then run the code.

B.

Use the public cloud console to make the change.

C.

Make the change through the public cloud API endpoint.

D.

Run the public cloud CLI tool to make the change.

E.

Submit a pull request and wait for an approved merge of the change.

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

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.

Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.

A.

True

B.

False

Terraformrequiresthe Go runtime as a prerequisite for installation.

A.

True

B.

False

Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources.

Which scenario presents a challenge for your team?

A.

Building a reusable codebase that can deploy resources into any AWS region.

B.

Managing a new application stack built on AWS-native services.

C.

Deploying new infrastructure into Microsoft Azure.

D.

Automating a manual, web console-based provisioning process.

Which of the following does HCP Terraform perform during a health assessment for a workspace?

A.

Terraform test execution

B.

Check block validation

C.

Infrastructure cost estimation

D.

Resource drift detection

E.

Sentinel policy checks

What type of block is used to construct a collection of nested configuration blocks?

A.

Dynamic

B.

For_each

C.

Nesting

D.

repeated.