Leads4pass > HashiCorp > Terraform Associate > TERRAFORM-ASSOCIATE-003 > TERRAFORM-ASSOCIATE-003 Online Practice Questions and Answers

TERRAFORM-ASSOCIATE-003 Online Practice Questions and Answers

Questions 4

Terraform configuration (including any module references) can contain only one Terraform provider type.

A. True

B. False

Buy Now
Questions 5

You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability. How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

A. Run the terraform fmt command during the code linting phase of your CI/CD process Most Voted

B. Designate one person in each team to review and format everyone's code

C. Manually apply two spaces indentation and align equal sign "=" characters in every Terraform file (*.tf)

D. Write a shell script to transform Terraform files using tools such as AWK, Python, and sed

Buy Now
Questions 6

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?

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

Buy Now
Questions 7

A Terraform provider is NOT responsible for:

A. Exposing resources and data sources based on an APUI

B. Managing actions to take based on resources differences

C. Understanding API interactions with some service

D. Provisioning infrastructure in multiple

Buy Now
Questions 8

How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?

A. Data.vsphere_datacenter.DC.id

B. Vsphere_datacenter.dc.id

C. Data,dc,id

D. Data.vsphere_datacenter,dc

Buy Now
Questions 9

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.

A. True

B. False

Buy Now
Questions 10

You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully. Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?

A. Terraform will prompt you to pick which resource you want to destroy

B. Terraform will destroy the application server because it is listed first in the code

C. Terraform will prompt you to confirm that you want to destroy all the infrastructure

D. Terraform will destroy the main, tf file

E. Terraform will immediately destroy all the infrastructure

Buy Now
Questions 11

Which of the following statements about Terraform modules is not true?

A. Modules can call other modules

B. A module is a container for one or more resources

C. Modules must be publicly accessible

D. You can call the same module multiple times

Buy Now
Questions 12

Which backend does the Terraform CU use by default?

A. Depends on the cloud provider configured

B. HTTP

C. Remote

D. Terraform Cloud

E. Local

Buy Now
Questions 13

Select the command that doesn't cause Terraform to refresh its state.

A. Terraform destroy

B. Terraform apply

C. Terraform plan

D. Terraform state list

Buy Now
Exam Name: HashiCorp Certified: Terraform Associate (003)
Last Update: Nov 29, 2024
Questions: 138
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99