Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Which provider authentication method prevents credentials from being stored in the state file?
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?
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
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?
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 these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
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
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?
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 can access state stored with the local backend by using terraform_remote_state data source.
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 must use different Terraform commands depending on the cloud provider you use.
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
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.
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?
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?
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
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?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
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.
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking 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
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.