sales@kaozhengpro.com

下列 TA-002-P 練習題僅為 Kaozhengpro 考證寶完整題庫中的一部分。完整版本共收錄 449 題最新考題與模擬試題,幫助您全面掌握考試重點。Kaozhengpro 提供的 TA-002-P 完整題庫,內容定期更新、緊貼官方考綱,能有效提升您的應試信心與通過率。若您使用題庫後仍未達到理想效果,我們將提供 全額退款保障。立即開始測試與學習,體驗專業題庫帶來的高效備考!

 完整TA-002-P題庫

HashiCorp TA-002-P 免費練習題庫

TA-002-P 題庫的更新日期是 2025-10-26 .

正在練習第 1 頁,共 16 頁。

正在練習第 1 題,共 80 題

題目#1

You’re building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run.
How can you do this safely?

A. Pass variables to Terraform with a Cvar flag
B. Copy the sensitive variables into your Terraform code
C. Store the sensitive variables in a secure_vars.tf file
D. Store the sensitive variables as plain text in a source code repository

Explanation:
https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code-1d586955ace1

題目#2

Terraform provisioners can be added to any resource block.

A. True
B. False

Explanation:
https://www.phillipsj.net/posts/introduction-to-terraform-provisioners/
As you continue learning about Terraform, you will start hearing about provisioners.
Terraform provisioners can be created on any resource and provide a way to execute actions on local or remote machines.
https://www.terraform.io/language/resources/provisioners/local-exec

題目#3

You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?

A. Run terraform output ip_address to view the result
B. In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
C. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
D. Run terraform destroy then terraform apply and look for the IP address in stdout

Explanation:
https://www.terraform.io/cli/commands/state/show

題目#4

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?

A. version >= 2.1
B. version ~> 2.1
C. version = “<= 2.1”
D. version = “>= 2.1”

Explanation:
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

題目#5

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

A. Run terraform refresh
B. It will happen automatically
C. Manually update the state fire
D. Run terraform import

Explanation:
https://www.terraform.io/cli/commands/refresh#:~:text=The%20terraform%20refresh%20command%20reads%20the%20current%20settings%20from%20all%20managed%20remote%20objects%20and%20updates%20the%20Terraform%20state%20to%20match.

考題代碼: TA-002-P題庫題數: 449 題更新時間:  2025-10-26

 完整 TA-002-P 題庫

商品分類