Which Terraform command checks that your configuration syntax is correct?
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
You must use different Terraform commands depending on the cloud provider you use.
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
A provider configuration block is required in every Terraform configuration.
Example:

Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
Which command add existing resources into Terraform state?
Any user can publish modules to the public Terraform Module Registry.
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.
Where does the Terraform local backend store its state?
Terraformrequiresthe Go runtime as a prerequisite for installation.
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
A terraform apply can not _________ infrastructure.
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
What kind of configuration block will create an infrastructure object with settings specified within the block?
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?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
terraform destroy is the only way to remove infrastructure.
What type of information can be found on the Terraform Registry when using published modules?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
Which of these are features of Terraform Cloud? Choose two correct answers.
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Which of these commands makes your code more human readable?
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 does Terraform create the .terraform.lock.hc1 file?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
How does Terraform determine dependencies between resources?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
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 are examples of infrastructure as code? Choose two correct answers.
When should you use the force-unlock command?
When do you need to explicitly execute Terraform in refresh-only mode?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
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)
It is best practice to store secret data in the same version control repository as your Terraform configuration.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
A Terraform local value can reference other Terraform local values.
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)
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which of the following is not a valid Terraform collection type?
What functionality do providers offer in Terraform?(Pick 3 correct responses)
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
terraform validate confirms that your infrastructure matches the Terraform state file.
What is the purpose of the terraform.lock.hcl file in Terraform?
A developer on your team is going to 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 is not a valid Terraform variable type?
You have to initialize a Terraform backend before it can be configured.
When should you run terraform init?
What does the default "local" Terraform backend store?
Which of the following should you put into the required_providers block?
terraform apply will fail if you have not run terraform plan first to update the plan output.
Which of the following should you add in the required_providers block to define a provider version constraint?
Which of the following is not a valid source path for specifying a module?
You can reference a resource created with for_each using a Splat ( *) expression.
What is the workflow for deploying new infrastructure with Terraform?
A child module can always access variables declared in its parent module.
Select the command that doesn’t cause Terraform to refresh its state.
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
The public Terraform Module Registry is free to use.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
Terraform providers are always installed from the Internet.
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)?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which command must you first run before performing further Terraform operations in a working directory?
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.