Which command add existing resources into Terraform state?
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?
Module variable assignments are inherited from the parent module and you donotneed to explicitly set them.
What kind of configuration block will create an infrastructure object with settings specified within the block?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
A terraform apply can not _________ infrastructure.
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.
Which of these commands makes your code more human readable?
Which of the following is not a valid siring function in Terraform?
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
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?
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?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
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 task does terraform init not perform?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Which of these ate features of Terraform Cloud? 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?
Which of the following should you put into the required_providers block?
Which Terraform collection type should you use to store key/value pairs?
What does state looking accomplish?
A Terraform provider is NOT responsible for:
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 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?
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?
Which command must you first run before performing further Terraform operations in a working directory?
A provider configuration block is required in every Terraform configuration.
Example:
HashiCorp Configuration Language (HCL) supports user-denned functions.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Which two steps are required to provision new infrastructure in the Terraform workflow? 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?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
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?
Why does this backend configuration not follow best practices?
When does Sentinel enforce policy logic during a Terraform Cloud run?
You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?
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?
You can develop a custom provider to manage its resources using 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.
You have to initialize a Terraform backend before it can be configured.
Which option cannot be used to keep secrets out of Terraform configuration files?
Select the command that doesn’t cause Terraform to refresh its state.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
terraform validate reports syntax check errors for which of the following?
How do you specify a module’s version when publishing it to the public terraform Module Registry?