Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 8 out of 11 pages
Viewing questions 71-80 out of questions
Questions # 71:

terraform init creates an example main.tf file in the current directory.

Options:

A.

True


B.

False


Expert Solution
Questions # 72:

Which is a benefit of the Terraform state file?

Options:

A.

A state file can schedule recurring infrastructure tasks.


B.

A state file is the desired state expressed by the Terraform code files.


C.

A state file is a source of truth for resources provisioned with Terraform.


D.

A state file is a source of truth for resources provisioned with a public cloud console.


Expert Solution
Questions # 73:

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?

Question # 73

Options:

A.

Option A


B.

Option B


C.

Option C


Expert Solution
Questions # 74:

You must use different Terraform commands depending on the cloud provider you use.

Options:

A.

True


B.

False


Expert Solution
Questions # 75:

Which command must you run before you run a plan or apply for the first time?

Options:

A.

terraform init


B.

terraform workspace


C.

terraform validate


D.

terraform import


Expert Solution
Questions # 76:

You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.

What will happen you run terraform apply in the working directory again?

Options:

A.

Terraform will remove the virtual machine from the state file, but the resource will still exist


B.

Nothing


C.

Terraform will error


D.

Terraform will destroy the virtual machine


Expert Solution
Questions # 77:

Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?

Options:

A.

Self-service infrastructure deployment.


B.

Modify a count parameter to scale resources.


C.

API-driven workflows.


D.

Troubleshoot via a Linux diff command.


E.

Public cloud console configuration workflows.


Expert Solution
Questions # 78:

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

How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.

Options:

A.

End-users have to request infrastructure changes


B.

Ticket based systems generate a full audit trail of the request and fulfillment process


C.

Users can access catalog of approved resources from drop down list in a request form


D.

The more resources your organization needs, the more tickets your infrastructure team has to process


Expert Solution
Questions # 80:

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
Viewing page 8 out of 11 pages
Viewing questions 71-80 out of questions