[Jun-2024] HashiCorp TA-002-P Test Engine PDF - All Free Dumps from Fast2test
Get New TA-002-P Certification – Valid Exam Dumps Questions
HashiCorp TA-002-P Exam consists of multiple-choice questions and requires a passing score of 70% to become certified. TA-002-P exam covers a variety of topics, including Terraform basics, configuration syntax, resource management, and Terraform modules. TA-002-P exam is designed to test one's ability to use Terraform to manage infrastructure resources in a cloud environment, as well as their understanding of best practices and common pitfalls when using the tool. Upon passing the exam, individuals will receive the HashiCorp Certified: Terraform Associate certification, which demonstrates their expertise in using Terraform to manage infrastructure resources in a cloud environment.
The HashiCorp TA-002-P exam covers a wide range of topics such as Terraform basics, resource management, configuration syntax, remote state management, and more. TA-002-P exam consists of 60 multiple-choice questions, and applicants have 90 minutes to complete it. TA-002-P exam is computer-based and can be taken at any authorized testing center.
Understanding functional and technical aspects of HashiCorp Certified: Terraform Associate TA-002-P Professional Exam Object Management
The following will be discussed in HASHICORP TA-002 exam dumps:
- Describe plugin-based architecture
- Provided with a situation: determine when to utilize terraform workspace to create workspaces
- Describe how Terraform pinpoints and retrieves providers
- Provided with a situation: determine when to utilize terraform taint to taint Terraform resources
- Provided with a situation: determine when to utilize terraform state to view Terraform state
- Explain when to tilize and not to utilize provisioners and when to utilize local-exec or remote-exec.
- Provided with a situation: determine when to allow verbose logging and what the outcome/value is
- Explain multi-cloud and provider-agnostic advantages
- Explain the advantages of state
NEW QUESTION # 56
You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?
- A.

- B.

- C.

- D.

Answer: D
Explanation:
Option C is the correct way to configure multiple providers in a Terraform configuration. Each provider block must have a name attribute that specifies which provider it configures2. The other options are either missing the name attribute or using an invalid syntax.
NEW QUESTION # 57
When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
- A. False
- B. True
Answer: B
Explanation:
TF_LOG_PATH specifies where the log should persist its output to. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
For example, to always write the log to the directory you're currently running terraform from:
export TF_LOG_PATH=./terraform.log
export TF_LOG=TRACE
NEW QUESTION # 58
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" { when = "failure" terraform apply }
- B. provisioner "local-exec" { on_failure = "next" }
- C. provisioner "local-exec" { on_failure = continue }
- D. provisioner "local-exec" { on_failure = "continue" }
Answer: D
Explanation:
Explanation
https://www.terraform.io/docs/provisioners/index.html
NEW QUESTION # 59
Which of the following is not valid source path for specifying a module?
- A. source = "./module"
- B. source = "./modulelversion=v1.0.0"
- C. source = "hashicorp/consul/aws"
- D. source = "github.com/hashicorp/example?ref=v1.0.0"
Answer: B
NEW QUESTION # 60
What does terrafom plan do ?
- A. Create an execution plan by evaluating the difference between configuration file and actual
infrastructure. - B. Checks whether the execution plan for a set of changes matches your expectations by making changes to
real resources or to the state. - C. Performs a refresh, unless explicitly disabled, and then apply the changes that are necessary to achieve
the desired state specified in the configuration files. - D. Create an execution plan by evaluating the difference between configuration file and state file.
Answer: D
NEW QUESTION # 61
The current implementation of Terraform import can only import resources into the state. It does not generate
configuration.
- A. False
- B. True
Answer: B
Explanation:
Explanation
The current implementation of Terraform import can only import resources into the state. It does not generate
configuration. A future version of Terraform will also generate configuration.
Because of this, prior to running terraform import it is necessary to write manually a resource configuration
block for the resource, to which the imported object will be mapped.
While this may seem tedious, it still gives Terraform users an avenue for importing existing resources.
https://www.terraform.io/docs/import/index.html#currently-state-only
NEW QUESTION # 62
Which of the following clouds does not have a provider maintained HashiCorp?
- A. IBM Cloud
- B. DigitalOcean
- C. OpenStack
- D. AWS
Answer: A
Explanation:
Explanation
IBM Cloud does not have a provider maintained by HashiCorp, although IBM Cloud does maintain their own Terraform provider.
https://www.terraform.io/docs/providers/index.html
NEW QUESTION # 63
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?
- A. Store the sensitive variables as plain text in a source code repository
- B. Pass variables to Terraform with a -var flag
- C. Copy the sensitive variables into your Terraform code
- D. Store the sensitive variables in a secure_vars.tf file
Answer: B
Explanation:
Explanation
https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code-1d586955ace1
NEW QUESTION # 64
Which of the following are string functions? Select three
- A. join
- B. format
- C. tonumber
- D. tostring
- E. Chomp
Answer: A,B,E
Explanation:
Explanation
tonumber and tostring are Type Conversion function
https://www.terraform.io/docs/configuration/functions.html
NEW QUESTION # 65
A provider configuration block is required in every Terraform configuration.
Example:
- A. False
- B. True
Answer: B
Explanation:
Reference: https://github.com/hashicorp/terraform/issues/17928
NEW QUESTION # 66
terraform state subcommands such as list are read-only commands, do read-only commands create state
backup files?
- A. No
- B. Yes
Answer: A
Explanation:
Explanation
Subcommands that are read-only (such as list) do not write any backup files since they aren't modifying the
state.
All terraform state subcommands that modify the state write backup files. The path of these backup file can be
controlled with -backup.
https://www.terraform.io/docs/commands/state/index.html#backups
NEW QUESTION # 67
Which of the following is an invalid variable name?
- A. var1
- B. instance_name
- C. count
- D. web
Answer: C
Explanation:
Explanation
https://www.terraform.io/intro/examples/count.html
NEW QUESTION # 68
A Terraform provider is NOT responsible for:
- A. Understanding API interactions with some service
- B. Provisioning infrastructure in multiple
- C. Exposing resources and data sources based on an APUI
- D. Managing actions to take based on resources differences
Answer: B
Explanation:
This is not a responsibility of a Terraform provider, as it does not make sense grammatically or logically. A Terraform provider is responsible for exposing resources and data sources based on an API, managing actions to take based on resource differences, and understanding API interactions with some service.
NEW QUESTION # 69
Which argument(s) are required when declaring a Terraform variable?
- A. None of the above
- B. type
- C. description
- D. All of the above
- E. default
Answer: B
NEW QUESTION # 70
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.
- A. Lets you version, reuse, and share infrastructure configuration
- B. Reduces risk of operator error
- C. Prevents manual modifications to your resources
- D. Secures your credentials
- E. Provisions the same resources at a lower cost
Answer: A,B
Explanation:
It lets you version, reuse, and share infrastructure configuration as code files, which can be stored in a source control system and integrated with your CI/CD pipeline.
It reduces risk of operator error by automating repetitive tasks and ensuring consistency across environments. IaC does not necessarily provision resources at a lower cost, secure your credentials, or prevent manual modifications to your resources - these depend on other factors such as your cloud provider, your security practices, and your access policies.
NEW QUESTION # 71
Terraform works well in Windows but a Windows server is required.
- A. False
- B. True
Answer: A
NEW QUESTION # 72
Which option can not be used to keep secrets out of Terraform configuration files?
- A. Environment variables
- B. A Terraform provider
- C. A -var flag
- D. secure string
Answer: C
Explanation:
Reference: https://secrethub.io/blog/secret-management-for-terraform/
NEW QUESTION # 73
......
100% Passing Guarantee - Brilliant TA-002-P Exam Questions PDF: https://www.fast2test.com/TA-002-P-premium-file.html
TA-002-P Dumps 2024 - NewHashiCorp Exam Questions: https://drive.google.com/open?id=1JnihhIVHF6B_Ry2QylRxd17YcQPAYbFE