Free Certification Practice Questions

HASHICORP-TERRAFORM-ASSOCIATE

Loading…
HashiCorp's Terraform Associate 003 As a developer, you want to ensure your plugins are up-to-date with the latest versions. Which Terraform command should you use?
#1
HashiCorp's Terraform Associate 003 Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
#2
HashiCorp's Terraform Associate 003 You can reference a resource created with for_each using a splat ( * ) expression.
#3
HashiCorp's Terraform Associate 003 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 directory contains a .terraform.lock.hcl file.How will Terraform choose which version of the provider to use?
#4
HashiCorp's Terraform Associate 003 All standard backend types support state storage, locking, and remote operations like plan, apply, and destroy.
#5
HashiCorp's Terraform Associate 003 A resource block is shown in the Exhibit section of this page.How would you reference the attribute name of this resource in HCL?
#6
HashiCorp's Terraform Associate 003 terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?Error loading state: AccessDenied: Access Denied status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
#7
HashiCorp's Terraform Associate 003 Which Terraform command checks that your configuration syntax is correct?
#8
HashiCorp's Terraform Associate 003 How does the HCP Terraform/Terraform Cloud integration differ from backends such as S3, Consul, etc.?
#9
HashiCorp's Terraform Associate 003 Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
#10
HashiCorp's Terraform Associate 003 When should you use the force-unlock command?
#11
HashiCorp's Terraform Associate 003 You used Terraform to create an ephemeral development environment in the cloud 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 the resources that will be deleted? (Choose two.)
#12
HashiCorp's Terraform Associate 003 Which of the following locations can Terraform use as a private source for modules? (Choose two.)
#13
HashiCorp's Terraform Associate 003 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.)
#14
HashiCorp's Terraform Associate 003 A resource block is shown in the Exhibit space of this page. How would you reference the name value of the second instance of this resource? E. aws_instance.web.*.name
#15
HashiCorp's Terraform Associate 003 Which of these is true about Terraform’s plugin-based architecture?
#16
HashiCorp's Terraform Associate 003 Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
#17
HashiCorp's Terraform Associate 003 You decide to move a Terraform state file to Amazon S3 from another location. You write the code shown in the Exhibit space into a file called backend.tf.Which command will migrate your current state file to the new S3 backend?
#18
HashiCorp's Terraform Associate 003 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.)
#19
HashiCorp's Terraform Associate 003 terraform validate uses provider APIs to verify your infrastructure settings.
#20
HashiCorp's Terraform Associate 003 It is ____________ to change the Terraform backend from the default “local” backend to a different one after performing your first terraform apply.
#21
HashiCorp's Terraform Associate 003 Which of the following is true about terraform apply? (Choose two.) E. You must pass the output of a terraform plan command to it.
#22
HashiCorp's Terraform Associate 003 Which of the following is available only in HCP Terraform workspaces and not in Terraform CLI?
#23
HashiCorp's Terraform Associate 003 Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.) E. validate
#24
HashiCorp's Terraform Associate 003 Which parameters does terraform import require? (Choose two.)
#25
HashiCorp's Terraform Associate 003 You must initialize your working directory before running terraform validate.
#26
HashiCorp's Terraform Associate 003 When does Terraform create the .terraform.lock.hcl file?
#27
HashiCorp's Terraform Associate 003 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, then removed the resource definition from your Terraform configuration file.What will happen when you run terraform apply in the working directory again?
#28
HashiCorp's Terraform Associate 003 What is a Terraform provider not responsible for?
#29
HashiCorp's Terraform Associate 003 One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
#30