terraform plan updates your state file.
Terraform providers are part of the Terraform core binary.
Using the terraform state rm command against a resource will destroy it.
Which of these statements about Terraform Cloud workspaces is false?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a list of all active VM IDs. Which method could you use to determine which instance Terraform manages?
A child module can always access variables declared in its parent module.
The_________determines how Terraform creates, updates, or delete resources.
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
Terraform configuration can only call modules from the public registry.
When do you need to explicitly execute Terraform in refresh-only mode?
You can reference a resource created with for_each using a Splat ( *) expression.
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Your team often uses API calls to create and manage cloud infrastructure. In what ways does Terraform differ from conventional infrastructure management approaches?
When you use a backend that requires authentication, it is best practice to:
Your team is collaborating on infrastructure using Terraform and wants to format code to follow Terraform language style conventions. How can you update your code to meet these requirements?
Where does the Terraform local backend store its state?
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
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)
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
If a module declares a variable with a default, that variable must also be defined within the module.
A Terraform local value can reference other Terraform local values.
Exhibit:
resource " azurerm_linux_web_app " " app " {
name = " example-app "
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
service_plan_id = azurerm_service_plan.plan.id
identity {
type = " UserAssigned "
identity_ids = [azurerm_user_assigned_identity.app.id]
}
}
resource " azurerm_role_assignment " " kv_access " {
scope = azurerm_key_vault.kv.id
role_definition_name = " Key Vault Secrets User "
principal_id = azurerm_user_assigned_identity.app.principal_id
}
Two resource blocks are shown: azurerm_linux_web_app and azurerm_role_assignment. When provisioned, the web app will use the role assignment during creation, so the role assignment must be created first. How do you ensure the azurerm_role_assignment resource is created first?
Exhibit:
module " web_stack " {
source = " ./modules/web_stack "
}
Your configuration defines the module block shown in the exhibit. The web_stack module accepts an input variable named servers. Which of the following changes to the module block sets the servers variable to the value of 3?
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?
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)
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
How does Terraform determine dependencies between resources?
Which Terraform command checks that your configuration syntax is correct?
You must use different Terraform commands depending on the cloud provider you use.
What is the provider for the resource shown in the Exhibit?
resource " aws_vpc " " main " {
name = " test "
}
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
You need to destroy all of the resources in your Terraform workspace, except for aws_instance.ubuntu[1], which you want to keep. How can you tell Terraform to stop managing that specific resource without destroying it?
Exhibit:
data " aws_ami " " web " {
most_recent = true
owners = [ " self " ]
tags = {
Name = " web-server "
}
}
A data source is shown in the exhibit. How do you reference the id attribute of this data source?
Terraform configuration (including any module references) can contain only one Terraform provider type.
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?
What is the workflow for deploying new infrastructure with Terraform?
Module version is required to reference a module on the Terraform Module Registry.
What feature stops multiple users from operating on the Terraform state at the same time?
When using multiple configurations of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Which command generates DOT (Document Template) formatted data to visualize Terraform dependencies?
_______backends support state locking.
Running terraform fmt without any flags in a directory with Terraform configuration files will check the formatting of those files, but will never change their contents.
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don ' t know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources. Which scenario presents a challenge for your team?
How does the use of Infrastructure as Code (IaC) enhance the reliability of your infrastructure?
Pick the two correct responses below.
The terraform output command shows outputs from child modules.
You have a simple Terraform configuration containing one VM (virtual machine) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you run terraform apply again immediately afterwards without changing any Terraform code?
Which of these are features of Terraform Cloud? Choose two correct answers.
What is terraform plan -refresh-only intended to detect?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
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 delete the VM using the cloud provider console, then run terraform apply again without changing any Terraform code?
Terraform providers are always installed from the Internet.
Why does this backend configuration not follow best practices?

Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
Which argument can you use toprevent unexpected updatesto a module ' s configuration when calling Terraform Registry modules?
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
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?
What kind of configuration block will manage an infrastructure object with settings specified within the block?
Exhibit.
You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page.
What meta-argument do you need to configure in a resource block to deploy the resource to the us-west-2 AWS region?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
What kind of configuration block will create an infrastructure object with settings specified within the block?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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.
Which of the following should you add in the required_providers block to define a provider version constraint?
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.
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?
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 method for sharing Terraform modules fulfills the following criteria:
Keeps the module configurations confidential within your organization.
Supports Terraform ' s semantic version constraints.
Provides a browsable directory of your modules.
You are responsible for a set of infrastructure that is managed by two workspaces: example-network and example-compute . The example-compute workspace uses data from output values configured in the example-network workspace and must be deployed afterward. Currently, this is a manual process:
An operator deploys changes to the example-network workspace.
They manually copy the output values from the example-network workspace to input variables configured for the example-compute workspace.
They deploy the example-compute workspace.
Which HCP Terraform features can you use to automate this process?
Pick the two correct responses below.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
You can define multiple backend blocks in your Terraform configuration to store your state in multiple locations.
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?
Which statement describes a goal of Infrastructure as Code (IaC)?
You used Terraform to create an ephemeral development environment in the cloud 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 the resources that will be deleted? (Pick the 2 correct responses)
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?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of that resource block?
Which of the following can you do with terraform plan?
Pick the two correct responses below.
Which of the following is not a valid source path for specifying a module?
How would you output returned values from a child module in the Terraform CLI output?
Which of the following is not a valid Terraform variable type?
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 can access state stored with the local backend by using terraform_remote_state data source.
Before you can use a remote backend, you must first execute terra-form init.
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?
A module can always refer to all variables declared in its parent module.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Which of the following is true about terraform apply?(Pick 2 correct responses)
Which command doesnotcause Terraform to refresh its state?