The terraform init command is always safe to run multiple times, to bring the working directory up to date with changes in the configuration. Though subsequent runs may give errors, this command will never delete your existing configuration or state.
A. False
B. True
Which of the following best describes the default local backend?
A. The local backend is where Terraform Enterprise stores logs to be processed by an log collector.
B. The local backend stores state on the local filesystem, locks the state using system APIs, and performs operations locally.
C. The local backend is the directory where resources deployed by Terraform have direct access to in order to update their current state.
D. The local backend is how Terraform connects to public cloud services, such as AWS, Azure, or GCP.
What is the default backend for Terraform?
A. consul
B. gcs
C. local
D. etcd
You have created a custom variable definition file testing.tfvars. How will you use it for provisioning infrastructure?
A. terraform apply-var-state-file ="testing.tfvars"
B. terraform plan-var-file="testing.tfvar"
C. terraform apply-var-file="testing.tfvars"
D. terraform apply var-file="testing.tfvars"
Which of the following Terraform files should be ignored by Git when committing code to a repo? (select Three)
A. Files named exactly terraform.tfvars or terraform.tfvars.json.
B. Any files with names ending in .auto.tfvars or .auto.tfvars.json.
C. input.tf
D. terraform.tfstate
E. output.tf
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.
A. terraform providers
B. terraform state show
C. terraform provider
D. terraform plan
terraform refresh will update the state file?
A. True
B. False
Which one of the following command will rewrite Terraform configuration files to a canonical format and style.
A. terraform graph-h
B. terraform init
C. terraform graph
D. terraform fmt
What is the command you can use to set an environment variable named "var1"of type String?
A. export TF_VAR_VAR1
B. set TF_VAR_var1
C. variable "var1" { type = "string"}
D. export TF_VAR_var1
You want to use different AMI images for different regions and for the purpose you have defined following code block.
1.variable "images"
2.{
3.
type = "map"
4.
5.
default = {
6.
us-east-1 = "image-1234"
7.
us-west-2 = "image-4567"
8.
us-west-1 = "image-4589"
9.
}
10.}
What of the following approaches needs to be followed in order to select image-4589?
A. var.images["us-west-1"]
B. var.images[3]
C. var.images[2]
D. lookup(var.images["us-west-1"]
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only HashiCorp exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your TA-002-P exam preparations and HashiCorp certification application, do not hesitate to visit our Vcedump.com to find your solutions here.