Free TA-002-P Exam Braindumps

Pass your HashiCorp Certified: Terraform Associate exam with these free Questions and Answers

Page 14 of 19
QUESTION 61

- (Exam Topic 1)
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

  1. A. Run terraform refresh
  2. B. It will happen automatically
  3. C. Manually update the state fire
  4. D. Run terraform import

Correct Answer: A
https://www.terraform.io/cli/commands/refresh#:~:text=The terraform refresh command reads%

QUESTION 62

- (Exam Topic 4)
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?

  1. A. Run terraform apply -upgrade
  2. B. Run terraform init -upgrade
  3. C. Run terraform refresh
  4. D. Upgrade your version of Terraform

Correct Answer: B
[-upgrade] - Opt to upgrade modules and plugins as part of their respective installation steps. See the sections below for more details. Reference: https://www.terraform.io/cli/commands/init#upgrade

QUESTION 63

- (Exam Topic 1)
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?

  1. A. The ability to share modules with public Terraform users and members of Terraform Enterprise Organizations
  2. B. The ability to tag modules by version or release
  3. C. The ability to restrict modules to members of Terraform Cloud or Enterprise organizations
  4. D. The ability to share modules publicly with any user of Terraform

Correct Answer: C
Terraform Cloud's private registry works similarly to the public Terraform Registry and helps you share Terraform providers and Terraform modules across your organization. It includes support for versioning and a searchable list of available providers and modules.

QUESTION 64

- (Exam Topic 1)
A Terraform provider is not responsible for:

  1. A. Understanding API interactions with some service
  2. B. Provisioning infrastructure in multiple clouds
  3. C. Exposing resources and data sources based on an API
  4. D. Managing actions to take based on resource differences

Correct Answer: B
https://www.terraform.io/language/providers

QUESTION 65

- (Exam Topic 4)
Multiple provider instances blocks for AWS can be part of a single configuration file?

  1. A. False
  2. B. True

Correct Answer: B
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

Page 14 of 19

Post your Comments and Discuss HashiCorp TA-002-P exam with other Community members: