How do you specify a module’s version when publishing it to the public terraform Module Registry?
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
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?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
terraform validate confirms that your infrastructure matches the Terraform state file.
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 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?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
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?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
You can reference a resource created with for_each using a Splat ( *) expression.
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
Which of these ate features of Terraform Cloud? Choose two correct answers.
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.