[Jan 09, 2022] Get New TA-002-P Certification Practice Test Questions Exam Dumps
Real TA-002-P Exam Dumps Questions Valid TA-002-P Dumps PDF
NEW QUESTION 77
Environment variables can be used to set variables. The environment variables must be in the format "____"_<variablename>. Select the correct prefix string from the following list.
- A. TF_VAR
- B. TF_VAR_ENV
- C. TF_VAR_
- D. TF_CLI_ARGS
Answer: C
Explanation:
Environment variables can be used to set variables. The environment variables must be in the format TF_VAR_name and this will be checked last for a value. For example:
export TF_VAR_region=us-west-1
export TF_VAR_ami=ami-049d8641
export TF_VAR_alist='[1,2,3]'
export TF_VAR_amap='{ foo = "bar", baz = "qux" }'
https://www.terraform.io/docs/commands/environment-variables.html
NEW QUESTION 78
Command terraform refresh will update state file?
- A. False
- B. True
Answer: B
Explanation:
Explanation
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update the state file.
This does not modify infrastructure, but does modify the state file. If the state is changed, this may cause changes to occur during the next plan or apply.
https://www.terraform.io/docs/commands/refresh.html
NEW QUESTION 79
What Terraform feature is shown in the example below?
- A. data source
- B. dynamic block
- C. local values
- D. conditional expression
Answer: B
NEW QUESTION 80
How is terraform import run?
- A. All of the above
- B. By an explicit call
- C. As a part of terraform init
- D. As a part of terraform refresh
- E. As a part of terraform plan
Answer: E
NEW QUESTION 81
Which of the below command will upgrade the provider version to the latest acceptable one?
- A. terraform init -upgrade
- B. terraform plan upgrade
- C. terraform provider -upgrade
- D. terraform init -update
Answer: A
Explanation:
To upgrade to the latest acceptable version of each provider, run terraform init -upgrade. This command also upgrades to the latest versions of all Terraform modules.
https://www.terraform.io/docs/configuration/providers.html
NEW QUESTION 82
lookup retrieves the value of a single element from which of the below data type?
- A. list
- B. string
- C. map
- D. set
Answer: C
Explanation:
https://www.terraform.io/docs/configuration/functions/lookup.html
NEW QUESTION 83
Which of the following is allowed as a Terraform variable name?
- A. source
- B. count
- C. name
- D. version
Answer: C
NEW QUESTION 84
What command does Terraform require the first time you run it within a configuration directory?
- A. terraform plan
- B. terraform init
- C. terraform import
- D. terraform workspace
Answer: B
Explanation:
Explanation
terraform init command is used to initialize a working directory containing Terraform configuration files.
Reference: https://www.terraform.io/docs/cli/commands/init.html
NEW QUESTION 85
State is a requirement for Terraform to function
- A. False
- B. True
Answer: B
Explanation:
Explanation
State is a necessary requirement for Terraform to function. It is often asked if it is possible for Terraform to work without state, or for Terraform to not use state and just inspect cloud resources on every run.
Purpose of Terraform State
State is a necessary requirement for Terraform to function. It is often asked if it is possible for Terraform to work without state, or for Terraform to not use state and just inspect cloud resources on every run. This page will help explain why Terraform state is required.
As you'll see from the reasons below, state is required. And in the scenarios where Terraform may be able to get away without state, doing so would require shifting massive amounts of complexity from one place (state) to another place (the replacement concept).
1. Mapping to the Real World
Terraform requires some sort of database to map Terraform config to the real world. When you have a resource resource "aws_instance" "foo" in your configuration, Terraform uses this map to know that instance i- abcd1234 is represented by that resource.
For some providers like AWS, Terraform could theoretically use something like AWS tags. Early prototypes of Terraform actually had no state files and used this method. However, we quickly ran into problems. The first major issue was a simple one: not all resources support tags, and not all cloud providers support tags.
Therefore, for mapping configuration to resources in the real world, Terraform uses its own state structure.
2. Metadata
Alongside the mappings between resources and remote objects, Terraform must also track metadata such as resource dependencies.
Terraform typically uses the configuration to determine dependency order. However, when you delete a resource from a Terraform configuration, Terraform must know how to delete that resource. Terraform can see that a mapping exists for a resource not in your configuration and plan to destroy. However, since the configuration no longer exists, the order cannot be determined from the configuration alone.
To ensure correct operation, Terraform retains a copy of the most recent set of dependencies within the state.
Now Terraform can still determine the correct order for destruction from the state when you delete one or more items from the configuration.
One way to avoid this would be for Terraform to know a required ordering between resource types. For example, Terraform could know that servers must be deleted before the subnets they are a part of. The complexity for this approach quickly explodes, however: in addition to Terraform having to understand the ordering semantics of every resource for every cloud, Terraform must also understand the ordering across providers.
Terraform also stores other metadata for similar reasons, such as a pointer to the provider configuration that was most recently used with the resource in situations where multiple aliased providers are present.
3. Performance
In addition to basic mapping, Terraform stores a cache of the attribute values for all resources in the state. This is the most optional feature of Terraform state and is done only as a performance improvement.
When running a terraform plan, Terraform must know the current state of resources in order to effectively determine the changes that it needs to make to reach your desired configuration.
For small infrastructures, Terraform can query your providers and sync the latest attributes from all your resources. This is the default behavior of Terraform: for every plan and apply, Terraform will sync all resources in your state.
For larger infrastructures, querying every resource is too slow. Many cloud providers do not provide APIs to query multiple resources at once, and the round trip time for each resource is hundreds of milliseconds. On top of this, cloud providers almost always have API rate limiting so Terraform can only request a certain number of resources in a period of time. Larger users of Terraform make heavy use of the -refresh=false flag as well as the -target flag in order to work around this. In these scenarios, the cached state is treated as the record of truth.
4. Syncing
In the default configuration, Terraform stores the state in a file in the current working directory where Terraform was run. This is okay for getting started, but when using Terraform in a team it is important for everyone to be working with the same state so that operations will be applied to the same remote objects.
Remote state is the recommended solution to this problem. With a fully-featured state backend, Terraform can use remote locking as a measure to avoid two or more different users accidentally running Terraform at the same time, and thus ensure that each Terraform run begins with the most recent updated state.
NEW QUESTION 86
A Terraform provider is not responsible for:
- A. Exposing resources and data sources based on an API
- B. Managing actions to take based on resource differences
- C. Provisioning infrastructure in multiple clouds
- D. Understanding API interactions with some service
Answer: B
NEW QUESTION 87
Workspaces in Terraform provides similar functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.
- A. False
- B. True
Answer: A
Explanation:
https://www.terraform.io/docs/cloud/migrate/workspaces.html
Workspaces, managed with the terraform workspace command, aren't the same thing as Terraform Cloud's workspaces. Terraform Cloud workspaces act more like completely separate working directories; CLI workspaces are just alternate state files.
NEW QUESTION 88
Dawn has created the below child module. Without changing the module, can she override the instance_type from t2.micro to t2.large form her code while calling this module?
1. resource "aws_instance" "myec2"
2. {
3. ami = "ami-082b5a644766e0e6f"
4. instance_type = "t2.micro
5. }
- A. No
- B. YES
Answer: A
Explanation:
Explanation
As the instance_type is hard-coded in source module, you will not be able to change its value from destination module. Instead of hard-coding you should use variable with default values.
NEW QUESTION 89
In Terraform Enterprise, a workspace can be mapped to how many VCS repos?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
Explanation:
Explanation
A workspace can only be configured to a single VCS repo, however, multiple workspaces can use the same repo.
https://www.terraform.io/docs/cloud/workspaces/vcs.html
NEW QUESTION 90
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.
- A. terraform state show
- B. terraform plan
- C. terraform providers
- D. terraform provider
Answer: C
Explanation:
Explanation
Use the terraform providers command to view the specified version constraints for all providers used in the current configuration.
https://www.terraform.io/docs/configuration/providers.html
NEW QUESTION 91
Which of the following is not a valid Terraform string function?
- A. join
- B. replace
- C. format
- D. tostring
Explanation
https://www.terraform.io/docs/configuration/functions/tostring.html
Answer: D
NEW QUESTION 92
Which of the following is considered a Terraform plugin?
- A. Terraform tooling
- B. Terraform language
- C. Terraform logic
- D. Terraform provider
Answer: D
Explanation:
Terraform is built on a plugin-based architecture. All providers and provisioners that are used in Terraform configurations are plugins, even the core types such as AWS and Heroku. Users of Terraform are able to write new plugins in order to support new functionality in Terraform.
https://www.terraform.io/docs/plugins/basics.html
NEW QUESTION 93
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
- A. Secure variable storage
- B. Using the workspace as a data source
- C. Dry runs with terraform plan
- D. Support for multiple cloud providers
Answer: D
Explanation:
Reference: https://www.terraform.io/docs/language/providers/configuration.html
NEW QUESTION 94
1. resource "aws_s3_bucket" "example" {
2. bucket = "my-test-s3-terraform-bucket"
3. ...} resource "aws_iam_role" "test_role" {
4. name = "test_role"
5. ...}
Due to the way that the application code is written, the s3 bucket must be created before the test role is created, otherwise there will be a problem. How can you ensure that?
- A. This is not possible to control in terraform . Terraform will take care of it in a native way , and create a dependency graph that is best suited for the parallel resource creation.
- B. Create 2 separate terraform config scripts , and run them one by one , 1 for s3 bucket , and another for IAM role , run the S3 bucket script first.
- C. Add explicit dependency using depends_on . This will ensure the correct order of resource creation.
- D. This will already be taken care of by terraform native implicit dependency. Nothing else needs to be done from your end.
Answer: C
Explanation:
Explanation
Implicit dependency works only if there is some reference of one resource to another. Explicit dependency is the option here.
NEW QUESTION 95
John is writing a module and within the module, there are multiple places where he has to use the same conditional expression but he wants to avoid repeating the same values or expressions multiple times in a configuration,. What is a better approach to dealing with this?
- A. Functions
- B. Variables
- C. Local Values
- D. Expressions
Answer: C
Explanation:
A local value assigns a name to an expression, allowing it to be used multiple times within a module without repeating it.
https://www.terraform.io/docs/configuration/locals.html
NEW QUESTION 96
Dawn has created the below child module. Without changing the module, can she override the instance_type from t2.micro to t2.large form her code while calling this module?
1. resource "aws_instance" "myec2"
2. {
3. ami = "ami-082b5a644766e0e6f"
4. instance_type = "t2.micro
5. }
- A. No
- B. YES
Answer: A
Explanation:
As the instance_type is hard-coded in source module, you will not be able to change its value from destination module. Instead of hard-coding you should use variable with default values.
NEW QUESTION 97
Which of the following is not a valid Terraform string function?
- A. join
- B. replace
- C. format
- D. tostring
Answer: D
Explanation:
Explanation
https://www.terraform.io/docs/configuration/functions/tostring.html
NEW QUESTION 98
How would you reference the "name" value of the second instance of this fictitious resource?
- A. aws_instance.web[1]
- B. aws_instance.web.*.name
- C. aws_instance.web[1].name
- D. aws_instance.web[2].name
- E. element(aws_instance.web, 2)
Answer: E
Explanation:
Reference: https://www.terraform.io/docs/configuration-0-11/interpolation.html
NEW QUESTION 99
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead.
What are the two things you must do to achieve this? (Choose two.)
- A. Run the terraform import-gcp command
- B. Write Terraform configuration for the existing VMs
- C. Use the terraform import command for the existing VMs
- D. Provision new VMs using Terraform with the same VM names
Answer: A,C
Explanation:
The terraform import command is used to import existing infrastructure.
Import existing Google Cloud resources into Terraform with Terraformer.
Reference: https://www.terraform.io/docs/cli/import/usage.html
https://cloud.google.com/docs/terraform
NEW QUESTION 100
Which of the following represents a feature of Terraform Cloud that is NOT free to customers?
- A. Roles and Team Management
- B. VCS Integration
- C. Private Module Registry
- D. WorkSpace Management
Answer: A
Explanation:
Explanation
Role Based Access Controls (RBAC) for controlling permissions for who has access to what configurations within an organization and it is not free to customers.
https://www.hashicorp.com/products/terraform/pricing/
NEW QUESTION 101
......
How to Prepare for HashiCorp Certified: Terraform Associate TA-002-P Professional Exam
Preparation Guide for HashiCorp Certified: Terraform Associate TA-002-P Professional Exam
Introduction for HashiCorp Certified: Terraform Associate TA-002-P Professional Exam
This guide provides a step by step framework of the HashiCorp Certified: Terraform Associate TA-002-P Professional course exam including a broad array of essentials of the test, the exam design, themes, test complexities and readiness techniques, and the intended interest group profile. Thus, we prepare various HashiCorp Certified: Terraform Associate TA-002-P PROFESSIONAL dumps as we understand understudy determinations. Our content, helps candidatesâ total assessments.
Cloud engineers can utilize the Terraform Associate exam from HashiCorp to check their basic infrastructure automation abilities. Terraform associate is a foundational level of certification that assesses an individual’s knowledge of fundamental concepts and skills on Terraform OSS and the characteristics that exist on Terraform Cloud & Terraform Enterprise packages.
The Terraform Associate certification is for Cloud Engineers having experience in operations, IT, who recognize the fundamental concepts and abilities linked with open-source HashiCorp Terraform. Applicants will be best equipped for this exam if they have professional expertise using Terraform in production, but performing the exam in a personal demo atmosphere may also be adequate. This individual knows which enterprise features exist and what can and cannot be made using the open-source edition.
After finishing this course, the candidate will be able to:
- Be familiar with Terraform with HashiCorpâs official learning platform
- Understand basic things about Terraform Cloud & Terraform Enterprise
- Use Terraform Cloud interactively with Katacoda
- Understand the Terraform Core workflow
- Have knowledge of Terraform Basics
- Use terraform with the console
The contents of HASHICORP TA-002 practice exam and HASHICORP TA-002 practice tests will help candidates to prepare for this exam.
Aruba Networks Certified: Mobility Associate-Professional Exam Certified Professional salary
The estimated average salary of HashiCorp Certified: Terraform Associate TA-002-P Professional Exam is listed below:
- India: 7,199,4 INR
- England: 71,460 POUND
- United States: 100,146 USD
- Europe: 88,032 EURO
These salaries are calculated at the time of writing according to the currency rates.
What is the cost of HashiCorp Certified: Terraform Associate TA-002-P Professional Exam
The cost of the HashiCorp Certified: Terraform Associate TA-002-P Exam is 70.50 USD, it also includes locally applicable taxes and fees . For more information related to exam price, please visit the official as the cost of exams may be subjected to vary county-wise
⢠Duration of Exam: 60 minutes ⢠Number of Questions: 30 ⢠No negative marking for wrong answers ⢠Passing score: 72% ⢠Type of Questions: Multiple choice (MCQs), multiple answers. Most questions are scenario based. ⢠Language of Exam: English ⢠Product version: FortiNAC 8.5
TA-002-P Exam Dumps - PDF Questions and Testing Engine: https://www.realexamfree.com/TA-002-P-real-exam-dumps.html
Latest TA-002-P Exam Dumps for Pass Guaranteed: https://drive.google.com/open?id=1s6W76R-G93OV0rXpSXeC5U_sBQu2cBbN

