HashiCorp TA-002-P日常練習試験は2023年最新のに更新された450問あります
有効問題を試そう!TA-002-P試験で実際の試験問題と解答
試験は60問の多肢選択問題で構成されており、90分以内に完了する必要があります。試験に合格するには、候補者は少なくとも70%のスコアを取得する必要があります。試験は、Terraformに関連するさまざまなトピックをカバーしており、基本的なコンセプト、構成言語、プロバイダ、リソース、状態管理、およびTerraformの使用に関するベストプラクティスなどが含まれています。
試験は60の多肢選択問題から構成され、Terraformの基礎を理解しているかどうか、Terraform構成を書き、管理する方法、Terraformを使用してインフラストラクチャをプロビジョニングする方法、Terraformモジュールを使用する方法などをテストするように設計されています。試験はまた、Terraformプロバイダ、状態管理、およびプロダクション環境でTerraformを使用するためのベストプラクティスなどのトピックもカバーしています。
質問 # 102
Which task does teraform init not perform?
- A. Connects to the backend
- B. Sources any modules and copies the configuration locally
- C. Validates all required variables are present
- D. Sources all providers present in the configuration and ensures they are downloaded and available locally
正解:C
質問 # 103
You have multiple developers working on a terraform project (using terraform OSS), and have saved the terraform state in a remote S3 bucket . However ,team is intermittently experiencing inconsistencies in the provisioned infrastructure / failure in the code . You have traced this problem to simultaneous/concurrent runs of terraform apply command for 2/more developers . What can you do to fix this problem?
- A. Enable terraform state locking for the S3 backend using DynamoDB table. This prevents others from acquiring the lock and potentially corrupting your state.
- B. Structure your team in such a way that only one individual will run terraform apply , everyone will just make changes and share with him. Then there will be no chance of any inconsistencies.
- C. Use terraform workspaces feature, this will fix this problem by default , as every developer will have their own state file , and terraform will merge them on server side on its own.
- D. Stop using remote state , and store the developer tfstate in their own machine . Once a day , all developers should sit together and merge the state files manually , to avoid any inconsistencies.
正解:A
解説:
Explanation
S3 backend support state locking using DynamoDB.
https://www.terraform.io/docs/state/locking.html
質問 # 104
Which of the following is not supported backend types in Terra form?
- A. manta
- B. gcs
- C. consul
- D. bitbucket
正解:D
質問 # 105
What kind of configuration block will create an infrastructure object with settings specified in the block?
- A. provider
- B. data
- C. state
- D. resource
正解:D
質問 # 106
The terraform init command is always safe to run multiple times, to bring the working directory up to date
with changes in the configuration. Though subsequent runs may give errors, this command will never delete
your existing configuration or state.
- A. False
- B. True
正解:B
解説:
Explanation
https://www.terraform.io/docs/commands/init.html
質問 # 107
What does the command terraform fmt do?
- A. Deletes the existing configuration file.
- B. Updates the font of the configuration file to the official font supported by HashiCorp.
- C. Formats the state file in order to ensure the latest state of resources can be obtained.
- D. Rewrite Terraform configuration files to a canonical format and style.
正解:D
解説:
Explanation
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.
This command applies a subset of the Terraform language style conventions, along with other minor adjustments for readability.
Other Terraform commands that generate Terraform configuration will produce configuration files that conform to the style imposed by terraform fmt, so using this style in your own files will ensure consistency.
https://www.terraform.io/docs/commands/fmt.html
質問 # 108
What is terraform refresh intended to detect?
- A. Terraform configuration code changes
- B. Empty state files
- C. State file drift
- D. Corrupt state files
正解:C
質問 # 109
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run
terraform apply and the VM is created successfully.
What will happen if you delete the VM using the cloud provider console, and run terraform apply again
without changing any Terraform code?
- A. Terraform will not make any changes
- B. Terraform will report an error
- C. Terraform will recreate the VM
- D. Terraform will remove the VM from state file
正解:C
質問 # 110
In the below configuration, how would you reference the module output vpc_id ?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct
answer are accepted.
正解:
解説:
module.vpc.id
質問 # 111
Your company has been using Terraform Cloud for a some time now . But every team is creating their own
modules , and there is no standardization of the modules , with each team creating the resources in their own
unique way . You want to enforce a standardization of the modules across the enterprise . What should be your
approach.
- A. Upgrade to Terraform enterprise , since this is not possible in terraform cloud.
- B. Implement a Private module registry in Terraform cloud , and ask teams to reference them.
- C. Upload the modules in the terraform public module registry , and ask teams to reference them
- D. Create individual workspaces for each team , and ask them to share modules across workspaces.
正解:B
解説:
Explanation
Terraform Cloud's private module registry helps you share Terraform modules across your organization. It
includes support for module versioning, a searchable and filterable list of available modules, and a
configuration designer to help you build new workspaces faster.
By design, the private module registry works much like the public Terraform Registry. If you're already used
the public registry, Terraform Cloud's registry will feel familiar.
Understand the different offerings in Terraform OS, Terraform Cloud and Terraform Enterprise. Terraform
Cloud's private module registry helps you share Terraform modules across your organization.
https://www.terraform.io/docs/cloud/registry/index.html
https://www.terraform.io/docs/cloud/registry/publish.html
質問 # 112
Which of the following commands will launch the Interactive console for Terraform interpolations?
- A. terraform cli
- B. terraform console
- C. terraform cmdline
Explanation
https://www.terraform.io/docs/commands/console.html - D. terraform
正解:A
質問 # 113
Valarie has created a database instance in AWS and for ease of use is outputting the value of the database
password with the following code. Valarie wants to hide the output value in the CLI after terraform apply
that's why she has used sensitive parameter.
1. output "db_password" {
2. value = local.db_password
3. sensitive = true
4. }
Since sensitive is set to true, will the value associated with db password be available in plain-text in the state
file for everyone to read?
- A. No
- B. Yes
正解:B
解説:
Explanation
Outputs can be marked as containing sensitive material by setting the sensitive attribute to true, like this:
output "sensitive" {
sensitive = true
value = VALUE
}
When outputs are displayed on-screen following a terraform apply or terraform refresh, sensitive outputs are
redacted, with <sensitive> displayed in place of their value.
Limitations of Sensitive Outputs
The values of sensitive outputs are still stored in the Terraform state, and available using the terraform output
command, so cannot be relied on as a sole means of protecting values.
Sensitivity is not tracked internally, so if the output is interpolated in another module into a resource, the value
will be displayed.
質問 # 114
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
- A. The ability to restrict modules to members of Terraform Cloud or Enterprise organizations
- B. The ability to share modules with public Terraform users and members of Terraform Enterprise Organizations
- C. The ability to share modules publicly with any user of Terraform
- D. The ability to tag modules by version or release
正解:C
解説:
Explanation
Terraform Registry is an index of modules shared publicly using this protocol. This public registry is the easiest way to get started with Terraform and find modules created by others in the community.
Reference: https://www.terraform.io/docs/language/modules/sources.html
質問 # 115
Which parameters does terraform import require? Choose two correct answers.
- A. Provider
- B. Resource ID
- C. Path
- D. Resource address
正解:B、D
質問 # 116
What is not processed when running a terraform refresh?
- A. Credentials
- B. State file
- C. Cloud provider
- D. Configuration file
正解:A、C
解説:
Reference: https://www.terraform.io/docs/cli/commands/refresh.html
質問 # 117
......
HashiCorp TA-002-P(HashiCorp Certified:Terraform Associate)認定試験は、ITプロフェッショナルがTerraformとクラウドインフラストラクチャの管理における専門知識を示す優れた方法です。この認定は、世界的に認知されており、クラウドインフラストラクチャの管理、自動化、および展開のスキルを示すことにより、個人のキャリアの見通しを向上させることができます。
テストエンジンに練習TA-002-Pテスト問題:https://www.goshiken.com/HashiCorp/TA-002-P-mondaishu.html
TA-002-Pリアル試験問題でテストエンジン問題集トレーニングには450問あります:https://drive.google.com/open?id=192LkRgZwdoZigT3jKwQjNCFjQyFOXx9S