
TA-002-P Practice Exam Tests Latest Updated on Dec-2021
Pass TA-002-P Exam in First Attempt Guaranteed Dumps!
Exam Topics for HashiCorp Certified: Terraform Associate TA-002-P Professional Exam
The following will be practiced in HASHICORP TA-002 practice exam and HASHICORP TA-002 practice tests:
- Terraform modules
- Terraform basics
- Terraform workflow
- Terraform Cloud capabilities
- Read, generate, and modify the arrangement
- Terraform CLI (outside of core workflow)
- Infrastructure as code (IaC) concepts
NEW QUESTION 106
By default, provisioners that fail will also cause the Terraform apply itself to error. How can you change this default behavior within a provisioner?
- A. provisioner "local-exec" { on_failure = "continue" }
- B. provisioner "local-exec" { on_failure = "next" }
- C. provisioner "local-exec" { when = "failure" terraform apply }
- D. provisioner "local-exec" { on_failure = continue }
Answer: A
Explanation:
https://www.terraform.io/docs/provisioners/index.html
NEW QUESTION 107
You cannot publish your own modules on the Terraform Registry.
- A. True
- B. False
Answer: B
Explanation:
Explanation
Anyone can publish and share modules on the Terraform Registry.
https://www.terraform.io/docs/registry/modules/publish.html
NEW QUESTION 108
Which of these is the best practice to protect sensitive values in state files?
- A. Enhanced remote backends
- B. Signed Terraform providers
- C. Blockchain
- D. Secure Sockets Layer (SSL)
Answer: A
Explanation:
Explanation
Use of remote backends and especially the availability of Terraform Cloud, there are now a variety of backends that will encrypt state at rest and will not store the state in cleartext on machines running. Reference:
https://www.terraform.io/docs/extend/best-practices/sensitive-state.html
NEW QUESTION 109
Which of the below options is a valid interpolation syntax for retrieving a data source?
- A. ${google_storage_bucket.backend}
- B. ${aws_instance.web.id.data}
- C. ${azurerm_resource_group.test.data}
- D. ${data.google_dns_keys.foo_dns_keys.key_signing_keys[0].ds_record}
Answer: D
Explanation:
Explanation
Data source attributes are interpolated with the general syntax data.TYPE.NAME.ATTRIBUTE. The interpolation for a resource is the same but without the data. prefix (TYPE.NAME.ATTRIBUTE).
https://www.terraform.io/docs/configuration-0-11/interpolation.html#attributes-of-a-data-source
NEW QUESTION 110
A single terraform resource file that defines an aws_instance resource can simply be renamed to vsphere_virtual_machine in order to switch cloud providers.
- A. True
- B. False
Answer: B
Explanation:
Every provider has its own required and allowed declarations none of which match between cloud providers.
NEW QUESTION 111
Which feature of Terraform allows multiple state files for a single configuration file depending upon the environment?
- A. Terraform Remote Backends
- B. Terraform Modules
- C. Terraform Workspaces
- D. Terraform Enterprise
Answer: C
NEW QUESTION 112
Terraform requires the Go runtime as a prerequisite for installation.
- A. True
- B. False
Answer: B
NEW QUESTION 113
After executing a terraform apply, you notice that a resource has a tilde (~) next to it. What does this infer?
- A. The resource will be created.
- B. The resource will be destroyed and recreated.
- C. The resource will be updated in place.
- D. Terraform can't determine how to proceed due to a problem with the state file.
Answer: C
Explanation:
The prefix -/+ means that Terraform will destroy and recreate the resource, rather than updating it in-place.
The prefix ~ means that some attributes and resources can be updated in-place.
$ terraform apply
aws_instance.example: Refreshing state... [id=i-0bbf06244e44211d1]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# aws_instance.example must be replaced
-/+ resource "aws_instance" "example" {
~ ami = "ami-2757f631" -> "ami-b374d5a5" # forces replacement
~ arn = "arn:aws:ec2:us-east-1:130490850807:instance/i-0bbf06244e44211d1" -> (known after apply)
~ associate_public_ip_address = true -> (known after apply)
~ availability_zone = "us-east-1c" -> (known after apply)
~ cpu_core_count = 1 -> (known after apply)
~ cpu_threads_per_core = 1 -> (known after apply)
- disable_api_termination = false -> null
- ebs_optimized = false -> null
get_password_data = false
+ host_id = (known after apply)
~ id = "i-0bbf06244e44211d1" -> (known after apply)
~ instance_state = "running" -> (known after apply)
instance_type = "t2.micro"
~ ipv6_address_count = 0 -> (known after apply)
~ ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
- monitoring = false -> null
+ network_interface_id = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
~ primary_network_interface_id = "eni-0f1ce5bdae258b015" -> (known after apply)
~ private_dns = "ip-172-31-61-141.ec2.internal" -> (known after apply)
~ private_ip = "172.31.61.141" -> (known after apply)
~ public_dns = "ec2-54-166-19-244.compute-1.amazonaws.com" -> (known after apply)
~ public_ip = "54.166.19.244" -> (known after apply)
~ security_groups = [
- "default",
] -> (known after apply)
source_dest_check = true
~ subnet_id = "subnet-1facdf35" -> (known after apply)
~ tenancy = "default" -> (known after apply)
~ volume_tags = {} -> (known after apply)
~ vpc_security_group_ids = [
- "sg-5255f429",
] -> (known after apply)
- credit_specification {
- cpu_credits = "standard" -> null
}
+ ebs_block_device {
+ delete_on_termination = (known after apply)
+ device_name = (known after apply)
+ encrypted = (known after apply)
+ iops = (known after apply)
+ snapshot_id = (known after apply)
+ volume_id = (known after apply)
+ volume_size = (known after apply)
+ volume_type = (known after apply)
}
+ ephemeral_block_device {
+ device_name = (known after apply)
+ no_device = (known after apply)
+ virtual_name = (known after apply)
}
+ network_interface {
+ delete_on_termination = (known after apply)
+ device_index = (known after apply)
+ network_interface_id = (known after apply)
}
~ root_block_device {
~ delete_on_termination = true -> (known after apply)
~ iops = 100 -> (known after apply)
~ volume_id = "vol-0079e485d9e28a8e5" -> (known after apply)
~ volume_size = 8 -> (known after apply)
~ volume_type = "gp2" -> (known after apply)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
NEW QUESTION 114
In the following code snippet, the block type is identified by which string?
- A. "aws_instance"
- B. instance_type
- C. resource
- D. "db"
Answer: C
NEW QUESTION 115
What features stops multiple admins from changing the Terraform state at the same time?
- A. Provider constraints
- B. Backend types
- C. Version control
- D. State locking
Answer: D
NEW QUESTION 116
Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.
- A. True
- B. False
Answer: A
NEW QUESTION 117
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. True
- B. False
Answer: A
Explanation:
Explanation
https://www.terraform.io/docs/commands/init.html
NEW QUESTION 118
A user has created three workspaces using the command line - prod, dev, and test. The user wants to create a fourth workspace named stage. Which command will the user execute to accomplish this?
- A. terraform workspace -new stage
- B. terraform workspace -create stage
- C. terraform workspace new stage
- D. terraform workspace create stage
Answer: C
Explanation:
The terraform workspace new command is used to create a new workspace.
https://www.terraform.io/docs/commands/workspace/new.html
NEW QUESTION 119
Multiple provider instances blocks for AWS can be part of a single configuration file?
- A. True
- B. False
Answer: A
Explanation:
Explanation
You can optionally define multiple configurations for the same provider, and select which one to use on a per-resource or per-module basis. The primary reason for this is to support multiple regions for a cloud platform; other examples include targeting multiple Docker hosts, multiple Consul hosts, etc.
To include multiple configurations for a given provider, include multiple provider blocks with the same provider name, but set the alias meta-argument to an alias name to use for each additional configuration. For example:
# The default provider configuration
provider "aws" {
region = "us-east-1"
}
# Additional provider configuration for west coast region
provider "aws" {
alias = "west"
region = "us-west-2"
}
The provider block without alias set is known as the default provider configuration. When alias is set, it creates an additional provider configuration. For providers that have no required configuration arguments, the implied empty configuration is considered to be the default provider configuration.
https://www.terraform.io/docs/configuration/providers.html#alias-multiple-provider-instances
NEW QUESTION 120
What is the command you can use to set an environment variable named "var1"of type String?
- A. variable "var1" { type = "string"}
- B. export TF_VAR_var1
- C. set TF_VAR_var1
- D. export TF_VAR_VAR1
Answer: B
Explanation:
The environment variable must be in the format TF_VAR_name, so for the
NEW QUESTION 121
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
- A. It is only available to paying customers
- B. All of the above
- C. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
- D. It doesn't show the output of a terraform apply locally
Answer: C
Explanation:
Explanation
If you and your team are using Terraform to manage meaningful infrastructure, we recommend using the remote backend with Terraform Cloud or Terraform Enterprise.
Reference: https://www.terraform.io/docs/language/settings/backends/index.html
NEW QUESTION 122
......
HashiCorp Certified: Terraform Associate TA-002-P Professional Exam Certification Path
Test Preparation teaches how the exam questions can to be decoded. Our Exam Preparedness: HashiCorp Certified: Terraform Associate TA-002-Pâ Technical arrangement course is delivered in multiple configurations: study hall preparing for learning or taking an interest in a physical homeroom with an Approved Learner. Free media preparing for learning whenever it is suitable for you. The course surveys test inquiries in each branch of knowledge and how the themes tried ought to be seen to such an extent that off base answers are easier to stay away from. Our course will help you in tracking down the correct answers.
Learning Path:
- Go through HashiCorpâs resource library
- Understand basic things about Terraform Cloud & Terraform Enterprise
- Study to Terraform with HashiCorpâs official learning platform
- Enroll in a course from Udemy created by Zeal Vora for both learning Terraform & qualifying for the examination
- Learn the Terraform Core workflow
- Go through resource for preparing for the examination wrote by Ned Bellavance and Adin Ermie available on Leanpub
- Study Terraform Basics
HashiCorp Infrastructure Automation Free Certification Exam Material from ITExamSimulator with 324 Questions: https://testking.itexamsimulator.com/TA-002-P-brain-dumps.html

