It is best practice to store secret data in the same version control repository as your Terraform configuration.
You can configure multiple cloud blocks in your Terraform configuration to connect your workspace to both HCP Terraform and your Terraform Enterprise instance.
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
You can execute terraform fmt to standardize all Terraform configurations within the current working directory to Terraform’s canonical format and style.
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)
What kind of configuration block will manage an infrastructure object with settings specified within the block?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
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?
Before you can use a remote backend, you must first execute terra-form init.
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of that resource block?
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?
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)
Exhibit:
provider " aws " { region = " us-east-1 " }
provider " aws " { region = " us-west-2 " }
You need to deploy resources into two different AWS regions in the same Terraform configuration using the provider blocks shown in the exhibit. What do you need to add to the provider configuration to deploy a resource to the us-west-2 AWS region?
You’ve just finished refactoring part of your Terraform workspace’s configuration to use a module to manage some of your resources. When you plan your changes, you notice that Terraform will destroy and recreate the affected resources. Doing so could cause unintended downtime in the application your workspace manages. What supported approach should you take to complete the refactor without destroying and recreating your resources?
A provider configuration block is required in every Terraform configuration.
Example:

When using multiple configurations of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
What is the provider for the resource shown in the Exhibit?
resource " aws_vpc " " main " {
name = " test "
}
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
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)
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
What functionality do providers offer in Terraform?(Pick 3 correct responses)
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 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 isnotan advantage of using Infrastructure as Code (IaC) operations?
Your Terraform configuration declares a variable. You want to enforce that its value meets your specific requirements, and you want to block the Terraform operation if it does not. What should you add to your configuration?
Which option cannot be used to keep secrets out of Terraform configuration files?
Which of the following can you do with terraform plan?
Pick the two correct responses below.
Where does HashiCorp recommend you store API tokens and other secrets within your team’s Terraform workspaces?
Pick the three correct responses below.
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.
What kind of configuration block will create an infrastructure object with settings specified within the block?
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?
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?
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
A Terraform output that sets the " sensitive " argument to true will not store that value in the state file.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Where in your Terraform configuration do you specify remote state storage settings?
Which two steps are required to provision new infrastructure in the Terraform workflow? (Pick the 2 correct responses below.)
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 modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?
Original configuration:
resource " aws_s3_bucket " " photoes " {
bucket_prefix = " images "
}
Updated configuration:
resource " aws_s3_bucket " " photos " {
bucket_prefix = " images "
}
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
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.
Which parameters does the import block require? (Pick the 2 correct responses below.)
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
When you use a backend that requires authentication, it is best practice to:
Exhibit:
data " vsphere_datacenter " " dc " {}
resource " vsphere_folder " " parent " {
path = " Production "
type = " vm "
datacenter_id = _________
}
You want to pass the id of the vsphere_datacenter data source to the datacenter_id argument of the vsphere_folder resource. Which reference would you use?
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
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?
The Terraform binary version and provider versions must match each other in a single configuration.
Which of the following module source paths does not specify a remote module?
Which of these are features of Terraform Cloud? Choose two correct answers.
Your team is using version 3.1.4 of a module from the public Terraform Registry, and they are worried about possible breaking changes in future versions of the module. Which version argument should you add to the module block to prevent newer versions from being used?
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?
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 benefit of adopting infrastructure as code?