terraform apply will fail if you have not run terraform plan first to update the plan output.
You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
What does Terraform not reference when running a terraform apply -refresh-only ?
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?
You can configure Terraform to log to a file using the TF_LOG environment variable.
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
Which command must you first run before performing further Terraform operations in a working directory?
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which option cannot be used to keep secrets out of Terraform configuration files?
The Terraform binary version and provider versions must match each other in a single configuration.
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
Which method for sharing Terraform modules fulfills the following criteria:
Keeps the module configurations confidential within your organization.
Supports Terraform's semantic version constraints.
Provides a browsable directory of your modules.
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Which provider authentication method prevents credentials from being stored in the state file?
A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
When you use a remote backend that needs authentication, HashiCorp recommends that you:
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
Module version is required to reference a module on the Terraform Module Registry.
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
Terraform configuration (including any module references) can contain only one Terraform provider type.
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
What type of block is used to construct a collection of nested configuration blocks?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Which of the following arguments are required when declaring a Terraform output?
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.