You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
Which of these ate features of Terraform Cloud? Choose two correct answers.
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Which parameters does terraform import require? Choose two correct answers.
You must use different Terraform commands depending on the cloud provider you use.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
What type of block is used to construct a collection of nested configuration blocks?
terraform validate reports syntax check errors for which of the following?
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)
What type of information can be found on the Terraform Registry when using published modules?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
Terraform configuration (including any module references) can contain only one Terraform provider type.
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
The_________determines how Terraform creates, updates, or delete resources.
You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
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?
One remote backend configuration always maps to a single remote workspace.
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
What information does the public Terraform Module Registry automatically expose about published modules?
You can develop a custom provider to manage its resources using Terraform.
Which of the following is not a benefit of adopting infrastructure as code?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
The Terraform binary version and provider versions must match each other in a single configuration.
You can configure Terraform to log to a file using the TF_LOG environment variable.
What feature stops multiple users from operating on the Terraform state at the same time?
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?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
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 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?