Question 161

Your developers are facing a lot of problem while writing complex expressions involving difficult interpolations . They have to run the terraform plan every time and check whether there are errors , and also check terraform apply to print the value as a temporary output for debugging purposes. What should be done to avoid this?
  • Question 162

    Consider the following Terraform 0.12 configuration snippet:
    1. variable "vpc_cidrs" {
    2. type = map
    3. default = {
    4. us-east-1 = "10.0.0.0/16"
    5. us-east-2 = "10.1.0.0/16"
    6. us-west-1 = "10.2.0.0/16"
    7. us-west-2 = "10.3.0.0/16"
    8. }
    9. }
    10.
    11. resource "aws_vpc" "shared" {
    12. cidr_block = _____________
    13. }
    How would you define the cidr_block for us-east-1 in the aws_vpc resource using a variable?
  • Question 163

    Terraform has detailed logs which can be enabled by setting the _________ environmental variable.
  • Question 164

    As a member of an operations team that uses infrastructure as code (laC) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
  • Question 165

    Where does the Terraform local backend store its state?