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 7 out of 8 pages
Viewing questions 61-70 out of questions
Questions # 61:

When should you use the force-unlock command?

Options:

A.

You have a high priority change


B.

Automatic unlocking failed


C.

apply failed due to a state lock


D.

You see a status message that you cannot acquire the lock


Expert Solution
Questions # 62:

Terraform variable names are saved in the state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 63:

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

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Options:

A.

terraform fmt -write-false


B.

terraform fmt -list -recursive


C.

terraform fmt -check -recursive


D.

terraform fmt -check


Expert Solution
Questions # 65:

You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?

Options:

A.

Copy the sensitive variables into your Terraform code


B.

Store the sensitive variables in a secure_varS.tf file


C.

Store the sensitive variables as plain text in a source code repository


D.

Pass variables to Terraform with a -var flag


Expert Solution
Questions # 66:

Which provider authentication method prevents credentials from being stored in the state file?

Options:

A.

Using environment variables


B.

Specifying the login credentials in the provider block


C.

Setting credentials as Terraform variables


D.

None of the above


Expert Solution
Questions # 67:

You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?

Options:

A.

Terraform can manage users for any service that is hosted on a public cloud provider.


B.

Develop and publish a custom provider to interact with the service using its proprietary APIs.


Expert Solution
Questions # 68:

You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?

Options:

A.

Set verbose for each provider in your Terraform configuration


B.

Set the environment variable TF_LOG_TRACE


C.

Set the environment variable TF_LOG_PATH


D.

Set the environment variable TF_log_TRACE


Expert Solution
Questions # 69:

What does terraform destroy do?

Options:

A.

Destroys all infrastructure in the Terraform state file.


B.

Destroys all Terraform code files in the current directory, leaving the state file intact.


C.

Destroys all infrastructure in the configured Terraform provider.


D.

Destroys the Terraform state file, leaving the infrastructure intact.


Expert Solution
Questions # 70:

As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?

Options:

A.

Make the change via the public cloud API endpoint


B.

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


C.

Use the public cloud console to make the change after a database record has been approved


D.

Make the change programmatically via the public cloud CLI


E.

Submit a pull request and wait for an approved merge of the proposed changes


Expert Solution
Viewing page 7 out of 8 pages
Viewing questions 61-70 out of questions