Which provisioner invokes a process on the resource created by Terraform?

Which provisioner invokes a process on the resource created by Terraform?A . remote-exec B. null-exec C. local-exec D. fileView AnswerAnswer: A Explanation: "The local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource." https://www.terraform.io/language/resources/provisioners/local-exec "The remote-exec...

October 11, 2022 No Comments READ MORE +

What is the best method to quickly find the IP address of the resource you deployed?

You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?A . Run terraform output ip_address to view the result...

October 11, 2022 No Comments READ MORE +

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?A . Only Terraform Cloud organization owners can set workspace variables on VCS connected workspaces B. Commit a change to the VCS working directory and branch that the Terraform Cloud...

October 11, 2022 No Comments READ MORE +

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

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.A . True B. FalseView AnswerAnswer: B Explanation: TF_LOG_PATH IS NOT REQUIRED, in the docs, they do not mention HAVE TO SET TF_LOG_PATH, it is optional, therefore without TF_LOG_PATH will cause detailed logs to appear on...

October 10, 2022 No Comments READ MORE +

How can you do this safely?

You’re building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?A . Pass variables to Terraform with a Cvar flag B. Copy the sensitive variables into your Terraform code C. Store the sensitive variables in a...

October 10, 2022 No Comments READ MORE +

What does the default "local" Terraform backend store?

What does the default "local" Terraform backend store?A . tfplan files B. Terraform binary C. Provider plugins D. State fileView AnswerAnswer: D Explanation: The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally. Reference: https://www.terraform.io/docs/language/settings/backends/local.html

October 9, 2022 No Comments READ MORE +

When should you use the force-unlock command?

When should you use the force-unlock command?A . You see a status message that you cannot acquire the lock B. You have a high priority change C. Automatic unlocking failed D. Your apply failed due to a state lockView AnswerAnswer: C Explanation: Be very careful with this command. If you...

October 9, 2022 No Comments READ MORE +

Which of the following should you put into the Terraform 0.12 configuration’s provider block?

You need to constrain the GitHub provider to version 2.1 or greater. Which of the following should you put into the Terraform 0.12 configuration’s provider block?A . version >= 2.1 B. version ~> 2.1 C. version = “<= 2.1” D. version = “>= 2.1”View AnswerAnswer: D Explanation: version = ">=...

October 9, 2022 No Comments READ MORE +

Terraform requires the Go runtime as a prerequisite for installation.

Terraform requires the Go runtime as a prerequisite for installation.A . True B. FalseView AnswerAnswer: B Explanation: https://www.terraform.io/plugin/sdkv2/guides/v1-upgrade-guide and https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide

October 9, 2022 No Comments READ MORE +

All standard backend types support state storage, locking, and remote operations like plan.

All standard backend types support state storage, locking, and remote operations like plan. apply and destroy.A . True B. FalseView AnswerAnswer: B Explanation: https://www.terraform.io/language/settings/backends/configuration "Some of these backends act like plain remote disks for state files, while others support locking the state while operations are being performed. This helps prevent...

October 9, 2022 No Comments READ MORE +