3 Months Free Update
3 Months Free Update
3 Months Free Update
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?
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
What information does the public Terraform Module Registry automatically expose about published modules?
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?
What does Terraform not reference when running a terraform apply -refresh-only ?
terraform validate confirms that your infrastructure matches the Terraform state file.
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?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
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 of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
How do you specify a module’s version when publishing it to the public terraform Module Registry?
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?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
One remote backend configuration always maps to a single remote workspace.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Which of the following module source paths does not specify a remote module?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Which of these ate features of Terraform Cloud? Choose two correct answers.
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
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?
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?
How would you output returned values from a child module in the Terraform CLI output?
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 the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
Module version is required to reference a module on the Terraform Module Registry.
A provider configuration block is required in every Terraform configuration.
Example: