What type of block is used to construct a collection of nested configuration blocks?

What type of block is used to construct a collection of nested configuration blocks?A . for_eachB . repeatedC . nestingD . dynamicView AnswerAnswer: D

March 16, 2022 No Comments READ MORE +

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

March 15, 2022 1 Comment READ MORE +

What is the name assigned by Terraform to reference this resource?

What is the name assigned by Terraform to reference this resource? A . devB . azurerm_resource_groupC . azurermD . testView AnswerAnswer: D

March 15, 2022 No Comments READ MORE +

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?A . Run terraform refreshB . It will happen automaticallyC . Manually update the state fireD . Run terraform importView AnswerAnswer: A

March 15, 2022 No Comments READ MORE +

Module variable assignments are inherited from the parent module and do not need to be explicitly set.

Module variable assignments are inherited from the parent module and do not need to be explicitly set.A . TrueB . FalseView AnswerAnswer: B

March 15, 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 . TrueB . FalseView AnswerAnswer: A Explanation: Reference: https://www.terraform.io/docs/internals/debugging.html

March 15, 2022 1 Comment READ MORE +

What is one disadvantage of using dynamic blocks in Terraform?

What is one disadvantage of using dynamic blocks in Terraform?A . They cannot be used to loop through a list of valuesB . Dynamic blocks can construct repeatable nested blocksC . They make configuration harder to read and understandD . Terraform will run more slowlyView AnswerAnswer: A Explanation: Reference: https://github.com/hashicorp/terraform/issues/19291

March 15, 2022 1 Comment READ MORE +

What is the name of the default file where Terraform stores the state?

CORRECT TEXT FILL BLANK What is the name of the default file where Terraform stores the state? 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: Terraform.tfstate

March 15, 2022 No Comments READ MORE +

How would you reference the "name" value of the second instance of this fictitious resource?

How would you reference the "name" value of the second instance of this fictitious resource? A . element(aws_instance.web, 2)B . aws_instance.web[1].nameC . aws_instance.web[1]D . aws_instance.web[2].nameE . aws_instance.web.*.nameView AnswerAnswer: A Explanation: Reference: https://www.terraform.io/docs/configuration-0-11/interpolation.html

March 15, 2022 1 Comment READ MORE +

What information does the public Terraform Module Registry automatically expose about published modules?

What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variablesB . Optional inputs variables and default valuesC . OutputsD . All of the aboveE . None of the aboveView AnswerAnswer: E Explanation: Reference: https://www.terraform.io/docs/registry/modules/publish.html

March 15, 2022 No Comments READ MORE +