試験準備には欠かさないトップクラスのHashiCorp TA-002-P試験学習ガイド練習問題最新版 [Q183-Q200]

Share

試験準備には欠かさないトップクラスのHashiCorp TA-002-P試験学習ガイド練習問題最新版

今すぐTA-002-P問題を使おうTA-002-P問題集PDFで合格しよう


HashiCorp TA-002-P 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • Explain multi-cloud and provider-agnostic benefits
  • Understand infrastructure as code (IaC) concepts
トピック 2
  • Discover modules from the public Terraform Module Registry
  • Initialize a Terraform working directory (terraform init)
トピック 3
  • Given a scenario: choose when to use terraform workspace to create workspaces
  • Describe effect of Terraform refresh on state
トピック 4
  • Create and differentiate resource and data configuration
  • Understand the use of collection and structural types
トピック 5
  • Use Terraform built-in functions to write configuration
  • Generate and review an execution plan for Terraform (terraform plan)
トピック 6
  • Describe the benefits of Sentinel, registry, and workspaces
  • Describe variable scope within modules
  • child modules
トピック 7
  • Given a scenario: choose when to enable verbose logging and what the outcome
  • value is
  • Interact with module inputs and outputs
トピック 8
  • Given a scenario: choose when to use terraform taint to taint Terraform resources
  • Handle backend authentication methods
トピック 9
  • Describe backend block in configuration and best practices for partial configurations
  • Demonstrate using multiple providers
トピック 10
  • Destroy Terraform managed infrastructure (terraform destroy)
  • Given a scenario: choose when to use terraform fmt to format code
トピック 11
  • Execute changes to infrastructure with Terraform (terraform apply)
  • Handle Terraform and provider installation and versioning
トピック 12
  • Given a scenario: choose when to use terraform state to view Terraform state
  • Describe plugin based architecture
トピック 13
  • Describe secure secret injection best practice
  • Use resource addressing and resource parameters to connect resources together

 

質問 183
You should store secret data in the same version control repository as your Terraform configuration.

  • A. False
  • B. True

正解: A

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

 

質問 184
What is the name assigned by Terraform to reference this resource?

  • A. azurerm_resource_group
  • B. azurerm
  • C. test
  • D. dev

正解: C

 

質問 185
Which of the following is considered a Terraform plugin?

  • A. Terraform tooling
  • B. Terraform language
  • C. Terraform provider
  • D. Terraform logic

正解: C

解説:
Explanation
Terraform is built on a plugin-based architecture. All providers and provisioners that are used in Terraform configurations are plugins, even the core types such as AWS and Heroku. Users of Terraform are able to write new plugins in order to support new functionality in Terraform.
https://www.terraform.io/docs/plugins/basics.html

 

質問 186
Where does the Terraform local backend store its state?

  • A. In the terraform.tfstate file
  • B. In the user's .terraformrc file
  • C. In the terraform.tfvars file
  • D. In the /tmp directory

正解: A

解説:
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference: https://www.terraform.io/docs/language/settings/backends/local.html

 

質問 187
By default, provisioners that fail will also cause the Terraform apply itself to error. How can you change this default behavior within a provisioner?

  • A. provisioner "local-exec" { on_failure = continue }
  • B. provisioner "local-exec" { on_failure = "continue" }
  • C. provisioner "local-exec" { on_failure = "next" }
  • D. provisioner "local-exec" { when = "failure" terraform apply }

正解: B

解説:
Explanation
https://www.terraform.io/docs/provisioners/index.html

 

質問 188
Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements. (select three)

  • A. Module repositories must use this three-part name format, terraform-- .
  • B. The module must be on GitHub and must be a public repo.
  • C. The module must be PCI/HIPPA compliant.
  • D. The registry uses tags to identify module versions.
  • E. Release tag names must be for the format x.y.z, and can optionally be prefixed with a v .

正解: B,D,E

解説:
https://www.terraform.io/docs/registry/modules/publish.html#requirements

 

質問 189
True or False? When using the Terraform provider for Vault, the tight integration between these HashiCorp tools provides the ability to mask secrets in the terraform plan and state files.

  • A. False
  • B. True

正解: A

解説:
Currently, Terraform has no mechanism to redact or protect secrets that are returned via data sources, so secrets read via this provider will be persisted into the Terraform state, into any plan files, and in some cases in the console output produced while planning and applying. These artifacts must, therefore, all be protected accordingly.

 

質問 190
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)

  • A. When a change is made to the resources via the Azure Cloud Console, the current state file will not be updated
  • B. When a change is made to the resources via the Azure Cloud Console, Terraform will update the state file to reflect them during the next plan or apply
  • C. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in a new state file
  • D. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in the current state file

正解: B

 

質問 191
If a module uses a local variable, you can expose that value with a terraform output.

  • A. True
  • B. False

正解: A

解説:
Output values are like function return values.
Reference: https://www.terraform.io/docs/language/values/locals.html
https://www.terraform.io/docs/language/values/outputs.html

 

質問 192
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?

  • A. Object
  • B. Tuple
  • C. Map
  • D. List

正解: A,B

解説:
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

 

質問 193
During a terraform plan, a resource is successfully created but eventually fails during provisioning. What happens to the resource?

  • A. the resource is marked as tainted
  • B. Terraform attempts to provision the resource up to three times before exiting with an error
  • C. the terraform plan is rolled back and all provisioned resources are removed
  • D. it is automatically deleted

正解: A

解説:
Explanation
If a resource successfully creates but fails during provisioning, Terraform will error and mark the resource as
"tainted". A resource that is tainted has been physically created, but can't be considered safe to use since provisioning failed. Terraform also does not automatically roll back and destroy the resource during the apply when the failure happens, because that would go against the execution plan: the execution plan would've said a resource will be created, but does not say it will ever be deleted.

 

質問 194
What is the name assigned by Terraform to reference this resource?

  • A. test
  • B. main
  • C. google
  • D. compute_instance

正解: B

 

質問 195
Select two answers to complete the following sentence: Before a new provider can be used, it must be ______ and _______.

  • A. declared in the configuration
  • B. approved by HashiCorp
  • C. uploaded to source control
  • D. initialized

正解: A,D

解説:
Explanation
Each time a new provider is added to configuration -- either explicitly via a provider block or by adding a resource from that provider -- Terraform must initialize the provider before it can be used. Initialization downloads and installs the provider's plugin so that it can later be executed.

 

質問 196
A Terraform provider is not responsible for:

  • A. Exposing resources and data sources based on an API
  • B. Provisioning infrastructure in multiple clouds
  • C. Managing actions to take based on resource differences
  • D. Understanding API interactions with some service

正解: C

 

質問 197
A provider configuration block is required in every Terraform configuration.
Example:

  • A. True
  • B. False

正解: A

解説:
Reference: https://github.com/hashicorp/terraform/issues/17928

 

質問 198
Select all features which are exclusive to Terraform Enterprise. (Select Three)

  • A. Sentinel
  • B. Clustering
  • C. Audit Logs
  • D. Cost Estimation
  • E. SAML/SSO

正解: B,C,E

解説:
Sentinel and Cost Estimation are also available in Terraform Cloud
https://www.hashicorp.com/products/terraform/pricing/

 

質問 199
When using multiple configurations of the same Terraform provider, what meta-argument must be included in any non-default provider configurations?

  • A. depends_on
  • B. id
  • C. alias
  • D. name

正解: C

 

質問 200
......

無料HashiCorp Infrastructure Automation TA-002-P試験問題:https://jp.fast2test.com/TA-002-P-premium-file.html


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어