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

Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions
Questions # 31:

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 # 32:

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

Options:

A.

True


B.

False


Expert Solution
Questions # 33:

You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)

Options:

A.

In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.


B.

In HashiCorp Vault.


C.

In a terraform.tfvars file, securely managed and shared with your team.


D.

In a terraform.tfvars file, checked into your version control system.


E.

In a plaintext document on a shared drive.


Expert Solution
Questions # 34:

terraform destroy is the only way to remove infrastructure.

Options:

A.

True


B.

False


Expert Solution
Questions # 35:

Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Options:

A.

Lets you version, reuse, and share infrastructure configuration


B.

Provisions the same resources at a lower cost


C.

Secures your credentials


D.

Reduces risk of operator error


E.

Prevents manual modifications to your resources


Expert Solution
Questions # 36:

Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)

Options:

A.

Public repository on GitHub.


B.

Public Terraform Registry.


C.

Internally hosted VCS (Version Control System) platform.


D.

Private repository on GitHub.


Expert Solution
Questions # 37:

Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?

Options:

A.

Terraform state show ‘ provider_type_name


B.

Terraform state list


C.

Terraform get provider_type_name


D.

Terraform state list provider_type_name


Expert Solution
Questions # 38:

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Options:

A.

Terraform plan –refresh-only


B.

Terraform show –json


C.

Terraform apply –lock-false


D.

Terraform plan target-state


Expert Solution
Questions # 39:

Which option cannot be used to keep secrets out of Terraform configuration files?

Options:

A.

A Terraform provider


B.

Environment variables


C.

A -var flag


D.

secure string


Expert Solution
Questions # 40:

Which are examples of infrastructure as code? Choose two correct answers.

Options:

A.

Cloned virtual machine images


B.

Versioned configuration files


C.

Change management database records


D.

Doctor files


Expert Solution
Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions