What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
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)?
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
It is best practice to store secret data in the same version control repository as your Terraform configuration.
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 feature stops multiple users from operating on the Terraform state at the same time?
Which command must you first run before performing further Terraform operations in a working directory?
How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
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?
You can develop a custom provider to manage its resources using Terraform.
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
How would you output returned values from a child module in the Terraform CLI output?
The Terraform binary version and provider versions must match each other in a single configuration.
You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?
A)
B)
C)
D)
Before you can use a remote backend, you must first execute terra-form init.
Which of the following module source paths does not specify a remote module?
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
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?
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
A)
B)
C)
D)
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?
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 of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
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?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
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 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.
A provider configuration block is required in every Terraform configuration.
Example:
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.