3 Months Free Update
3 Months Free Update
3 Months Free Update
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?
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
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
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 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 have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
It is best practice to store secret data in the same version control repository as your Terraform configuration.
Which of the following is not a valid source path for specifying a module?
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?
Which of the following can you do with terraform plan? (Pick 2 correct responses)
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 you use a backend that requires authentication, it is best practice to:
You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.
Which Terraform command should you runfirst?
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
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?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
Which of the following arguments are required when declaring a Terraform output?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
You must use different Terraform commands depending on the cloud provider you use.
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
What type of information can be found on the Terraform Registry when using published modules?
What does Terraform not reference when running a terraform apply -refresh-only ?
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?
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?
What information does the public Terraform Module Registry automatically expose about published modules?
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
You can configure Terraform to log to a file using the TF_LOG environment variable.
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
What functionality do providers offer in Terraform?(Pick 3 correct responses)
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
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?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
terraform validate reports syntax check errors for which of the following?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

What type of block is used to construct a collection of nested configuration blocks?