[Sep 09, 2022] 100% Latest Most updated TA-002-P Questions and Answers [Q144-Q160]

Share

[Sep 09, 2022] 100% Latest Most updated TA-002-P Questions and Answers

Try with 100% Real Exam Questions and Answers


Sample Questions

During a terraform plan, a resource is successfully created but eventually fails during provisioning. What happens to the resource?

  • The resource is marked as tainted
  • It is automatically deleted
  • Terraform attempts to provision the resource up to three times before exiting with an error
  • The terraform plan is rolled back and all provisioned resources are removed

Explanation

If a resource successfully creates but fails during provisioning, Terraform will error and mark the resource as ‘tainted'. A resource that is tainted has been physically created, but can't be considered safe to use since provisioning failed. Terraform also does not automatically roll back and destroy the resource during the apply when the failure happens, because that would go against the execution plan: the execution plan would've said a resource will be created, but does not say it will ever be deleted.

True or False? When using the Terraform provider for Vault, the tight integration between these HashiCorp tools provides the ability to mask secrets in the terraform plan and state files.

  • False
  • True

Explanation

Currently, Terraform has no mechanism to redact or protect secrets that are returned via data sources, so secrets read via this provider will be persisted into the Terraform state, into any plan files, and in some cases in the console output produced while planning and applying. These artifacts must, therefore, all be protected accordingly.


HashiCorp TA-002-P Exam Syllabus Topics:

TopicDetails
Topic 1
  • Destroy Terraform managed infrastructure (terraform destroy)
  • Given a scenario: choose when to use terraform fmt to format code
Topic 2
  • Given a scenario: choose when to use terraform workspace to create workspaces
  • Describe effect of Terraform refresh on state
Topic 3
  • Execute changes to infrastructure with Terraform (terraform apply)
  • Handle Terraform and provider installation and versioning
Topic 4
  • Describe secure secret injection best practice
  • Use resource addressing and resource parameters to connect resources together
Topic 5
  • Given a scenario: choose when to use terraform taint to taint Terraform resources
  • Handle backend authentication methods
Topic 6
  • Discover modules from the public Terraform Module Registry
  • Initialize a Terraform working directory (terraform init)
Topic 7
  • Given a scenario: choose when to enable verbose logging and what the outcome
  • value is
  • Interact with module inputs and outputs
Topic 8
  • Describe backend block in configuration and best practices for partial configurations
  • Demonstrate using multiple providers
Topic 9
  • Explain when to use and not use provisioners and when to use local-exec or remote-exec
  • Describe advantages of IaC patterns
Topic 10
  • Given a scenario: choose when to use terraform state to view Terraform state
  • Describe plugin based architecture
Topic 11
  • Use Terraform built-in functions to write configuration
  • Generate and review an execution plan for Terraform (terraform plan)
Topic 12
  • Given a scenario: choose when to use terraform import to import existing infrastructure into your Terraform state
  • Understand Terraform basics
Topic 13
  • Describe the benefits of Sentinel, registry, and workspaces
  • Describe variable scope within modules
  • child modules
Topic 14
  • Explain multi-cloud and provider-agnostic benefits
  • Understand infrastructure as code (IaC) concepts
Topic 15
  • Create and differentiate resource and data configuration
  • Understand the use of collection and structural types


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

 

NEW QUESTION 144
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?

  • A. List
  • B. Map
  • C. Object
  • D. Tuple

Answer: C,D

Explanation:
Explanation
Structural type of variable allows multiple values of several distinct types to be grouped together as a single value. They require a schema as an argument, to specify which types are allowed for which elements.
https://www.terraform.io/docs/configuration/types.html

 

NEW QUESTION 145
Module variable assignments are inherited from the parent module and do not need to be explicitly set.

  • A. True
  • B. False

Answer: B

 

NEW QUESTION 146
Which argument(s) are required when declaring a Terraform variable?

  • A. description
  • B. default
  • C. None of the above
  • D. All of the above
  • E. type

Answer: E

 

NEW QUESTION 147
Terraform works well in Windows but a Windows server is required.

  • A. True
  • B. False

Answer: B

Explanation:
Explanation
You may see this question in actual exam. Please remember : Terraform does not require GO language to be installed as a prerequisite and it does not require a Windows Server as well.

 

NEW QUESTION 148
If you enable TF_LOG = DEBUG, the log will be stored in syslog.log file in the currect directory.

  • A. True
  • B. False

Answer: B

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

 

NEW QUESTION 149
What does the command terraform fmt do?

  • A. Updates the font of the configuration file to the official font supported by HashiCorp.
  • B. Formats the state file in order to ensure the latest state of resources can be obtained.
  • C. Deletes the existing configuration file.
  • D. Rewrite Terraform configuration files to a canonical format and style.

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 Terraform language style conventions, along with other minor adjustments for readability.
Other Terraform commands that generate Terraform configuration will produce configuration files that conform to the style imposed by terraform fmt, so using this style in your own files will ensure consistency.
https://www.terraform.io/docs/commands/fmt.html

 

NEW QUESTION 150
What are some of the problems of how infrastructure was traditionally managed before Infrastructure as Code? (select three)

  • A. Pointing and clicking in a management console is a scalable approach and reduces human error as businesses are moving to a multi-cloud deployment model
  • B. Requests for infrastructure or hardware required a ticket, increasing the time required to deploy applications
  • C. Traditionally managed infrastructure can't keep up with cyclic or elastic applications
  • D. Traditional deployment methods are not able to meet the demands of the modern business where resources tend to live days to weeks, rather than months to years

Answer: B,C,D

Explanation:
Businesses are making a transition where traditionally-managed infrastructure can no longer meet the demands of today's businesses. IT organizations are quickly adopting the public cloud, which is predominantly API-driven. To meet customer demands and save costs, application teams are architecting their applications to support a much higher level of elasticity, supporting technology like containers and public cloud resources. These resources may only live for a matter of hours; therefore the traditional method of raising a ticket to request resources is no longer a viable option Pointing and clicking in a management console is NOT scale and increases the change of human error.

 

NEW QUESTION 151
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. YES
  • B. No

Answer: B

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 152
Consider the following Terraform 0.12 configuration snippet:
1. variable "vpc_cidrs" {
2. type = map
3. default = {
4. us-east-1 = "10.0.0.0/16"
5. us-east-2 = "10.1.0.0/16"
6. us-west-1 = "10.2.0.0/16"
7. us-west-2 = "10.3.0.0/16"
8. }
9. }
10.
11. resource "aws_vpc" "shared" {
12. cidr_block = _____________
13. }
How would you define the cidr_block for us-east-1 in the aws_vpc resource using a variable?

  • A. vpc_cidrs["us-east-1"]
  • B. var.vpc_cidrs["us-east-1"]
  • C. var.vpc_cidrs.0
  • D. var.vpc_cidrs[0]

Answer: B

 

NEW QUESTION 153
Which of the following clouds does not have a provider maintained HashiCorp?

  • A. OpenStack
  • B. DigitalOcean
  • C. AWS
  • D. IBM Cloud

Answer: D

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 154
Terraform variables and outputs that set the "description" argument will store that description in the state file.

  • A. True
  • B. False

Answer: B

Explanation:
Explanation/Reference: https://www.terraform.io/docs/language/values/outputs.html

 

NEW QUESTION 155
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. True
  • B. False

Answer: B

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

 

NEW QUESTION 156
A Terraform provisioner must be nested inside a resource configuration block.

  • A. False
  • B. True

Answer: B

Explanation:
Explanation
Most provisioners require access to the remote resource via SSH or WinRM, and expect a nested connection block with details about how to connect.
Reference: https://www.terraform.io/docs/language/resources/provisioners/connection.html

 

NEW QUESTION 157
Terraform works well in Windows but a Windows server is required.

  • A. True
  • B. False

Answer: B

 

NEW QUESTION 158
When using a module block to reference a module stored on the public Terraform Module Registry such as:

How do you specify version 1.0.0?

  • A. Add version = "1.0.0" attribute to module block
  • B. Nothing - modules stored on the public Terraform Module Registry always default to version 1.0.0
  • C. Modules stored on the public Terraform Module Registry do not support versioning
  • D. Append ?ref=v1.0.0 argument to the source path

Answer: C

 

NEW QUESTION 159
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. False
  • B. True

Answer: B

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

 

NEW QUESTION 160
......

New HashiCorp TA-002-P Dumps & Questions: https://www.prepawayete.com/HashiCorp/TA-002-P-practice-exam-dumps.html

Dumps to Pass your TA-002-P Exam with 100% Real Questions and Answers: https://drive.google.com/open?id=1yXV-Dq-aKvGCLMZLDBAG5j-fWu4bGihd

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 )
From Monday to Saturday

Support: Contact now