Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 1 out of 8 pages
Viewing questions 1-10 out of questions
Questions # 1:

What feature stops multiple users from operating on the Terraform state at the same time?

Options:

A.

State locking


B.

Version control


C.

Provider constraints


D.

Remote backends


Expert Solution
Questions # 2:

Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.

Options:

A.

A variable file


B.

Defined in Environment variables


C.

Inside the backend block within the Terraform configuration


D.

Defined in a connection configuration outside of Terraform


Expert Solution
Questions # 3:

Why does this backend configuration not follow best practices?

Question # 3

Options:

A.

An alias meta-argument should be included in backend blocks whenever possible


B.

You should use the local enhanced storage backend whenever possible


C.

You should not store credentials in Terraform configuration


D.

The backend configuration should contain multiple credentials so that more than one user can execute terraform plan and terraform apply


Expert Solution
Questions # 4:

terraform apply will fail if you have not run terraform plan first to update the plan output.

Options:

A.

True


B.

False


Expert Solution
Questions # 5:

How does Terraform determine dependencies between resources?

Options:

A.

Terraform requires resource dependencies to be defined as modules and sourced in order


B.

Terraform automatically builds a resource graph based on resources provisioners, special meta-parameters, and the stale file (if present}


C.

Terraform requires resources in a configuration to be listed m the order they will be created to determine dependencies


D.

Terraform requires all dependencies between resources to be specified using the depends_on parameter


Expert Solution
Questions # 6:

Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)

Options:

A.

You can enforce a list of approved AWS AMIs.


B.

Sentinel Policies can be written in HashiCorp Configuration Language (HCL).


C.

You can check out and check in cloud access keys.


D.

Policy-as-code can enforce security best practices.


Expert Solution
Questions # 7:

When does Sentinel enforce policy logic during a Terraform Cloud run?

Options:

A.

Before the plan phase


B.

During the plan phase


C.

Before the apply phase


D.

After the apply phase


Expert Solution
Questions # 8:

You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?

Options:

A.

The Terraform state file contains all 16 VMs in the team account. Execute terraform destroy and select the newly-created VM.


B.

Delete the Terraform state file and execute terraform apply.


C.

The Terraform state file only contains the one new VM. Execute terraform destroy.


D.

Delete the VM using the cloud provider console and terraform apply to apply the changes to the Terraform state file.


Expert Solution
Questions # 9:

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


Expert Solution
Questions # 10:

Variables declared within a module are accessible outside of the module.

Options:

A.

True


B.

False


Expert Solution
Viewing page 1 out of 8 pages
Viewing questions 1-10 out of questions