[2023] Verified TA-002-P Dumps Q&As - 1 Year Free & Quickly Updates [Q73-Q97]

Share

[2023] Verified TA-002-P Dumps Q&As - 1 Year Free & Quickly Updates

Latest 2023 Realistic Verified TA-002-P Dumps - 100% Free TA-002-P Exam Dumps

NEW QUESTION 73
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. Which of the below option is a recommended solution for this?

  • A. Use the cached state and treat this as the record of truth.
  • B. Module
  • C. Remote State
  • D. Workspace

Answer: C

Explanation:
https://www.terraform.io/docs/state/remote.html

 

NEW QUESTION 74
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run
terraform apply and the VM is created successfully.
What will happen if you terraform apply again immediately afterwards without changing any Terraform code?

  • A. Nothing
  • B. Terraform will apply the VM to the state file
  • C. Terraform will terminate and recreate the VM
  • D. Terraform will create another duplicate VM

Answer: A

 

NEW QUESTION 75
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. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
  • C. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
  • D. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.

Answer: C

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 76
Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.

  • A. False
  • B. True

Answer: A

Explanation:
Explanation
https://www.terraform.io/downloads

 

NEW QUESTION 77
Terraform import command can import resources into modules as well directly into the root of your state.

  • A. False
  • B. True

Answer: B

Explanation:
Import will find the existing resource from ID and import it into your Terraform state at the given ADDRESS. ADDRESS must be a valid resource address. Because any resource address is valid, the import command can import resources into modules as well directly into the root of your state.
Terraform is able to import existing infrastructure. This allows us take resources we've created by some other means (i.e. via console) and bring it under Terraform management.
This is a great way to slowly transition infrastructure to Terraform.
The terraform import command is used to import existing infrastructure.
To import a resource, first write a resource block for it in our configuration, establishing the name by which it will be known to Terraform. For example:
resource "aws_instance" "import_example" {
# ...instance configuration...
}
Now terraform import can be run to attach an existing instance to this resource configuration:
$ terraform import aws_instance.import_example i-03efafa258104165f
aws_instance.import_example: Importing from ID "i-03efafa258104165f"...
aws_instance.import_example: Import complete!
Imported aws_instance (ID: i-03efafa258104165f)
aws_instance.import_example: Refreshing state... (ID: i-03efafa258104165f) Import successful!
The resources that were imported are shown above. These resources are now in your Terraform state and will henceforth be managed by Terraform.
This command locates the AWS instance with ID i-03efafa258104165f (which has been created outside Terraform) and attaches its existing settings, as described by the EC2 API, to the name aws_instance.import_example in the Terraform state.
As a result of the above command, the resource is recorded in the state file. We can now run terraform plan to see how the configuration compares to the imported resource, and make any adjustments to the configuration to align with the current (or desired) state of the imported object.
https://www.terraform.io/docs/commands/import.html

 

NEW QUESTION 78
Terraform Cloud is more powerful when you integrate it with your version control system (VCS) provider. Select all the supported VCS providers from the answers below. (select four)

  • A. GitHub Enterprise
  • B. GitHub
  • C. CVS Version Control
  • D. Bitbucket Cloud
  • E. Azure DevOps Server

Answer: A,B,D,E

Explanation:
Explanation
Terraform Cloud supports the following VCS providers:
- https://www.terraform.io/docs/cloud/vcs/github.html
- https://www.terraform.io/docs/cloud/vcs/github.html
- https://www.terraform.io/docs/cloud/vcs/github-enterprise.html
- https://www.terraform.io/docs/cloud/vcs/gitlab-com.html
- https://www.terraform.io/docs/cloud/vcs/gitlab-eece.html
- https://www.terraform.io/docs/cloud/vcs/bitbucket-cloud.html
- https://www.terraform.io/docs/cloud/vcs/bitbucket-server.html
- https://www.terraform.io/docs/cloud/vcs/azure-devops-server.html
- https://www.terraform.io/docs/cloud/vcs/azure-devops-services.html
https://www.terraform.io/docs/cloud/vcs/index.html#supported-vcs-providers

 

NEW QUESTION 79
If a DevOps team adopts AWS Cloud Formation as their standardized method for provisioning public cloud resources, which of the following scenarios poses a challenge for this team?

  • A. The team is asked to manage a new application stack built on AWS-natrve services
  • B. The DevOps team is tasked with automating a manual provisioning process
  • C. The organization decides to expand into Azure and wishes to deploy new infrastructure using their existing codebase
  • D. The team is asked to build a reusable code base that can deploy resources into any AWS region

Answer: C

 

NEW QUESTION 80
You are using a terraform operation that writes state. Unfortunately automatic state unlocking has failed for that operation. Which of the below commands can be used to remove the already acquired lock on the state?

  • A. None of the above
  • B. terraform force-unlock
  • C. terraform unlock
  • D. terraform state unlock

Answer: B

Explanation:
Explanation
Command: force-unlock
Manually unlock the state for the defined configuration.
This will not modify your infrastructure. This command removes the lock on the state for the current configuration. The behavior of this lock is dependent on the backend being used. Local state files cannot be unlocked by another process.
https://www.terraform.io/docs/commands/force-unlock.html
https://www.terraform.io/docs/state/locking.html
Terraform has a force-unlock command to manually unlock the state if unlocking failed.
If you unlock the state when someone else is holding the lock it could cause multiple writers. Force unlock should only be used to unlock your own lock in the situation where automatic unlocking failed.

 

NEW QUESTION 81
You have configured an Auto Scaling group in AWS to automatically scale the number of instances behind a load balancer based on the instances CPU utilization. The instances are configured using a Launch Configuration. You have observed that the Auto Scaling group doesn't successfully scale when you apply changes that require replacing the Launch Configuration. Why is this happening?

  • A. You need to configure an explicit dependency for the Auto Scaling group using the depends_on meta-parameter.
  • B. You need to configure the Launch Configuration's create_before_destroy meta-parameter.
  • C. You need to configure the Auto Scaling group's create_before_destroy meta-parameter.
  • D. You need to configure an explicit dependency for the Launch Configuration using the depends_on meta-parameter.

Answer: B

Explanation:
Explanation
https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#using-withautoscaling-groups

 

NEW QUESTION 82
What happens when a terraform apply command is executed?

  • A. Applies the changes required in the target infrastructure in order to reach the desired configuration.
  • B. Creates the execution plan for the deployment of resources.
  • C. Reconciles the state Terraform knows about with the real-world infrastructure.
  • D. The backend is initialized and the working directory is prepped.

Answer: A

Explanation:
The terraform apply command is used to apply the changes required to reach the desired state of the configuration, or the pre-determined set of actions generated by a terraform plan execution plan.
https://www.terraform.io/docs/commands/apply.html

 

NEW QUESTION 83
What information does the public Terraform Module Registry automatically expose about published modules?

  • A. None of the above
  • B. All of the above
  • C. Optional inputs variables and default values
  • D. Required input variables
  • E. Outputs

Answer: B

Explanation:
Explanation
https://www.terraform.io/registry/modules/publish
"The registry extracts information about the module from the module's source. The module name, provider,
documentation, inputs/outputs, and dependencies are all parsed and available via the UI or API, as well as the
same information for any submodules or examples in the module's source repository."

 

NEW QUESTION 84
Ric wants to enable detail logging and he wants highest verbosity of logs. Which of the following environment
variable settings is correct option for him to select.

  • A. Set VAR_TF_LOG = TRACE
  • B. Set TF_LOG = TRACE
  • C. Set TF_LOG = DEBUG
  • D. Set VAR_TF = TRACE

Answer: B

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

 

NEW QUESTION 85
What is the best and easiest way for Terraform to read and write secrets from HashiCorp Vault?

  • A. API access using the AppRole auth method
  • B. Vault provider
  • C. integration with a tool like Jenkins
  • D. CLI access from the same machine running Terraform

Answer: B

 

NEW QUESTION 86
Which feature of Terraform allows multiple state files for a single configuration file depending upon the
environment?

  • A. Terraform Workspaces
  • B. Terraform Remote Backends
  • C. Terraform Modules
  • D. Terraform Enterprise

Answer: A

 

NEW QUESTION 87
lookup retrieves the value of a single element from which of the below data type?

  • A. set
  • B. string
  • C. list
  • D. map

Answer: D

Explanation:
https://www.terraform.io/docs/configuration/functions/lookup.html

 

NEW QUESTION 88
When multiple engineers start deploying infrastructure using the same state file, what is a feature of remote
state storage that is critical to ensure the state doesn't become corrupt?

  • A. State Locking
  • B. WorkSpaces
  • C. Encryption
  • D. Object Storage

Answer: A

Explanation:
Explanation
If supported by your backend, Terraform will lock your state for all operations that could write state. This
prevents others from acquiring the lock and potentially corrupting your state.
State locking happens automatically on all operations that could write state. You won't see any message that it
is happening. If state locking fails, Terraform will not continue. You can disable state locking for most
commands with the -lock flag but it is not recommended.
If acquiring the lock is taking longer than expected, Terraform will output a status message. If Terraform
doesn't output a message, state locking is still occurring if your backend supports it.
Not all backends support locking. Please view the list of backend types for details on whether a backend
supports locking or not.
https://www.terraform.io/docs/state/locking.html

 

NEW QUESTION 89
You wanted to destroy some of the dependent resources from real infrastructure. You choose to delete those resources from your configuration file and run terraform plan and then apply. Which of the following way your resources would be destroyed?

  • A. You can not destroy resources by deleting them from configuration file and running plan and apply.
  • B. Those would be destroyed in the order in which they were written in the configuration file previously before you have deleted them from configuration file.
  • C. The resource will be destructed in random order as you have already deleted them from configuration.
  • D. Terraform can still determine the correct order for destruction from the state even when you delete one or more items from the configuration.

Answer: D

Explanation:
Explanation
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.

 

NEW QUESTION 90
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?

  • A. terraform apply -target=null_resource.run_script
  • B. terraform validate null_resource.run_script
  • C. terraform taint null_resource.run_script
  • D. terraform plan -target=null_resource.run_script

Answer: C

 

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

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

Answer: D

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 92
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to
rerun the script.
Which of the following commands would you use first?

  • A. terraform apply -target=null_resource.run_script
  • B. terraform validate null_resource.run_script
  • C. terraform taint null_resource.run_script
  • D. terraform plan -target=null_resource.run_script

Answer: C

Explanation:
Explanation
https://www.terraform.io/cli/commands/taint

 

NEW QUESTION 93
Once a resource is marked as tainted, the next plan will show that the resource will be _________ and
___________ and the next apply will implement this change.

  • A. destroyed and recreated
  • B. recreated and tainted
  • C. tainted and not destroyed
  • D. destroyed and not recreated

Answer: A

 

NEW QUESTION 94
Terraform Enterprise currently supports running under which the following operating systems?

  • A. Ubuntu
  • B. Debian
  • C. Amazon Linux
  • D. Red Hat Enterprise Linux
  • E. Oracle Linux
  • F. CentOS

Answer: A,B,C,D,E,F

Explanation:
Explanation
Terraform Enterprise runs on Linux instances, and you must prepare a running Linux instance for Terraform Enterprise before running the installer. You will start and manage this instance like any other server.
Terraform Enterprise currently supports running under the following operating systems:
Standalone deployment:
Debian 7.7+
Ubuntu 14.04.5 / 16.04 / 18.04
Red Hat Enterprise Linux 7.4 - 7.8
CentOS 6.x / 7.4 - 7.8
Amazon Linux 2014.03 / 2014.09 / 2015.03 / 2015.09 / 2016.03 / 2016.09 / 2017.03 / 2017.09 / 2018.03 / 2.0 Oracle Linux 7.4 - 7.8
https://www.terraform.io/docs/enterprise/before-installing/index.html

 

NEW QUESTION 95
True or False: Workspaces provide identical functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.

  • A. False
    Explanation
    https://www.terraform.io/docs/cloud/workspaces/index.html
    https://www.terraform.io/docs/state/workspaces.html
  • B. True

Answer: A

 

NEW QUESTION 96
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. Append ?ref=v1.0.0 argument to the source path
  • B. Add version = "1.0.0" attribute to module block
  • C. Modules stored on the public Terraform Module Registry do not support versioning
  • D. Nothing - modules stored on the public Terraform Module Registry always default to version 1.0.0

Answer: C

Explanation:
Explanation/Reference: https://www.terraform.io/docs/language/modules/sources.html

 

NEW QUESTION 97
......


Understanding functional and technical aspects of HashiCorp Certified: Terraform Associate TA-002-P Professional Exam Object Management

The following will be discussed in HASHICORP TA-002 exam dumps:

  • Control backend authentication processes
  • Perform modifications to infrastructure with Terraform
  • Describe default local backend
  • Define variable scope inside modules
  • Interact with module inputs and outputs
  • Verify a Terraform arrangement
  • Specify remote state storage mechanisms and supported regular backends.
  • Explore modules from the public Terraform Module Registry
  • Learn concealed management in state files
  • Determining module version
  • Destroy Terraform controlled infrastructure
  • Express backend block in arrangement and best practices for partial arrangements
  • Explain Terraform workflow ( Write -> Plan -> Create )
  • Explain the effect of Terraform refresh on state
  • Create and review a performance plan for Terraform

 

TA-002-P Dumps PDF and Test Engine Exam Questions: https://www.prep4sureguide.com/TA-002-P-prep4sure-exam-guide.html

Get 2023 Updated Free HashiCorp TA-002-P Exam Questions and Answer: https://drive.google.com/open?id=1njQ96wvRE_6pYkcJUdE6_MPJeb4y0NO_