If you don’t use the local Terraform backend, where else can Terraform save resource state?
terraform plan updates your state file.
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
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 below.
Exhibit:
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 correct answers)
Exhibit:
resource " aws_instance " " example " {
ami = " ami-0a123456789abcdef "
instance_type = " t3.micro "
}
You are updating a child module with the resource block shown in the exhibit. The public_ip attribute of the resource needs to be accessible to the parent module. How do you meet this requirement?
A module block used in your configuration is shown in the exhibit. You have been asked to update the version of this module from 4.2.1 to 5.0.0.
Exhibit:
module " compute " {
source = " Azure/compute/azurerm "
version = " 4.2.1 "
}
Which two steps must you take to accomplish this?
Which are examples of infrastructure as code? Choose two correct answers.
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
The terraform output command shows outputs from child modules.
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
|
PDF + Testing Engine
|
|---|
|
$41.25 |
|
Testing Engine
|
|---|
|
$31.25 |
|
PDF (Q&A)
|
|---|
|
$26.25 |
HashiCorp Free Exams |
|---|
|