HashiCorp Certified: Terraform Associate - TA-002-P Exam Practice Test

Which of the below features of Terraform can be used for managing small differences between different environments which can act more like completely separate working directories.
Correct Answer: A
Explanation: (Only visible to ExamsLabs members)
A data block requests that Terraform read from a given data source and export the result under the given local name.
Correct Answer: A
If you enable TF_LOG = DEBUG, the log will be stored in syslog.log file in the currect directory.
Correct Answer: B
Explanation: (Only visible to ExamsLabs members)
You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.
How would you solve this using infrastructure as code?
Correct Answer: C
Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?
Correct Answer: D
Explanation: (Only visible to ExamsLabs members)
You have created a terraform script that uses a lot of new constructs that have been introduced in terraform v0.12. However, many developers who are cloning the script from your git repo, are using v0.11, and getting errors. What can be done from your end to solve this problem?
Correct Answer: A
Explanation: (Only visible to ExamsLabs members)
What is a downside to using the Vault provider to read secrets from Vault?
Correct Answer: B
Explanation: (Only visible to ExamsLabs members)
Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements.
(select three)
Correct Answer: C,D,E
Explanation: (Only visible to ExamsLabs members)
True or False: A list(...) contain a number of values of the same type while an object(...) can contain a number of values of different types.
Correct Answer: A
Explanation: (Only visible to ExamsLabs members)
Terraform requires the Go runtime as a prerequisite for installation.
Correct Answer: B
Explanation: (Only visible to ExamsLabs members)
Complete the following sentence:
For local state, the workspaces are stored directly in a ___________.
Correct Answer: D
Explanation: (Only visible to ExamsLabs members)
During a terraform plan, a resource is successfully created but eventually fails during provisioning. What happens to the resource?
Correct Answer: C
Explanation: (Only visible to ExamsLabs members)
Your company has been using Terraform Cloud for a some time now . But every team is creating their own modules , and there is no standardization of the modules , with each team creating the resources in their own unique way . You want to enforce a standardization of the modules across the enterprise . What should be your approach.
Correct Answer: D
Explanation: (Only visible to ExamsLabs members)
Select two answers to complete the following sentence: Before a new provider can be used, it must be ______ and _______.
Correct Answer: A,B
Explanation: (Only visible to ExamsLabs members)
When using parent/child modules to deploy infrastructure, how would you export a value from one module to import into another module.
For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.
Correct Answer: C
Explanation: (Only visible to ExamsLabs members)
terraform init initializes a sample main.tf file in the current directory.
Correct Answer: B
Explanation: (Only visible to ExamsLabs members)
A user runs terraform init on their RHEL based server and per the output, two provider plugins are downloaded: $ terraform init Initializing the backend...
Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "aws" (hashicorp/aws) 2.44.0...
- Downloading plugin for provider "random" (hashicorp/random) 2.2.1...
:
Terraform has been successfully initialized! Where are these plugins downloaded to?
Correct Answer: B