Spring 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 1 out of 10 pages
Viewing questions 1-10 out of questions
Questions # 1:

Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.

Options:

A.

Automated infrastructure deployment visualization.


B.

A web-based user interface (UI).


C.

Automatic backups of configuration and state.


D.

Remote state storage.


Expert Solution
Questions # 2:

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?

Options:

A.

Data.vsphere_datacenter.DC.id


B.

Vsphere_datacenter.dc.id


C.

Data,dc,id


D.

Data.vsphere_datacenter,dc


Expert Solution
Questions # 3:

terraform validate reports syntax check errors for which of the following?

Options:

A.

Code contains tabs for indentation instead of spaces


B.

There is a missing value for a variable


C.

The state file does not match the current infrastructure


D.

None of the above


Expert Solution
Questions # 4:

You’ve updated your Terraform configuration, and you need to preview the proposed changes to your infrastructure. Which command should you run?

Options:

A.

terraform show


B.

terraform plan


C.

terraform validate


D.

terraform get


Expert Solution
Questions # 5:

Only the user that generated a terraform plan may apply it.

Options:

A.

True


B.

False


Expert Solution
Questions # 6:

Which of the following is not a valid Terraform variable type?

Options:

A.

list


B.

array


C.

nap


D.

string


Expert Solution
Questions # 7:

Exhibit:

module " web_stack " {

source = " ./modules/web_stack "

}

Your configuration defines the module block shown in the exhibit. The web_stack module accepts an input variable named servers. Which of the following changes to the module block sets the servers variable to the value of 3?

Options:

A.

module " web_stack " {

source = " ./modules/web_stack "

var.servers = 3

}


B.

module " web_stack " {

source = " ./modules/web_stack "

inputs = { servers = 3 }

}


C.

module " web_stack " {

source = " ./modules/web_stack "

servers = 3

}


D.

module " web_stack " {

source = " ./modules/web_stack "

inputs.servers = 3

}


Expert Solution
Questions # 8:

You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.

Options:

A.

True


B.

False


Expert Solution
Questions # 9:

By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?

Options:

A.

A subdirectory of your home directory named .terraform.d


B.

A file in your configuration ' s directory named terraform.tfstate


C.

A file in your configuration ' s directory named .terraform.lock.hcl


D.

A subdirectory of your configuration named .terraform


Expert Solution
Questions # 10:

Which of these statements about Terraform Cloud workspaces is false?

Options:

A.

They have role-based access controls


B.

You must use the CLI to switch between workspaces


C.

Plans and applies can be triggered via version control system integrations


D.

They can securely store cloud credentials


Expert Solution
Viewing page 1 out of 10 pages
Viewing questions 1-10 out of questions