HashiCorp Certified: Terraform Associate (003)
Last Update May 5, 2024
Total Questions : 161
We are offering FREE Terraform-Associate-003 HashiCorp exam questions. All you do is to just go and sign up. Give your details, prepare Terraform-Associate-003 free exam questions and then go for complete pool of HashiCorp Certified: Terraform Associate (003) test questions that will help you more.
You much initialize your working directory before running terraform validate.
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
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?
How would you output returned values from a child module in the Terraform CLI output?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which option cannot be used to keep secrets out of Terraform configuration files?
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.
You can develop a custom provider to manage its resources using Terraform.
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 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)
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
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)?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
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?
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
How do you specify a module’s version when publishing it to the public terraform Module Registry?
Module version is required to reference a module on the Terraform Module Registry.
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
Which parameters does terraform import require? Choose two correct answers.
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?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
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 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 of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
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?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?