DumpExams is an authorized company offering valid and latest dump exams & dumps VCE materials. Our dump exams & dumps VCE materials are high-quality; our passing rate is higher than others.

HashiCorp TA-002-P Certification Exam Dumps with 324 Practice Test Questions [Q119-Q143]

Share

HashiCorp TA-002-P Certification Exam Dumps with 324 Practice Test Questions

New TA-002-P Exam Dumps with High Passing Rate


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 Cloud capabilities
  • Infrastructure as code (IaC) concepts
  • Terraform CLI (outside of core workflow)
  • Read, generate, and modify the arrangement
  • Execute and maintain state
  • Terraform’s purpose (vs other IaC)
  • Terraform basics
  • Terraform modules
  • Terraform workflow

How to schedule HashiCorp Certified: Terraform Associate TA-002-P Professional Exam

To apply for the HashiCorp Certified: Terraform Associate TA-002-P Professional Exam, You have to follow these steps:

• Step 1: Go to the HashiCorp Certified: Terraform Associate TA-002-P Professional Official Site. You must first create an account, use your email address to register. You must purchase your training through your local distributor. If you are a partner, you must first create an account on the Partner Portal. You must use your company email address to register. • Step 2: Read the instruction Carefully • Step 3: Follow the given steps • Step 4: Apply for the HashiCorp Certified: Terraform Associate TA-002-P-Professional Exam


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:

  • Commence training terraform with the console
  • Study to Terraform with HashiCorp’s official learning platform
  • Learn the Terraform Core workflow
  • Learn Terraform Cloud interactively with Katacoda
  • Study Terraform Basics
  • Go through resource for preparing for the examination wrote by Ned Bellavance and Adin Ermie available on Leanpub
  • Go through HashiCorp’s resource library
  • Enroll in a course from Udemy created by Zeal Vora for both learning Terraform & qualifying for the examination
  • Understand basic things about Terraform Cloud & Terraform Enterprise

 

NEW QUESTION 119
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. Remote Backends
  • D. Local Backends

Answer: C

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 120
You have written a terraform IaC script which was working till yesterday , but is giving some vague error from today , which you are unable to understand . You want more detailed logs that could potentially help you troubleshoot the issue , and understand the root cause. What can you do to enable this setting? Please note , you are using terraform OSS.

  • A. Enable TF_LOG to the log level DEBUG, and then set TF_LOG_PATH to the log sink file location. Terraform debug logs will be dumped to the sink path, even in terraform OSS.
  • B. Terraform OSS can push all its logs to a syslog endpoint. As such, you have to set up the syslog sink, and enable TF_LOG_PATH env variable to the syslog endpoint and all logs will automatically start streaming.
  • C. Detailed logs are not available in terraform OSS, except the crash message. You need to upgrade to terraform enterprise for this point.
  • D. Enable the TF_LOG_PATH to the log sink file location, and logging output will automatically be stored there.

Answer: A

Explanation:
Terraform has detailed logs which can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr.
You can set TF_LOG to one of the log levels TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs. TRACE is the most verbose and it is the default if TF_LOG is set to something other than a log level name.
To persist logged output you can set TF_LOG_PATH in order to force the log to always be appended to a specific file when logging is enabled. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.

 

NEW QUESTION 121
Your team uses terraform OSS . You have created a number of resuable modules for important , independent network components that you want to share with your team to enhance consistency . What is the correct option/way to do that?

  • A. Terraform modules cannot be shared in OSS version . Each developer needs to maintain their own modules and leverage them in the main tf file.
  • B. Upload your modules with proper versioning in the terraform public module registry . Terraform OSS is directly integrated with the public module registry , and can reference the modules from the code in the main tf file.
  • C. Store your modules in a NAS/ shared file server , and ask your team members to directly reference the code from there. This is the only viable option in terraform OSS ,which is better than individually maintaining module versions for every developer.
  • D. Terraform module sharing is only available in Enterprise version via terraform private module registry , so no way to enable it in OSS version.

Answer: B

Explanation:
Explanation
Software development encourages code reuse through reusable artifacts, such as libraries, packages and modules. Most programming languages enable developers to package and publish these reusable components and make them available on a registry or feed. For example, Python has Python Package Index and PowerShell has PowerShell Gallery.
For Terraform users, the Terraform Registry enables the distribution of Terraform modules, which are reusable configurations. The Terraform Registry acts as a centralized repository for module sharing, making modules easier to discover and reuse.
The Registry is available in two variants:
* Public Registry houses official Terraform providers -- which are services that interact with an API to expose and manage a specific resource -- and community-contributed modules.
* Private Registry is available as part of the Terraform Cloud, and can host modules internally within an organization.
https://www.terraform.io/docs/registry/index.html

 

NEW QUESTION 122
You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?

  • A. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
  • B. Run terraform destroy then terraform apply and look for the IP address in stdout
  • C. In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
  • D. Run terraform output ip_address to view the result

Answer: D

Explanation:
Reference: https://www.terraform.io/docs/cli/commands/output.html

 

NEW QUESTION 123
You have created two workspaces PROD and DEV. You have switched to DEV and provisioned DEV infrastructure from this workspace. Where is your state file stored?

  • A. terraform.tfstate
  • B. terraform.tfstate.d
  • C. terraform.tfstate.DEV
  • D. terraform.d

Answer: B

Explanation:
Explanation
Terraform stores the workspace states in a directory called terraform.tfstate.d. This directory should be treated similarly to default workspace state file terraform.tfstate main.tf provider.tf terraform.tfstate.d DEV terraform.tfstate # DEV workspace state file PROD terraform.tfstate # PROD workspace state file terraform.tfvars # Default workspace state file variables.tf

 

NEW QUESTION 124
Terraform providers are always installed from the Internet.

  • A. False
  • B. True

Answer: A

Explanation:
Terraform configurations must declare which providers they require, so that Terraform can install and use them.

 

NEW QUESTION 125
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.

  • A. False
  • B. True

Answer: B

Explanation:
Reference: https://www.terraform.io/docs/internals/debugging.html

 

NEW QUESTION 126
You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows:

What meta-argument do you need to configure in a resource block to deploy the resource to the "us-west-2" AWS region?

  • A. provider = west
  • B. alias = west
  • C. alias = aws.west
  • D. provider = aws.west

Answer: B

 

NEW QUESTION 127
True or False. The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. If drift is detected between the real-world infrastructure and the last known-state, it will modify the infrastructure to correct the drift.

  • A. False
  • B. True

Answer: A

Explanation:
Explanation
https://www.terraform.io/docs/commands/refresh.html

 

NEW QUESTION 128
Refer to the below code where developer is outputting the value of the database password but has used sensitive parameter to hide the output value in the CLI.
output "db_password" { value = aws_db_instance.db.password description = "The password for logging in to the database." sensitive = true} Since sensitive is set to true, the value associated with db password will not be present in state file as plain-text?

  • A. False
  • B. True

Answer: A

Explanation:
Explanation
Sensitive output values are still recorded in the state, and so will be visible to anyone who is able to access the state data.

 

NEW QUESTION 129
Multiple providers can be declared within a single Terraform configuration file.

  • A. False
  • B. True

Answer: B

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

 

NEW QUESTION 130
Only the user that generated a plan may apply it.

  • A. False
  • B. True

Answer: B

Explanation:
The optional -out argument can be used to save the generated plan to a file for later execution with terraform apply, which can be useful when running Terraform in automation.
Reference: https://learn.hashicorp.com/tutorials/terraform/automate-terraform

 

NEW QUESTION 131
What is the result of the following terraform function call?

  • A. False
  • B. True

Answer: A

Explanation:
Explanation
https://www.terraform.io/docs/configuration/functions/index.html

 

NEW QUESTION 132
Which of the below configuration file formats are supported by Terraform? (Select TWO)

  • A. HCL
  • B. YAML
  • C. JSON
  • D. Go
  • E. Node

Answer: A,C

 

NEW QUESTION 133
A terraform apply can not _________ infrastructure.

  • A. import
  • B. destroy
  • C. change
  • D. provision

Answer: C

 

NEW QUESTION 134
Which one of the following command will rewrite Terraform configuration files to a canonical format and style.

  • A. terraform init
  • B. terraform graph -h
  • C. terraform graph
  • D. terraform fmt

Answer: D

Explanation:
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of the Terrra Terraform language style conventions, along with other minor adjustments for readability.

 

NEW QUESTION 135
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. output.tf
  • C. input.tf
  • D. terraform.tfstate
  • E. Any files with names ending in .auto.tfvars or .auto.tfvars.json.

Answer: A,D,E

Explanation:
The .gitignore file should be configured to ignore Terraform files that either contain sensitive data or are not required to save.
Terraform state (terraform.tfstate) can contain sensitive data, depending on the resources in use and your definition of "sensitive." The state contains resource IDs and all resource attributes. For resources such as databases, this may contain initial passwords.
When using local state, state is stored in plain-text JSON files.
The terraform.tfvars file may contain sensitive data, such as passwords or IP addresses of an environment that you may not want to share with others.

 

NEW QUESTION 136
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

  • A. It will happen automatically
  • B. Manually update the state fire
  • C. Run terraform import
  • D. Run terraform refresh

Answer: A

 

NEW QUESTION 137
Select the most accurate statement to describe the Terraform language from the following list.

  • A. Terraform is an immutable, procedural, Infrastructure as Code configuration management language based on Hashicorp Configuration Language, or optionally JSON.
  • B. Terraform is a mutable, declarative, Infrastructure as Code configuration management language based on Hashicorp Configuration Language, or optionally JSON.
  • C. Terraform is an immutable, declarative, Infrastructure as Code provisioning language based on Hashicorp Configuration Language, or optionally JSON.
  • D. Terraform is a mutable, procedural, Infrastructure as Code provisioning language based on Hashicorp Configuration Language, or optionally YAML.

Answer: C

Explanation:
Explanation
Terraform is not a configuration management tool - https://www.terraform.io/intro/vs/chefpuppet.html Terraform is a declarative language - https://www.terraform.io/docs/configuration/index.html Terraform supports a syntax that is JSON compatible -
https://www.terraform.io/docs/configuration/syntax-json.html
Terraform is primarily designed on immutable infrastructure principles -
https://www.hashicorp.com/resources/what-is-mutable-vs-immutable-infrastructure

 

NEW QUESTION 138
What does the default "local" Terraform backend store?

  • A. Provider plugins
  • B. tfplan files
  • C. State file
  • D. Terraform binary

Answer: C

Explanation:
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference: https://www.terraform.io/docs/language/settings/backends/local.html

 

NEW QUESTION 139
Which Terraform command will check and report errors within modules, attribute names, and value types to make sure they are syntactically valid and internally consistent?

  • A. terraform show
  • B. terraform format
  • C. terraform fmt
  • D. terraform validate

Answer: D

Explanation:
Explanation
The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc.
Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including the correctness of attribute names and value types.
It is safe to run this command automatically, for example as a post-save check in a text editor or as a test step for a re-usable module in a CI system.

 

NEW QUESTION 140
Multiple configurations for the same provider can be used in a single configuration file.

  • A. False
  • B. True

Answer: B

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 141
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 142
Which of the below configuration file formats are supported by Terraform? (Select TWO)

  • A. HCL
  • B. YAML
  • C. JSON
  • D. Go
  • E. Node

Answer: A,C

Explanation:
Explanation
Terraform supports both HashiCorp Configuration Language (HCL) and JSON formats for configurations.
https://www.terraform.io/docs/configuration/

 

NEW QUESTION 143
......

Get TA-002-P Braindumps & TA-002-P Real Exam Questions: https://www.dumpexams.com/TA-002-P-real-answers.html

HashiCorp TA-002-P Actual Questions and Braindumps: https://drive.google.com/open?id=17Xf3CUj-lnI9q2X9KL2jkKR91A65nLN7