What does Terraform not reference when running a terraform apply -refresh-only ?
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.
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
What functionality do providers offer in Terraform?(Pick 3 correct responses)
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?
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?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? 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?
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
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?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
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?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Module version is required to reference a module on the Terraform Module Registry.
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
If a module declares a variable with a default, that variable must also be defined within the module.
You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
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?
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?
You can develop a custom provider to manage its resources using Terraform.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
You can reference a resource created with for_each using a Splat ( *) expression.
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?
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention.
How should they ensure the code satisfies conventions?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
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?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
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?