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

Questions 31

You can develop a custom provider to manage its resources using Terraform.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 32

When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)

Options:
A.

When you change a Terraform-managed resource via the Azure Cloud Console, Terraform updates the state file to reflect the change during the next plan or apply

B.

Changing resources via the Azure Cloud Console records the change in the current state file

C.

When you change a resource via the Azure Cloud Console, Terraform records the changes in a new state file

D.

Changing resources via the Azure Cloud Console does not update current state file

Questions 33

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

Options:
A.

Edit your state file to scrub out the sensitive data

B.

Always store your secrets in a secrets.tfvars file

C.

Delete the state file every time you run Terraform

D.

Store the state in an encrypted backend

Questions 34

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

Options:
A.

Prevents manual modifications to your resources

B.

Lets you version, reuse, and share infrastructure configuration

C.

Secures your credentials

D.

Provisions the same resources at a lower cost

E.

Reduces risk of operator error

Questions 35

When you use a backend that requires authentication, it is best practice to:

Options:
A.

Run all Terraform commands on a shared server or container.

B.

Configure the authentication credentials in your Terraform configuration files, and store them in version control.

C.

Use environment variables to configure authentication credentials outside of your Terraform configuration.

D.

None of the above.

Questions 36

Where does HashiCorp recommend you store API tokens and other secrets within your team’s Terraform workspaces?

Pick the three correct responses below.

Options:
A.

In a plaintext document on a shared drive.

B.

In HashiCorp Vault.

C.

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

D.

In an environment variable and referenced with TF_VAR_variablename.

E.

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

Questions 37

Which of the following is not a valid Terraform variable type?

Options:
A.

list

B.

array

C.

nap

D.

string

Questions 38

You need to determine from which paths Terraform is loading the providers referenced in your *.tf files.

How can you enable additional logging to see this information?

Options:
A.

Set the environment variable TF_VAR_log=TRACE .

B.

Set the environment variable TF_LOG_PATH .

C.

Set the environment variable TF_LOG=TRACE .

D.

Set verbose logging for each provider in your Terraform configuration.

Questions 39

Which parameters does terraform import require? Choose two correct answers.

Options:
A.

Provider

B.

Resource ID

C.

Resource address

D.

Path

Questions 40

Only the user that generated a terraform plan may apply it.

Options:
A.

True

B.

False