The Terraform binary version and provider versions must match each other in a single configuration.
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?
A)
B)
C)
D)
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
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.
A provider configuration block is required in every Terraform configuration.
Example:
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
A)
B)
C)
D)
A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?
Which command must you first run before performing further Terraform operations in a working directory?
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?
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.
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
What Terraform function could you use to select the largest number from the list?
How would you reference the "name’’ value of the second instance of this resource?
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
What does Terraform not reference when running a terraform apply -refresh-only ?
Which of the following does terraform apply change after you approve the execution plan? (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?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
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.
Which option cannot be used to keep secrets out of Terraform configuration files?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
You can access state stored with the local backend by using terraform_remote_state data source.
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.
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?
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?
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?
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?