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.
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?
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
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?
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?
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
Which command(s) adds existing resources in a public cloud into Terraform state?
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
What type of block is used to construct a collection of nested configuration blocks?
Which method for sharing Terraform configurations fulfills the following criteria:
1. Keeps the configurations confidential within your organization
2. Support Terraform’s semantic version constrains
3. Provides a browsable directory
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?
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?
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?
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 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.
What information does the public Terraform Module Registry automatically expose about published modules?
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.
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)?

A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of that resource block?
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values?
(Pick 3 correct responses)
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 of these actions will prevent two Terraform runs from changing the same state file at the same time?
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 using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick 3)
Which provider authentication method prevents credentials from being stored in the state file?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
Which of the following arguments are required when declaring a Terraform output?

A resource block is shown in the Exhibit space of this page. How would you reference the name value of the second instance of this resource?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
What kind of configuration block will create an infrastructure object with settings specified within the block?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
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?
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?
Terraform variables and outputs that set the description argument will store that description in the state file.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
You must use different Terraform commands depending on the cloud provider you use.
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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 are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.