terraform validate confirms thesyntaxof Terraform files.
What is modified when executing Terraform inrefresh-only mode?
Which of the following is true about terraform apply?(Pick 2 correct responses)
What is one disadvantage of using dynamic blocks in Terraform?
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.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
Why does this backend configuration not follow best practices?
Terraform encrypts sensitive values stored in your state file.
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Which command add existing resources into Terraform state?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which of these ate features of Terraform Cloud? Choose two correct answers.
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
One remote backend configuration always maps to a single remote workspace.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
What information does the public Terraform Module Registry automatically expose about published modules?
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.
Which Terraform command should you runfirst?
Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?
What does Terraform not reference when running a terraform apply -refresh-only ?
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 is the Terraform style convention for indenting a nesting level compared to the one above it?
Which Terraform collection type should you use to store key/value pairs?
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 is terraform import run?
The Terraform binary version and provider versions must match each other in a single configuration.
Which Terraform command checks that your configuration syntax is correct?
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?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Where in your Terraform configuration do you specify a state backend?
Only the user that generated a plan may apply it.
terraform validate reports syntax check errors for which of the following?
Which of these commands makes your code more human readable?
Which provider authentication method prevents credentials from being stored in the state file?
Terraform configuration can only call modules from the public registry.
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?
terraform init retrieves and caches the configuration for all remote modules.
Which of the following is not a valid source path for specifying a module?
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
Which of the following module source paths does not specify a remote module?
Which of the following is not a valid Terraform collection type?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
When does Terraform create the .terraform.lock.hc1 file?
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
Select the command that doesn’t cause Terraform to refresh its state.
Which of the following is not true of Terraform providers?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which command doesnotcause Terraform to refresh its state?
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 configuration (including any module references) can contain only one Terraform provider type.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
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 does Sentinel enforce policy logic during a Terraform Cloud run?
Which command lets you experiment with terraform expressions?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
You can access state stored with the local backend by using terraform_remote_state data source.
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)
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?
Which backend does the Terraform CU use by default?
Which of the following arguments are required when declaring a Terraform output?
Terraform configuration can only import modules from the public registry.