Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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:

When you initialize Terraform, where does it cache modules from the public Terraform Registry?

Options:

A.

In the /tmp directory.


B.

In the .terraform sub-directory.


C.

In memory.


D.

They are not cached.


Expert Solution
Questions # 32:

You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.

Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.

Options:

A.

Run terraform state rm ‘


B.

Run terraform show :destroy


C.

Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval


D.

Run terraform plan .destory


Expert Solution
Questions # 33:

If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?

Options:

A.

The team is asked to manage a new application stack built on AWS-native services


B.

The organization decides to expand into Azure wishes to deploy new infrastructure


C.

The team is asked to build a reusable code based that can deploy resources into any AWS region


D.

The DevOps team is tasked with automating a manual, web console-based provisioning.


Expert Solution
Questions # 34:

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

What does Terraform not reference when running a terraform apply -refresh-only ?

Options:

A.

State file


B.

Credentials


C.

Cloud provider


D.

Terraform resource definitions in configuration files


Expert Solution
Questions # 36:

If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.

Options:

A.

True


B.

False


Expert Solution
Questions # 37:

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

terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?

Error:

yaml

CopyEdit

Error loading state: AccessDenied: Access Denied

status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com

Options:

A.

Run terraform login to reauthenticate with the provider.


B.

Set TF_LOG=DEBUG.


C.

Review /var/log/terraform.log for error messages.


D.

Review syslog for Terraform error messages.


Expert Solution
Questions # 39:

You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file's contents as a string?

Options:

A.

fileset("id_rsa.pub")


B.

file("id_rsa.pub")


C.

filebase64("id_rsa.pub")


D.

templatefile("id_rsa.pub")


Expert Solution
Questions # 40:

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
Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions