In the following code snippet, the block type is identified by which string?
Answer: B
HashiCorp Certified: Terraform Associate
Prices in USD. Downloads appear in My Account once your order is complete.
Check the style and quality of the material before you buy.
In the following code snippet, the block type is identified by which string?
Answer: B
Which statements best describes what the local variable assignment is doing in thefollowing code snippet:
Answer: D
While Terraform is generally written using the HashiCorp Configuration Language (HCL),what other syntax can Terraform are expressed in?
Answer: A
Explanation
The constructs in the Terraform language can also be expressed in JSON syntax, which is harder for humans to read and edit but easier to generate and parse programmatically.
Complete the following sentence:The terraform state command can be used to ____
Which Terraform command will check and report errors within modules, attribute names,and value types to make sure they are syntactically valid and internally consistent?
Answer: A
Explanation
The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc. Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including the correctness of attribute names and value types. It is safe to run this command automatically, for example as a post-save check in a text editor or as a test step for a re-usable module in a CI system.
A user creates three workspaces from the command line - prod, dev, and test. Which of thefollowing commands will the user run to switch to the dev workspace?
Answer: B
Explanation
Explanation The terraform workspace select command is used to choose a different workspace to use for further operations. https://www.terraform.io/docs/commands/workspace/select.html
Which of the following is an invalid variable name?
True or False: Workspaces provide identical functionality in the open-source, TerraformCloud, and Enterprise versions of Terraform.
Answer: B
Explanation
Explanation
Given the below resource configuration -resource "aws_instance" "web" { # ... count = 4 }What does the terraform resource address aws_instance.web refer to?
Answer: A
Explanation
A Resource Address is a string that references a specific resource in a larger infrastructure. An address is made up of two parts: [module path][resource spec] Module path: A module path addresses a module within the tree of modules. It takes the form: module.A.module.B.module.C... Multiple modules in a path indicate nesting. If a module path is specified without a resource spec, the address applies to every resource within the module. If the module path is omitted, this addresses the root module. Given a Terraform config that includes: resource "aws_instance" "web" { # ... count = 4 } An address like this: aws_instance.web[3] Refers to only the last instance in the config, and an address like this: aws_instance.web Refers to all four "web" instances.
A user has created a module called "my_test_module" and committed it to GitHub. Overtime, several commits have been made with updates to the module, each tagged in GitHubwith an incremental version number. Which of the following lines would be required in amodule configuration block in terraform to select tagged version v1.0.4?
Answer: D
Explanation
Explanation
The HashiCorp TA-002-P certification is a strong way to demonstrate your understanding and ability. Our TA-002-P questions & answers help you prepare for it, so you can secure your current position and move your career forward.
We keep our TA-002-P exam dumps up to date, with explanations. The questions and answers on Dumpsforsure are reviewed by people with professional experience of HashiCorp technologies.
Dumpsforsure brings together the material you need for the HashiCorp TA-002-P exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other HashiCorp exams.
We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.
You can view sample TA-002-P questions on this page before buying, to see the format and pattern of the material.
You are eligible for 90 days of free updates after buying the TA-002-P exam. If the file is updated in that time, you can download the latest version from your account.