100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
TA-002-P Dumps - Pass with Latest HashiCorp TA-002-P Exam Dumps $0.00

Exam (elaborations)

TA-002-P Dumps - Pass with Latest HashiCorp TA-002-P Exam Dumps

 5 views  0 purchase
  • Course
  • Institution

OfficialDumps provides 100% latest TA-002-P dumps to pass your HashiCorp TA-002-P exam in first attempt. All TA-002-P exam questions are verified by HashiCorp certified experts. Don't waste Your time, Just Visit and Get Up-to-Date Actual TA-002-P Exam Questions and Pass Your Exam in 1st try.

Preview 7 out of 8  pages

  • June 15, 2021
  • 8
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers
avatar-seller
HashiCorp
TA-002-P Exam
HashiCorp Certified: Terraform Associate Exam




Thank you for Downloading
(TA-002-P Dumps Demo)



Try Full Updated Product Here:

https://officialdumps.com/updated/hashicorp/ta-002-p-exam-dumps/

, HashiCorp
TA-002-P Exam
HashiCorp Certified: Terraform Associate Exam

Questions & Answers
Demo

,Questions & Answers PDF Page 2




Version: 4.0


Question: 1

Terraform init can indeed be run only a few times, because, every time terraform init will initialize the
project , and download all plugins from the internet repository , regardless of whether they were present
or not , and this increases the waiting time

A. True
B. False

Answer: B

Explanation:
Re-running init with modules already installed will install the sources for any modules that were added
to configuration since the last init, but will not change any already-installed modules. Use -upgrade to
override this behavior, updating all modules to the latest available source code.
https://www.terraform.io/docs/commands/init.html

Question: 2

The Terraform language does not support user-defined functions, and so only the functions built in to the
language are available for use.

A. False
B. True

Answer: B

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

Question: 3

Which of the below configuration file formats are supported by Terraform? (Select TWO)

A. Node
B. JSON
C. Go
D. YAML

,Questions & Answers PDF Page 3


E. HCL

Answer: B, E

Explanation:
Terraform supports both HashiCorp Configuration Language (HCL) and JSON formats for configurations.
https://www.terraform.io/docs/configuration/

Question: 4

Please identify the offerings which are unique to Terraform Enterprise, and not available in either
Terraform OSS, or Terraform Cloud. Select four.

A. Audit Logs
B. Private Network Connectivity
C. VCS Integration
D. Sentinel
E. Clustering

Answer: A, B, E

Explanation:
https://www.hashicorp.com/products/terraform/pricing/

Question: 5

terraform refresh command will not modify infrastructure, but does modify the state file.

A. True
B. False

Answer: A

Explanation:
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file)
with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to
update the state file. This does not modify infrastructure, but does modify the state file.
https://www.terraform.io/docs/commands/refresh.html

Question: 6

Which of the following clouds does not have a provider maintained HashiCorp?

A. IBM Cloud
B. DigitalOcean
C. OpenStack

,Questions & Answers PDF Page 4


D. AWS

Answer: A

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

Question: 7

You have declared a variable name my_var in terraform configuration without a value associated with it.
variable my_var {}
After running terraform plan it will show an error as variable is not defined.

A. True
B. False

Answer: B

Explanation:
Input variables are usually defined by stating a name, type and a default value. However, the type and
default values are not strictly necessary. Terraform can deduct the type of the variable from the default
or input value.
Variables can be predetermined in a file or included in the command-line options. As such, the simplest
variable is just a name while the type and value are selected based on the input.
variable "variable_name" {}
terraform apply -var variable_name="value"
The input variables, like the one above, use a couple of different types: strings, lists, maps, and boolean.
Here are some examples of how each type are defined and used.
String
Strings mark a single value per structure and are commonly used to simplify and make complicated
values more user-friendly. Below is an example of a string variable definition.
variable "template" {
type = string
default = "01000000-0000-4000-8000-000030080200"
}
A string variable can then be used in resource plans. Surrounded by double quotes, string variables are a
simple substitution such as the example underneath.
storage = var.template
List
Another type of Terraform variables lists. They work much like a numbered catalogue of values. Each
value can be called by their corresponding index in the list. Here is an example of a list variable
definition.
variable "users" {
type = list
default = ["root", "user1", "user2"]

,Questions & Answers PDF Page 5


}
Lists can be used in the resource plans similarly to strings, but you’ll also need to denote the index of the
value you are looking for.
username = var.users[0]
Map
Maps are a collection of string keys and string values. These can be useful for selecting values based on
predefined parameters such as the server configuration by the monthly price.
variable "plans" {
type = map
default = {
"5USD" = "1xCPU-1GB"
"10USD" = "1xCPU-2GB"
"20USD" = "2xCPU-4GB"
}
}
You can access the right value by using the matching key. For example, the variable below would set the
plan to "1xCPU-1GB".
plan = var.plans["5USD"]
The values matching to their keys can also be used to look up information in other maps. For example,
underneath is a shortlist of plans and their corresponding storage sizes.
variable "storage_sizes" {
type = map
default = {
"1xCPU-1GB" = "25"
"1xCPU-2GB" = "50"
"2xCPU-4GB" = "80"
}
}
These can then be used to find the right storage size based on the monthly price as defined in the
previous example.
size = lookup(var.storage_sizes, var.plans["5USD"])
Boolean
The last of the available variable type is boolean. They give the option to employ simple true or false
values. For example, you might wish to have a variable that decides when to generate the root user
password on a new deployment.
variable "set_password" {
default = false
}
The above example boolean can be used similarly to a string variable by simply marking down the
correct variable.
create_password = var.set_password
By default, the value is set to false in this example. However, you can overwrite the variable at
deployment by assigning a different value in a command-line variable.
terraform apply -var set_password="true"

Question: 8

, Questions & Answers PDF Page 6


Environment variables can be used to set variables. The environment variables must be in the format
"____"_<variablename>. Select the correct prefix string from the following list.

A. TF_CLI_ARGS
B. TF_VAR
C. TF_VAR_
D. TF_VAR_ENV

Answer: C

Explanation:
Environment variables can be used to set variables. The environment variables must be in the format
TF_VAR_name and this will be checked last for a value. For example:
export TF_VAR_region=us-west-1
export TF_VAR_ami=ami-049d8641
export TF_VAR_alist='[1,2,3]'
export TF_VAR_amap='{ foo = "bar", baz = "qux" }'
https://www.terraform.io/docs/commands/environment-variables.html

Question: 9

The terraform init 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.

A. False
B. True

Answer: B

Explanation:
https://www.terraform.io/docs/commands/init.html

Question: 10

ABC Enterprise has recently tied up with multiple small organizations for exchanging database
information. Due to this, the firewall rules are increasing and are more than 100 rules. This is leading
firewall configuration file that is difficult to manage. What is the way this type of configuration can be
managed easily?

A. Terraform Backends
B. Terraform Functions
C. Dynamic Blocks
D. Terraform Expression

Answer: C

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller warrenkelly. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $0.00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
Free
  • (0)