3 Months Free Update
3 Months Free Update
3 Months Free Update
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
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 of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
What information does the public Terraform Module Registry automatically expose about published modules?
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?
terraform validate uses provider APIs to verify your infrastructure settings.
How would you output returned values from a child module in the Terraform CLI output?
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?
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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?
You must use different Terraform commands depending on the cloud provider you use.
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?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
It is best practice to store secret data in the same version control repository as your Terraform configuration.
What type of information can be found on the Terraform Registry when using published modules?
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?
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?
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 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)
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention.
How should they ensure the code satisfies conventions?
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.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
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?
Which method for sharing Terraform configurations fulfills the following criteria:
1. Keeps the configurations confidential within your organization
2. Support Terraform’s semantic version constrains
3. Provides a browsable directory
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?
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?
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.
Which of the following module source paths does not specify a remote module?