Free TA-002-P Exam Dumps

Question 6

- (Exam Topic 2)
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.

Correct Answer:A
Use the terraform providers command to view the specified version constraints for all providers used in the current configuration.
https://www.terraform.io/docs/configuration/providers.html

Question 7

- (Exam Topic 1)
When using a module block to reference a module stored on the public Terraform Module Registry such as:
TA-002-P dumps exhibit
How do you specify version 1.0.0?

Correct Answer:C
Version
When using modules installed from a module registry, we recommend explicitly constraining the acceptable version numbers to avoid unexpected or unwanted changes.
Use the version argument in the module block to specify versions: module "consul" {
source = "hashicorp/consul/aws" version = "0.0.5"
servers = 3
}
Reference: https://www.terraform.io/docs/language/modules/sources.html

Question 8

- (Exam Topic 2)
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?

Correct Answer:BC
Structural type of variable allows multiple values of several distinct types to be grouped together as a single value. They require a schema as an argument, to specify which types are allowed for which elements.
https://www.terraform.io/docs/configuration/types.html

Question 9

- (Exam Topic 3)
Why is it a good idea to declare the required version of a provider in a Terraform configuration file?
* 1. terraform
* 2. {
* 3. required_providers
* 4. {
* 5. aws = "~> 1.0"
* 6. }
* 7. }

Correct Answer:C

Question 10

- (Exam Topic 4)
Running terraform fmt without any flags in a directory with Terraform configuration files will check the formatting of those files without changing their contents.

Correct Answer:B
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.