How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability. How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?A . Run the terraform fmt command during the code linting phase of your...
What is terraform refresh intended to detect?
What is terraform refresh intended to detect?A . Terraform configuration code changesB . Empty state filesC . State file driftD . Corrupt state filesView AnswerAnswer: C
Which flag would you add to terraform plan to save the execution plan to a file?
CORRECT TEXT FILL BLANK Which flag would you add to terraform plan to save the execution plan to a file? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.View AnswerAnswer: -out=FILENAME
Which backend does the Terraform CLI use by default?
Which backend does the Terraform CLI use by default?A . Terraform CloudB . ConsulC . RemoteD . LocalView AnswerAnswer: D
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 lockB . You have a high priority changeC . Automatic unlocking failedD . Your apply failed due to a state lockView AnswerAnswer: C Explanation: Manually unlock the state for the defined configuration....
What does the default "local" Terraform backend store?
What does the default "local" Terraform backend store?A . tfplan filesB . Terraform binaryC . Provider pluginsD . 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
Why would you use the terraform taint command?
Why would you use the terraform taint command?A . When you want to force Terraform to destroy a resource on the next applyB . When you want to force Terraform to destroy and recreate a resource on the next applyC . When you want Terraform to ignore a resource on...
Which of the following would achieve this?
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out. Which of the following would achieve this?A . Set the environment variable TF_LOG=TRACEB . Set verbose logging for each provider in your...
Terraform and Terraform providers must use the same major version number in a single configuration.
Terraform and Terraform providers must use the same major version number in a single configuration.A . TrueB . FalseView AnswerAnswer: B
In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.
In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.A . TrueB . FalseView AnswerAnswer: B