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

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?

Options:
A.

You can import infrastructure without corresponding Terraform code

B.

Terraform will generate the corresponding configuration files for you

C.

Before you run terraform Import

D.

After you run terraform import

HashiCorp Terraform-Associate-004 Premium Access
Questions 12

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

Which scenario presents a challenge for your team?

Options:
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.

Questions 13

INcheck block ' s assertion fails, Terraform blocks the current operation from executing.

Options:
A.

True

B.

False

Questions 14

A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?

Options:
A.

resource.kubernetes_namespace.example.name

B.

kubernetes_namespace.example.name

C.

data.kubernetes.namespace.name

D.

kubernetes_namespace.test.name

Questions 15

Which command lets you experiment with terraform expressions?

Options:
A.

Terraform console

B.

Terraform validate

C.

Terraform env

D.

Terraform test

Questions 16

Why is it considered important to treat your Terraform state file as sensitive?

Options:
A.

It can contain information such as resource passwords and keys.

B.

It stores all environment variables from the machine that created it.

C.

It can be manually edited to change the deployed resources.

D.

It contains personal information about the last user to update it.

Questions 17

terraform destroy is the only way to remove infrastructure with Terraform.

Options:
A.

True

B.

False

Questions 18

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?

Options:
A.

Terraform will terminate and recreate the VM.

B.

Terraform will create another duplicate VM.

C.

Terraform will apply the VM to the state file.

D.

Nothing

Questions 19

You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?

Options:
A.

Terraform data sources

B.

Terraform local values

C.

Terraform modules

D.

Terraform workspaces

E.

None of the above

Questions 20

How would you output returned values from a child module in the Terraform CLI output?

Options:
A.

Declare the output in the root configuration

B.

Declare the output in the child module

C.

Declare the output in both the root and child module

D.

None of the above