How do you specify a module’s version when publishing it to the public terraform Module Registry?
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?
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?
A)
B)
C)
D)
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] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
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)
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
How would you reference the "name’’ value of the second instance of this resource?
Which command(s) adds existing resources in a public cloud into Terraform state?
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?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
Which command must you first run before performing further Terraform operations in a working directory?
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.
You can reference a resource created with for_each using a Splat ( *) expression.
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 must use different Terraform commands depending on the cloud provider you use.
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?
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?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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.
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?
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
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?
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
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 of these actions will prevent two Terraform runs from changing the same state file at the same time?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.
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 provider authentication method prevents credentials from being stored in the state file?