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 5 out of 11 pages
Viewing questions 41-50 out of questions
Questions # 41:

How can terraform plan aid in the development process?

Options:

A.

Initializes your working directory containing your Terraform configuration files


B.

Validates your expectations against the execution plan without permanently modifying state


C.

Formats your Terraform configuration files


D.

Reconciles Terraform ' s state against deployed resources and permanently modifies state using the current status of deployed resources


Expert Solution
Questions # 42:

Where does the Terraform local backend store its state?

Options:

A.

In the terraform file


B.

In the /tmp directory


C.

In the terraform,tfstate file


D.

In the user’s terraform,state file


Expert Solution
Questions # 43:

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

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

The exhibit below shows part of a Terraform configuration you have been asked to update. The name of the Azure Virtual Network should be set to the name of the resource group followed by a dash and the word vnet.

Exhibit:

data " azurerm_resource_group " " example " {

name = var.resource_group_name

}

resource " azurerm_virtual_network " " example " {

name = ______________________

}

Which expression fulfills this requirement?

Options:

A.

" ${data.azurerm_resource_group.example.name}-vnet "


B.

concat(data.azurerm_resource_group.example.name, " - " , " vnet " )


C.

join( " - " , var.resource_group_name, " vnet " )


D.

" ${azurerm_resource_group.example.name}-vnet "


Expert Solution
Questions # 46:

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?

Options:

A.

terraform refresh -upgrade


B.

terraform apply -upgrade


C.

terraform init -upgrade


D.

terraform providers -upgrade


Expert Solution
Questions # 47:

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?

Options:

A.

terraform state


B.

terraform init


C.

terraform push


D.

terraform refresh


Expert Solution
Questions # 48:

What does state looking accomplish?

Options:

A.

Prevent accidental Prevent accident deletion of the state file


B.

Blocks Terraform commands from modifying, the state file


C.

Copies the state file from memory to disk


D.

Encrypts any credentials stored within the state file


Expert Solution
Questions # 49:

Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)

Options:

A.

You can enforce a list of approved AWS AMIs.


B.

Sentinel Policies can be written in HashiCorp Configuration Language (HCL).


C.

You can check out and check in cloud access keys.


D.

Policy-as-code can enforce security best practices.


Expert Solution
Questions # 50:

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
Viewing page 5 out of 11 pages
Viewing questions 41-50 out of questions