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 the 3 correct responses)
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
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?
You can access state stored with the local backend by using terraform_remote_state data source.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
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?
In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
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)
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 could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?
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.
terraform validate uses provider APIs to verify your infrastructure settings.
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?
terraform validate confirms that your infrastructure matches the Terraform state file.
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
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?
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
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?
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
What functionality do providers offer in Terraform?(Pick 3 correct responses)
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 have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
You can configure Terraform to log to a file using the TF_LOG environment variable.
Terraform configuration (including any module references) can contain only one Terraform provider type.
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically 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?
What kind of configuration block will create an infrastructure object with settings specified within the block?
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?
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?
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
What feature stops multiple users from operating on the Terraform state at the same time?
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.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
numcpus = [ 18, 3, 7, 11, 2 ]
What Terraform function could you use to select the largest number from the list?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
Which command must you first run before performing further Terraform operations in a working directory?
It is best practice to store secret data in the same version control repository as your Terraform configuration.