You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?
A)
B)
C)
D)
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?
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
terraform validate confirms that your infrastructure matches the Terraform state file.
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?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
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?
Which command(s) adds existing resources in a public cloud into Terraform state?
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?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
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 these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
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?
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 command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
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.
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
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?
terraform apply will fail if you have not run terraform plan first to update the plan output.
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which of the following can you do with terraform plan? (Pick 2 correct responses)
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
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?
A provider configuration block is required in every Terraform configuration.
Example:
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
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 does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Terraform variables and outputs that set the description argument will store that description in the state file.
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
What does Terraform not reference when running a terraform apply -refresh-only ?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
Which option cannot be used to keep secrets out of Terraform configuration files?
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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)?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? 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?