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 must use different Terraform commands depending on the cloud provider you use.
You have used Terraform lo create an ephemeral development environment in the (loud 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 of the resources that mil be deleted? Choose two correct answers.
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
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?
Terraform configuration (including any module references) can contain only one Terraform provider type.
When you use a remote backend that needs authentication, HashiCorp recommends that you:
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?
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?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
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.
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
You can reference a resource created with for_each using a Splat ( *) expression.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
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?
terraform validate confirms that your infrastructure matches the Terraform state file.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Module version is required to reference a module on the Terraform Module Registry.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
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.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] theywould like to keep. What command should they use to tell Terraform to stop managing that specific resource?
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.