[Jan-2024] HashiCorp TA-002-P Exam Basic Questions With Answers [Q40-Q55]

Share

[Jan-2024] HashiCorp TA-002-P Exam: Basic Questions With Answers

New 2024 Realistic Free HashiCorp TA-002-P Exam Dump Questions and Answer


The Terraform Associate certification exam is created by HashiCorp, a leading provider of infrastructure automation software. TA-002-P exam is targeted towards professionals who are involved in cloud infrastructure management, DevOps, and automation. TA-002-P exam is designed to test the candidate's ability to use Terraform to manage infrastructure as code, and it covers topics such as Terraform basics, resource management, configuration, and state management.

 

NEW QUESTION # 40
Terraform providers are always installed from the Internet.

  • A. False
  • B. True

Answer: A

Explanation:
Terraform providers are not always installed from the Internet. There are other ways to install provider plugins, such as from a local mirror or cache, from a local filesystem directory, or from a network filesystem. These methods can be useful for offline or air-gapped environments, or for customizing the installation process. You can configure the provider installation methods using the provider_installation block in the CLI configuration file.


NEW QUESTION # 41
How is terraform import run?

  • A. As a part of terraform refresh
  • B. As a part of terraform init
  • C. All of the above
  • D. By an explicit call
  • E. As a part of terraform plan

Answer: D

Explanation:
Explanation
"The current implementation of Terraform import can only import resources into the state. It does not generate
configuration. A future version of Terraform will also generate configuration. Because of this, prior to running
terraform import it is necessary to write manually a resource configuration block for the resource, to which the
imported object will be mapped. While this may seem tedious, it still gives Terraform users an avenue for
importing existing resources." https://www.terraform.io/cli/import/usage


NEW QUESTION # 42
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

  • A. name
  • B. Id
  • C. Depends_on
  • D. Alias

Answer: D

Explanation:
This is the meta-argument that you must include in any non-default provider configurations, as it allows you to give a friendly name to the configuration and reference it in other parts of your code. The other options are either invalid or irrelevant for this purpose.


NEW QUESTION # 43
The terraform state command can be used to ____

  • A. Refresh existing state file
  • B. Update current state
  • C. Print the current state file in console
  • D. It is not a valid command

Answer: B

Explanation:
Explanation
The terraform state command is used for advanced state management. Rather than modify the state directly, the terraform state commands can be used in many cases instead.
https://www.terraform.io/docs/commands/state/index.html


NEW QUESTION # 44
All Terraform Cloud tiers support team management and governance.

  • A. False
  • B. True

Answer: A

Explanation:
Explanation
https://www.terraform.io/cloud-docs/overview
Terraform Cloud is a commercial SaaS product developed by HashiCorp. Many of its features are free for
small teams, including remote state storage, remote runs, and VCS connections. We also offer paid plans for
larger teams that include additional collaboration and governance features. Each higher paid upgrade plan is a
strict superset of any lower plans - for example, the Team & Governance plan includes all of the features of
the Team plan.


NEW QUESTION # 45
What type of block is used to construct a collection of nested configuration blocks?

  • A. repeated.
  • B. Dynamic
  • C. Nesting
  • D. For_each

Answer: B

Explanation:
This is the type of block that is used to construct a collection of nested configuration blocks, by using a for_each argument to iterate over a collection value and generate a nested block for each element. For example, you can use a dynamic block to create multiple ingress rules for a security group resource.


NEW QUESTION # 46
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? (Choose
two.)

  • A. A catalog of approved resources can be accessed from drop down lists in a request form
  • B. A request must be submitted for infrastructure changes
  • C. A full audit trail of the request and fulfillment process is generated
  • D. As additional resources are required, more tickets are submitted

Answer: B,D


NEW QUESTION # 47
The_________determines how Terraform creates, updates, or delete resources.

  • A. Terraform provider
  • B. Terraform configuration
  • C. Terraform provisioner
  • D. Terraform core

Answer: A

Explanation:
This is what determines how Terraform creates, updates, or deletes resources, as it is responsible for understanding API interactions with some service and exposing resources and data sources based on that API.


NEW QUESTION # 48
Using multi-cloud and provider-agnostic tools provides which of the following benefits?

  • A. Can be used across major cloud providers and VM hypervisors.
  • B. Slower provisioning speed allows the operations team to catch mistakes before they are applied.
  • C. Operations teams only need to learn and manage a single tool to manage infrastructure, regardless of where the infrastructure is deployed.
  • D. Increased risk due to all infrastructure relying on a single tool for management.

Answer: A,C

Explanation:
Using a tool like Terraform can be advantageous for organizations deploying workloads across multiple public and private cloud environments. Operations teams only need to learn a single tool, single language, and can use the same tooling to enable a DevOps-like experience and workflows.


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

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

Answer: C

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

  • A. False
  • B. True

Answer: A

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


NEW QUESTION # 51
What is a downside to using the Vault provider to read secrets from Vault?

  • A. Secrets are persisted to the state file and plans.
  • B. Terraform and Vault must be running on the same version.
  • C. Terraform requires a unique auth method to work with Vault.
  • D. Terraform and Vault must be running on the same physical host.

Answer: A

Explanation:
Explanation
The Vault provider allows Terraform to read from, write to, and configure Hashicorp Vault.
Interacting with Vault from Terraform causes any secrets that you read and write to be persisted in both Terraform's state file and in any generated plan files. For any Terraform module that reads or writes Vault secrets, these files should be treated as sensitive and protected accordingly.


NEW QUESTION # 52
Select all Operating Systems that Terraform is available for. (select five)

  • A. Solaris
  • B. macOS
  • C. Linux
  • D. Windows
  • E. Unix
  • F. FreeBSD

Answer: A,B,C,D,F

Explanation:
Explanation
Terraform is available for macOS, FreeBSD, OpenBSD, Linux, Solaris, Windows https://www.terraform.io/downloads.html


NEW QUESTION # 53
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System
(VCS) repository?

  • A. Only members of a VCS organization can open a pull request against repositories that are connected to
    Terraform Cloud workspaces
  • B. Commit a change to the VCS working directory and branch that the Terraform Cloud workspace is
    connected to
  • C. Only Terraform Cloud organization owners can set workspace variables on VCS connected workspaces
  • D. Only Terraform Cloud organization owners can approve plans in VCS connected workspaces

Answer: B

Explanation:
Explanation
"In a workspace linked to a VCS repository, runs start automatically when you merge or commit changes to
version control.
A workspace is linked to one branch of a VCS repository and ignores changes to other branches. You can
specify which files and directories within your repository trigger runs. "
https://www.terraform.io/cloud-docs/run/ui#automatically-starting-runs


NEW QUESTION # 54
When configuring a remote backend in Terraform, it might be a good idea to purposely omit some of the required arguments to ensure secrets and other important data aren't inadvertently shared with others. What are the ways the remaining configuration can be added to Terraform so it can initialize and communicate with the backend? (select three)

  • A. directly querying HashiCorp Vault for the secrets
  • B. command-line key/value pairs
  • C. interactively on the command line
    Explanation
    You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable to avoid storing secrets, such as access keys, within the main configuration. When some or all of the arguments are omitted, we call this a partial configuration.
    With a partial configuration, the remaining configuration arguments must be provided as part of the initialization process. There are several ways to supply the remaining arguments: https://www.terraform.io/docs/backends/init.html#backend-initialization
  • D. use the -backend-config=PATH to specify a separate config file

Answer: B,C,D


NEW QUESTION # 55
......

Guaranteed Success in HashiCorp Infrastructure Automation TA-002-P Exam Dumps: https://www.examprepaway.com/HashiCorp/braindumps.TA-002-P.ete.file.html

TA-002-P Practice Test Engine: Try These 94 Exam Questions: https://drive.google.com/open?id=1g2Rjy8-gh1gC4R_QwxwV4lpduOPje7Wr