Which provisioner invokes a process on the resource created by Terraform?A . remote-exec B. null-exec C. local-exec D. file View Answer Answer: 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 provisioner invokes...
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 B. In a new...
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 workspace is connected to...
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. False View Answer Answer: 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 stderr. https://www.computerhope.com/jargon/s/stderr.htm#:~:text=Stderr%2C%20also%20known%20as%20standard,defaults%20to%20the%20user’s%20screen....
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 secure_vars.tf file D. Store...
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 file View Answer Answer: 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...
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 lock View Answer Answer: C Explanation: Be very careful with this command. If you unlock the...
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 Answer Answer: D Explanation: version = ">= 1.2.0, <...
Terraform requires the Go runtime as a prerequisite for installation.
Terraform requires the Go runtime as a prerequisite for installation.A . True B. False View Answer Answer: B Explanation: https://www.terraform.io/plugin/sdkv2/guides/v1-upgrade-guide and https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide...
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. False View Answer Answer: 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 conflicts and...