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 6 out of 8 pages
Viewing questions 51-60 out of questions
Questions # 51:

You can access state stored with the local backend by using terraform_remote_state data source.

Options:

A.

True


B.

False


Expert Solution
Questions # 52:

You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.

Options:

A.

Run the terraform Import-gcp command


B.

Write Terraform configuration for the existing VMs


C.

Use the terraform import command for the existing VMs


D.

Provision new VMs using Terraform with the same VM names


Expert Solution
Questions # 53:

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


Expert Solution
Questions # 54:

You use a cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that listens on port 80. After application changes, you updated the Terraform code to change the port to 443.

You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like you intended and step away to grab some coffee.

In the meantime, another team member manually changes the load balancer port to 443 through the cloud provider console before you get back to your desk.

What will happen when you run terraform apply upon returning to your desk?

Options:

A.

Terraform will recreate the load balancer.


B.

Terraform will fail with an error because the state file is no longer accurate.


C.

Terraform will change the load balancer port to 80, and then change it back to 443.


D.

Terraform will not make any changes to the load balancer and will update the state file to reflect the manual change.


Expert Solution
Questions # 55:

In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.

Options:

A.

True


B.

False


Expert Solution
Questions # 56:

Which two steps are required to provision new infrastructure in the Terraform workflow?

(Pick the 2 correct responses below)

Options:

A.

import


B.

plan


C.

validate


D.

init


E.

apply


Expert Solution
Questions # 57:

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Options:

A.

Local values


B.

Count arguments


C.

Collection functions


D.

Dynamic blocks


Expert Solution
Questions # 58:

Before you can use a remote backend, you must first execute terra-form init.

Options:

A.

True


B.

False


Expert Solution
Questions # 59:

Which of the following is not a valid string function in Terraform?

Options:

A.

chomp


B.

join


C.

slice


D.

split


Expert Solution
Questions # 60:

What is terraform plan -refresh-only intended to detect?

Options:

A.

Terraform configuration code changes


B.

Corrupt state files


C.

State file drift


D.

Empty state files


Expert Solution
Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions