A provider configuration block is required in every Terraform configuration.
A provider configuration block is required in every Terraform configuration. Example: A . TrueB . FalseView AnswerAnswer: A Explanation: Reference: https://github.com/hashicorp/terraform/issues/17928
Terraform providers are always installed from the Internet.
Terraform providers are always installed from the Internet.A . TrueB . FalseView AnswerAnswer: B Explanation: Terraform configurations must declare which providers they require, so that Terraform can install and use them. Reference: https://www.terraform.io/docs/language/providers/configuration.html
Where does the Terraform local backend store its state?
Where does the Terraform local backend store its state?A . In the /tmp directoryB . In the terraform.tfvars fileC . In the terraform.tfstate fileD . In the user's .terraformrc fileView AnswerAnswer: C Explanation: The local backend stores state on the local filesystem, locks that state using system APIs, and performs...
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.A . terraform providersB . terraform state showC . terraform providerD . terraform planView AnswerAnswer: A Explanation: Use the terraform providers command to view the specified version constraints for...
Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?
Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?A . terraform fmtB . terraform destroyC . terraform taintD . terraform refreshView AnswerAnswer: C Explanation: The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated...
If a module uses a local variable, you can expose that value with a terraform output.
If a module uses a local variable, you can expose that value with a terraform output.A . TrueB . FalseView AnswerAnswer: A Explanation: Output values are like function return values. Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.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...
How do you specify version 1.0.0?
When using a module block to reference a module stored on the public Terraform Module Registry such as: How do you specify version 1.0.0?A . Modules stored on the public Terraform Module Registry do not support versioningB . Append ?ref=v1.0.0 argument to the source pathC . Add version = "1.0.0"...
Which one of the following will run echo 0 and echo 1 on a newly created host?
Which one of the following will run echo 0 and echo 1 on a newly created host?A . provisioner "local-exec" { command = "echo 0" command = "echo 1" }B . provisioner "remote-exec" { inline = [ echo 0, echo 1 ] }C . provisioner "remote-exec" { command = "${echo...
Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?
Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?A . servers = num_serversB . servers = variable.num_serversC . servers = var(num_servers)D . servers = var.num_serversView AnswerAnswer: A