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?
The Terraform binary version and provider versions must match each other in a single configuration.
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
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?
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
How do you specify a module’s version when publishing it to the public terraform Module Registry?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
In Terraform HCL, an object type of object({name=string, age-number}) would match this 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?
Terraform variables and outputs that set the description argument will store that description in the state file.
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?
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
Which of the following is true about terraform apply?(Pick 2 correct responses)
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 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 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.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
What does Terraform not reference when running a terraform apply -refresh-only ?
You can reference a resource created with for_each using a Splat ( *) expression.
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
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.
How would you output returned values from a child module in the Terraform CLI output?
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
terraform apply will fail if you have not run terraform plan first to update the plan output.
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
What kind of configuration block will create an infrastructure object with settings specified within the block?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
What type of block is used to construct a collection of nested configuration blocks?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
What information does the public Terraform Module Registry automatically expose about published modules?
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
You can configure Terraform to log to a file using the TF_LOG environment variable.