Chapter 8
- Correct answer: B
Explanation: We already described the Terraform style convention that each nesting level in the Terraform configuration file should have two indentation spaces. To learn more about it, you can visit https://www.terraform.io/docs/language/syntax/style.html.
- Correct answer: A
Explanation: The default way of placing a comment in the Terraform configuration file is using #
.
- Correct answer: A
Explanation: The terraform validate
command will help you to check any syntax error in the Terraform configuration file.
- Correct answer: A
Explanation: If we want to see an output of the provisioned resources, then we should define them as an output so that we can see it at runtime itself. Option B is also quite close – no doubt we can see the name of the provisioned storage account by looking inside the state file but it is not the recommended way of doing it. And even option C is correct – if we run...