Which syntax check returns an error when you run terraform validate?
Answer : A
What is the purpose of the .terraform directory in a Terraform workspace?
Answer : A
How can terraform plan aid in the development process?
Answer : A
You have a saved execution plan containing desired changes for infrastructure managed by Terraform. After running the command terraform apply my.tfplan, you receive the error shown in the Exhibit space on this page.
| Error: Saved plan is stale
|
| The given plan file can no longer be applied because the state was changed by another operation after the plan was created.
How can you apply the desired changes? (Choose two.)
Answer : AB
Which of these can you do with terraform plan? (Choose two.)
Answer : BD
Which task does terraform init not perform?
Answer : C
Which of the following arguments are required when declaring a Terraform output?
Answer : B
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Answer : A
The Exhibit section of this page shows part of a configuration you’ve been asked to update. data “azurerm_resource_group” “example” { name = var.resource_group_name
}
resource “azurerm_virtual_network” “example” {
name = ____________________
}
The name of the Azure Virtual Network should be set to the name of the resource group followed by a dash and the word “vnet”.
Which expression fulfills this requirement?
Answer : D
Your team is collaborating on infrastructure using Terraform and are formatting their code to follow Terraform language style conventions.
How can you update your code to meet these requirements?
Answer : D
A resource block is shown in the Exhibit space of this page.
resource “aws_instance” “web” {
count = 2
name = “terraform-${count.index}”
}
How do you reference the name value of the second instance of this resource?
Answer : D
When using multiple configurations of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Answer : A
You want to create a string that is a combination of a generated random_id and a variable and reuse that string several times in your configuration.
What is the simplest correct way to implement this without repeating the random_id and variable?
Answer : B
Your Terraform configuration manages a resource that requires maximum uptime. You need to update the resource, and when you run terraform plan, Terraform notes that the update requires the resource to be destroyed and recreated.
Which lifecycle rule can you add to the resource to reduce the downtime of the resource while still applying the update?
Answer : C
The Terraform configuration shown in the Exhibit space on this page will create a new AWS instance. data “aws_instance” “web” { filter { name = “tag:Name” values = [“web”]
}
}
Answer : B
Have any questions or issues ? Please dont hesitate to contact us