Question 85

- (Exam Topic 1)
Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files. How can you protect sensitive data stored in Terraform state files?

Correct Answer:B

Question 86

- (Exam Topic 1)
Which of the following is not an action performed by terraform init?

Correct Answer:A

Question 87

- (Exam Topic 1)
You need to constrain the GitHub provider to version 2.1 or greater.
Which of the following should you put into the Terraform 0.12 configuration’s provider block?

Correct Answer:D
version = ">= 1.2.0, < 2.0.0"
A version constraint is a string literal containing one or more conditions, which are separated by commas. Each condition consists of an operator and a version number.
Version numbers should be a series of numbers separated by periods (like 1.2.0), optionally with a suffix to indicate a beta release.
The following operators are valid:
= (or no operator): Allows only one exact version number. Cannot be combined with other conditions.
!=: Excludes an exact version number.
>, >=, <, <=: Comparisons against a specified version, allowing versions for which the comparison is true. "Greater-than" requests newer versions, and "less-than" requests older versions.
~>: Allows only the rightmost version component to increment. For example, to allow new patch releases within a specific minor release, use the full version number: ~> 1.0.4 will allow installation of 1.0.5 and 1.0.10 but not 1.1.0. This is usually called the pessimistic constraint operator.
https://www.terraform.io/language/expressions/version-constraints

Question 88

- (Exam Topic 1)
When you initialize Terraform, where does it cache modules from the public Terraform Module Registry?

Correct Answer:C

"A hidden .terraform directory, which Terraform uses to manage cached provider plugins and modules, record which workspace is currently active, and record the last known backend configuration in case it needs to migrate state on the next run. This directory is automatically managed by Terraform, and is created during initialization." https://www.terraform.io/cli/init

Question 89

- (Exam Topic 4)
Select the operating systems which are supported for a clustered Terraform Enterprise: (select four)

Correct Answer:BCDE

https://www.terraform.io/docs/enterprise/before-installing/index.html#operating-systemrequirements

Question 90

- (Exam Topic 1)
Terraform requires the Go runtime as a prerequisite for installation.

Correct Answer:B
https://www.terraform.io/plugin/sdkv2/guides/v1-upgrade-guide and https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide

START TA-002-P EXAM