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?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
It is best practice to store secret data in the same version control repository as your Terraform configuration.
You use a cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that listens on port 80. After application changes, you updated the Terraform code to change the port to 443.
You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like you intended and step away to grab some coffee.
In the meantime, another team member manually changes the load balancer port to 443 through the cloud provider console before you get back to your desk.
What will happen when you run terraform apply upon returning to your desk?
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Which provider authentication method prevents credentials from being stored in the state file?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
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?
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
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?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform's logging more verbose?
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
terraform apply will fail if you have not run terraform plan first to update the plan output.
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
What kind of configuration block will create an infrastructure object with settings specified within the block?
You can reference a resource created with for_each using a Splat ( *) expression.
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
You must use different Terraform commands depending on the cloud provider you use.