Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?
Answer(s): D
A Terraform provisioner must be nested inside a resource configuration block.
Answer(s): A
Most provisioners require access to the remote resource via SSH or WinRM, and expect a nested connection block with details about how to connect.
https://www.terraform.io/docs/language/resources/provisioners/connection.html
Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.
Answer(s): B
What does the default "local" Terraform backend store?
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
https://www.terraform.io/docs/language/settings/backends/local.html
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?
- Indent two spaces for each nesting level.- When multiple arguments with single-line values appear on consecutive lines at the same nesting level, align their equals signs.
https://www.terraform.io/docs/language/syntax/style.html
Share your comments for HashiCorp Terraform Associate exam with other users:
question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
good one nice
nice questions