The Best TA-002-P Exam Study Material and Preparation Test Question Dumps
Get Ready to Pass the TA-002-P exam Right Now Using Our HashiCorp Infrastructure Automation Exam Package
HashiCorp TA-002-P exam covers a range of topics related to Terraform, including an understanding of the basics of Terraform, how to use Terraform to manage infrastructure, and how to create and manage modules. TA-002-P exam also covers topics such as best practices for using Terraform, troubleshooting common issues, and integrating Terraform with other tools and technologies. To be successful in the exam, you will need to have a solid understanding of Terraform and be familiar with the concepts and tools involved in infrastructure automation.
NEW QUESTION # 71
True or False? terraform init cannot automatically download Community providers.
- A. True
- B. False
Answer: A
NEW QUESTION # 72
Which of the following terraform subcommands could be used to remove the lock on the state for the current configuration?
- A. state-unlock
- B. force-unlock
- C. Unlock
- D. Removing the lock on a state file is not possible
Answer: D
Explanation:
Explanation
https://www.terraform.io/docs/commands/force-unlock.html
NEW QUESTION # 73
Which of the following is not supported backend types in Terra form?
- A. manta
- B. gcs
- C. bitbucket
- D. consul
Answer: C
NEW QUESTION # 74
Terra form installs its providers during which phase?
- A. Man
- B. All of the above
- C. Init
- D. Refresh
Answer: C
Explanation:
Explanation
Providers are installed in the init phase
NEW QUESTION # 75
Terraform-specific settings and behaviors are declared in which configuration block type?
- A. resource
- B. provider
- C. terraform
- D. data
Answer: C
Explanation:
The special terraform configuration block type is used to configure some behaviors of Terraform itself, such as requiring a minimum Terraform version to apply your configuration.
Example
terraform {
required_version = "> 0.12.0"
}
https://www.terraform.io/docs/configuration/terraform.html
NEW QUESTION # 76
What is the provider for this fictitious resource?
- A. main
- B. aws
- C. test
- D. vpc
Answer: B
Explanation:
Reference: https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
NEW QUESTION # 77
The following is a snippet from a Terraform configuration file:
Which, when validated, results in the following error:
Fill in the blank in the error message with the correct string from the list below.
- A. label
- B. version
- C. alias
Explanation
https://www.terraform.io/docs/configuration/providers.html#alias-multiple-providerinstances - D. multi
Answer: C
NEW QUESTION # 78
The terraform.tfstate file always matches your currently built infrastructure.
- A. False
- B. True
Answer: A
Explanation:
Reference: https://www.terraform.io/docs/language/state/index.html
NEW QUESTION # 79
You have modified your Terraform configuration to fix a typo in the Terraform ID of a resource from
aws_security_group.http to aws_security_group.http
Which of the following commands would you run to update the ID in state without destroying the resource?
- A. terraform mv aws-security-group.htp aws-security-group.http
- B. terraform refresh
- C. terraform apply
Answer: A
Explanation:
Explanation
The terraform state mv command changes which resource address in your configuration is associated with a
particular real-world object. Use this to preserve an object when renaming a resource, or when moving a
resource into or out of a child module.
NEW QUESTION # 80
What type of block is used to construct a collection of nested configuration blocks?
- A. nesting
- B. dynamic
- C. repeated
- D. for_each
Answer: B
NEW QUESTION # 81
You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the
example.
What can you use to avoid writing 42 different nested ingress config blocks by hand?
- A. A dynamic block
- B. A for block
- C. A count loop
- D. A for each block
Answer: A
Explanation:
Explanation
A dynamic block acts much like a for expression, but produces nested blocks instead of a complex typed
value. It iterates over a given complex value, and generates a nested block for each element of that complex
value. Reference: https://www.terraform.io/language/expressions/dynamic-blocks
NEW QUESTION # 82
When Terraform needs to be installed in a location where it does not have internet access to download the
installer and upgrades, the installation is generally known as to be __________.
- A. non-traditional
- B. a private install
- C. disconnected
- D. air-gapped
Answer: A
Explanation:
Explanation
A Terraform Enterprise install that is provisioned on a network that does not have Internet access is generally
known as an air-gapped install. These types of installs require you to pull updates, providers, etc. from external
sources vs. being able to download them directly.
NEW QUESTION # 83
While Terraform is generally written using the HashiCorp Configuration Language (HCL), what other syntax
can Terraform are expressed in?
- A. YAML
- B. TypeScript
- C. JSON
- D. XML
Answer: C
Explanation:
Explanation
The constructs in the Terraform language can also be expressed in JSON syntax, which is harder for humans to
read and edit but easier to generate and parse programmatically.
NEW QUESTION # 84
Why is it a good idea to declare the required version of a provider in a Terraform configuration file?
1. terraform
2. {
3. required_providers
4. {
5. aws = "~> 1.0"
6. }
7. }
- A. To ensure that the provider version matches the version of Terraform you are using.
- B. Providers are released on a separate schedule from Terraform itself; therefore a newer version could
introduce breaking changes. - C. To match the version number of your application being deployed via Terraform.
- D. To remove older versions of the provider.
Answer: B
NEW QUESTION # 85
Which of these options is the most secure place to store secrets foe connecting to a Terraform remote backend?
- A. None of above
- B. Defined in a connection configuration outside of Terraform
- C. Inside the backend block within the Terraform configuration
- D. Defined in Environment variables
Answer: D
NEW QUESTION # 86
What does state locking accomplish?
- A. Blocks Terraform commands from modifying the state file
- B. Copies the state file from memory to disk
- C. Encrypts any credentials stored within the state file
- D. Prevents accidental deletion of the state file
Answer: A
Explanation:
Explanation
If supported by your backend, Terraform will lock your state for all operations that could write state. This
prevents others from acquiring the lock and potentially corrupting your state. Source:
https://www.terraform.io/language/state/locking
NEW QUESTION # 87
Which of the following is not true of Terraform providers?
- A. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
- B. Some providers are maintained by HashiCorp
- C. None of the above
- D. Providers can be maintained by a community of users
- E. Providers can be written by individuals
Answer: A
Explanation:
Reference: https://jayendrapatil.com/terraform-cheat-sheet/#Terraform_Read_and_write_configuration
NEW QUESTION # 88
You want terraform plan and apply to be executed in Terraform Cloud's run environment but the output is to
be streamed locally. Which one of the below you will choose?
- A. This can be done using any of the local or remote backends
- B. Terraform Backends
- C. Local Backends
- D. Remote Backends
Answer: D
Explanation:
Explanation
The remote backend stores Terraform state and may be used to run operations in Terraform Cloud.
When using full remote operations, operations like terraform plan or terraform apply can be executed in
Terraform Cloud's run environment, with log output streaming to the local terminal.
Remote plans and applies use variable values from the associated Terraform Cloud workspace.
https://www.terraform.io/docs/backends/types/remote.html
NEW QUESTION # 89
......
Get Special Discount Offer of TA-002-P Certification Exam Sample Questions and Answers: https://braindumps.testpdf.com/TA-002-P-practice-test.html
