Halloween Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: big75certs

Vce Terraform-Associate-004 Questions Latest

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Questions and Answers

Question 5

Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.

Options:

A.

A variable file

B.

Defined in Environment variables

C.

Inside the backend block within the Terraform configuration

D.

Defined in a connection configuration outside of Terraform

Question 6

You have successfully deployed an application that includes a resource with a public IP address. Due to a configuration oversight, no outputs were defined.

Using the Terraform CLI, how can you find the IP address of the deployed resource with minimum disruption to the application?

Options:

A.

In a new folder, use the terraform_remote_state data source to load the state file, and then write an output for every resource found in the state file.

B.

Run terraform output ip_address to view the result.

C.

Run terraform state list to find the resource name, and then run terraform state show to inspect its attributes, including the public IP address.

D.

Run terraform destroy, then terraform apply, and look for the IP address in standard output.

Question 7

Which Terraform command checks that your configuration syntax is correct?

Options:

A.

terraform validate

B.

terraform init

C.

terraform show

D.

terraform fmt

Question 8

What’s the proper syntax for the plan command?

Options:

A.

terraform apply -var-file=tfplan

B.

terraform plan -target=tfplan

C.

terraform plan -generate-config-out=tfplan

D.

terraform plan -out=tfplan