(PDF) HashiCorp Infrastructure Automation TA-002-P Exam and Certification Test Engine
Use TA-002-P Exam Dumps (2023 PDF Dumps) To Have Reliable TA-002-P Test Engine
The HashiCorp Certified: Terraform Associate certification is beneficial for professionals who want to demonstrate their expertise in using Terraform to automate infrastructure management. It is also useful for organizations that want to ensure that their employees have the necessary skills to use Terraform effectively. HashiCorp Certified: Terraform Associate certification is valid for two years, after which the candidate needs to renew it by taking the latest version of the exam.
NEW QUESTION # 35
Terraform variable names are saved in the state file.
- A. True
- B. False
Answer: B
Explanation:
Explanation
Terraform stores information about your infrastructure in a state file. This state file keeps track of resources
created by your configuration and maps them to real-world resources.
https://learn.hashicorp.com/tutorials/terraform/state-cli
NEW QUESTION # 36
Terraform and Terraform providers must use the same major version number in a single configuration.
- A. True
- B. False
Answer: B
Explanation:
Explanation
https://www.terraform.io/language/expressions/version-constraints#terraform-core-and-provider-versions
NEW QUESTION # 37
A provider configuration block is required in every Terraform configuration.
Example:
- A. False
- B. True
Answer: B
Explanation:
Reference: https://github.com/hashicorp/terraform/issues/17928
NEW QUESTION # 38
Select all Operating Systems that Terraform is available for. (select five)
- A. macOS
- B. FreeBSD
- C. Solaris
- D. Unix
- E. Windows
- F. Linux
Answer: A,B,C,E,F
Explanation:
Explanation
Terraform is available for macOS, FreeBSD, OpenBSD, Linux, Solaris, Windows
https://www.terraform.io/downloads.html
NEW QUESTION # 39
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
- A. Run terraform refresh
- B. Manually update the state fire
- C. Run terraform import
- D. It will happen automatically
Answer: A
Explanation:
Explanation
https://www.terraform.io/cli/commands/refresh#:~:text=The%20terraform%20refresh%20command%20reads%2
NEW QUESTION # 40
One remote backend configuration always maps to a single remote workspace.
- A. False
- B. True
Answer: B
Explanation:
Explanation/Reference: https://www.terraform.io/docs/language/settings/backends/remote.html
NEW QUESTION # 41
Which argument(s) are required when declaring a Terraform variable?
- A. All of the above
- B. description
- C. default
- D. type
- E. None of the above
Answer: E
Explanation:
Explanation
Terraform CLI defines the following OPTIONAL arguments for variable declarations:
default - A default value which then makes the variable optional.
type - This argument specifies what value types are accepted for the variable.
description - This specifies the input variable's documentation.
validation - A block to define validation rules, usually in addition to type constraints.
sensitive - Limits Terraform UI output when the variable is used in configuration.
nullable - Specify if the variable can be null within the module.
https://www.terraform.io/language/values/variables#arguments
NEW QUESTION # 42
After creating a new workspace "PROD" you need to run the command terraform select PROD to switch to it.
- A. True
- B. False
Answer: B
Explanation:
Explanation
By default, when you create a new workspace you are automatically switched to it
To create a new workspace and switch to it, you can use terraform workspace new <new_workspace_name>;
to switch to a existing workspace you can use terraform workspace select <existing_workspace_name>;
Example:
$ terraform workspace new example
Created and switched to workspace "example"!
You're now on a new, empty workspace. Workspaces isolate their state, so if you run "terraform plan"
Terraform will not see any existing state for this configuration.
NEW QUESTION # 43
Which of the following actions are performed during a terraform init?
- A. Provisions the declared resources in your configuration
- B. Initializes the backend configuration
- C. Download the declared providers which are supported by HashiCorp
- D. Initializes downloaded and/or installed providers
Answer: B,C,D
Explanation:
The terraform init command is used to initialize a working directory containing Terraform configuration files. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It is safe to run this command multiple times.
This 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.
terraform init command does -
* Copy a Source Module
* Backend Initialization
* Child Module Installation
* Plugin Installation
https://www.terraform.io/docs/commands/init.html
NEW QUESTION # 44
What is the workflow for deploying new infrastructure with Terraform?
- A. Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure.
- B. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.
- C. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
- D. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
Answer: C
Explanation:
Explanation/Reference: https://www.google.com/search?q=Write+a+Terraform+configuration%2C+run+terraform+init%
2C+run+terraform+plan+to+view+planned+infrastructure+changes%2C+and+terraform+apply+to+create
+new+infrastructure.&oq=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform
+plan+to+view+planned+infrastructure+changes%2C+and+terraform+apply+to+create+new
+infrastructure.&aqs=chrome..69i57.556j0j7&sourceid=chrome&ie=UTF-8
NEW QUESTION # 45
If you delete a remote backend from the configuration, will you need to rebuild your state files locally?
- A. True
- B. False
Answer: B
Explanation:
You can change your backend configuration at any time. You can change both the configuration itself as well as the type of backend (for example from "consul" to "s3").
Terraform will automatically detect any changes in your configuration and request a reinitialization. As part of the reinitialization process, Terraform will ask if you'd like to migrate your existing state to the new configuration. This allows you to easily switch from one backend to another.
https://www.terraform.io/docs/backends/config.html#changing-configuration
NEW QUESTION # 46
What is not processed when running a terraform refresh?
- A. Cloud provider
- B. State file
- C. Credentials
- D. Configuration file
Answer: A,C
Explanation:
Reference: https://www.terraform.io/docs/cli/commands/refresh.html
NEW QUESTION # 47
What is the name assigned by Terraform to reference this resource?
- A. dev
- B. test
- C. azurerm
- D. azurerm_resource_group
Answer: B
NEW QUESTION # 48
Terraform requires the Go runtime as a prerequisite for installation.
- A. True
- B. False
Answer: B
NEW QUESTION # 49
Which of the following does terraform apply change after you approve the execution plan? Choose two correct answers.
- A. The execution plan
- B. The .terraform directory
- C. Terraform code
- D. Cloud infrastructure
- E. State file
Answer: D,E
NEW QUESTION # 50
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
- A. Terraform will error
- B. Terraform will destroy the virtual machine
- C. Nothing
- D. Terraform will remove the virtual machine from the state file, but the resource will still exist
Answer: B
Explanation:
This is what will happen if you run terraform apply in the working directory again, after removing the resource definition from your Terraform configuration file. Terraform will detect that there is a resource in the state file that is not present in the configuration file, and will assume that you want to delete it.
NEW QUESTION # 51
What does this code do?
- A. Requires any version of the AWS provider > = 3.0 and <4.0
- B. Requires any version of the AWS provider > = 3.0 major release. like 4.1
- C. Requires any version of the AWS provider > 3.0
- D. Requires any version of the AWS provider >= 3.0
Answer: A
Explanation:
This is what this code does, by using the pessimistic constraint operator (~>), which specifies an acceptable range of versions for a provider or module.
NEW QUESTION # 52
......
HashiCorp TA-002-P certification exam is a vendor-neutral certification that is recognized by major cloud service providers like AWS, Azure, and Google Cloud. It is an ideal certification for IT professionals who are involved in cloud infrastructure management, DevOps, and automation. By earning this certification, candidates can demonstrate their proficiency in using Terraform to manage infrastructure resources across multiple cloud platforms. HashiCorp Certified: Terraform Associate certification exam is designed to help organizations find qualified IT professionals who can effectively manage infrastructure resources in a cloud environment using Terraform.
TA-002-P Dumps Full Questions with Free PDF Questions to Pass: https://www.freecram.com/HashiCorp-certification/TA-002-P-exam-dumps.html
TA-002-P PDF Recently Updated Questions Dumps to Improve Exam Score: https://drive.google.com/open?id=1Cl0AA-jp4mlnwI-gSSWPTYf88E8U12E3