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?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
terraform validate confirms that your infrastructure matches the Terraform state file.
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
You used Terraform to create an ephemeral development environment in the cloud 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 the resources that will be deleted? (Pick the 2 correct responses)
Which of the following is true about terraform apply?(Pick 2 correct responses)
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
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.
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
You can configure Terraform to log to a file using the TF_LOG environment variable.
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
What type of information can be found on the Terraform Registry when using published modules?
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Module version is required to reference a module on the Terraform Module Registry.
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
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?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
Terraform variables and outputs that set the description argument will store that description in the state file.
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?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
When you use a remote backend that needs authentication, HashiCorp recommends that you:
You can access state stored with the local backend by using terraform_remote_state data source.
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?