TA-002-P認定お試し[2023年11月19日] 最新TA-002-PのPDF問題集 [Q16-Q40]

Share

TA-002-P認定お試し[2023年11月19日] 最新TA-002-PのPDF問題集

ベストHashiCorp TA-002-P学習ガイドと問題集でof2023年更新


Hashicorp TA-002-P試験に合格することは、Terraformを使用するIT専門家にとって貴重な資産になります。認定は、所有者がテラフォームとその能力を確実に理解していること、およびテラフォームを使用してインフラストラクチャを効果的に作成および管理する能力を持っていることを示しています。さらに、この認定は、競争の激しい雇用市場で専門家が際立っているのを助けることができ、新しいキャリアの機会につながる可能性があります。


HashiCorp TA-002-P試験は、人気のあるインフラストラクチャコードツールであるTerraformの知識とスキルをテストするための認定試験です。この試験は、クラウド環境でインフラストラクチャを管理するためにTerraformを使用することを証明したい人を対象としています。この試験は、Terraformの基礎を理解し、ツールを使用してインフラストラクチャリソースを作成および管理する能力を評価するために設計されています。

 

質問 # 16
Terraform works well in Windows but a Windows server is required.

  • A. False
  • B. True

正解:A

解説:
Explanation
You may see this question in actual exam. Please remember : Terraform does not require GO language to be installed as a prerequisite and it does not require a Windows Server as well.


質問 # 17
What is the command you can use to set an environment variable named "var1"of type String?

  • A. export TF_VAR_VAR1
  • B. variable "var1" { type = "string"}
  • C. set TF_VAR_var1
  • D. export TF_VAR_var1

正解:D

解説:
Explanation
The environment variable must be in the format TF_VAR_name, so for the QUESTION NO TF_VAR_var1
is the correct choice.
https://www.terraform.io/docs/commands/environment-variables.html#tf_var_name


質問 # 18
A "backend" in Terraform determines how state is loaded and how an operation such as apply is executed.
Which of the following is not a supported backend type?

  • A. Terraform enterprise
  • B. Artifactory
  • C. Consul
  • D. Github
  • E. S3

正解:D

解説:
Explanation
Github is not a supported backend type.
https://www.terraform.io/docs/backends/types/index.html


質問 # 19
terraform validate validates the syntax of Terraform files.

  • A. False
  • B. True

正解:B

解説:
Explanation
https://www.terraform.io/cli/commands/validate
The terraform validate command validates the syntax and arguments of the Terraform configuration files.
Reference: https://www.terraform.io/docs/cli/code/index.html


質問 # 20
A user creates three workspaces from the command line - prod, dev, and test. Which of the following commands will the user run to switch to the dev workspace?

  • A. terraform workspace dev
  • B. terraform workspace -switch dev
  • C. terraform workspace switch dev
  • D. terraform workspace select dev

正解:D

解説:
Explanation
The terraform workspace select command is used to choose a different workspace to use for further operations.
https://www.terraform.io/docs/commands/workspace/select.html


質問 # 21
Only the user that generated a plan may apply it.

  • A. False
  • B. True

正解:B

解説:
The optional -out argument can be used to save the generated plan to a file for later execution with terraform apply, which can be useful when running Terraform in automation.
Reference: https://learn.hashicorp.com/tutorials/terraform/automate-terraform


質問 # 22
Multiple configurations for the same provider can be used in a single configuration file.

  • A. False
  • B. True

正解:B

解説:
You can optionally define multiple configurations for the same provider, and select which one to use on a per-resource or per-module basis. The primary reason for this is to support multiple regions for a cloud platform; other examples include targeting multiple Docker hosts, multiple Consul hosts, etc.
To include multiple configurations for a given provider, include multiple provider blocks with the same provider name, but set the alias meta-argument to an alias name to use for each additional configuration. For example:
# The default provider configuration
provider "aws" {
region = "us-east-1"
}
# Additional provider configuration for west coast region
provider "aws" {
alias = "west"
region = "us-west-2"
}
The provider block without alias set is known as the default provider configuration. When alias is set, it creates an additional provider configuration. For providers that have no required configuration arguments, the implied empty configuration is considered to be the default provider configuration.
https://www.terraform.io/docs/configuration/providers.html#alias-multiple-provider-instances


質問 # 23
Refer to the below code where developer is outputting the value of the database password but has used
sensitive parameter to hide the output value in the CLI.
output "db_password" { value = aws_db_instance.db.password description = "The password for logging in to
the database." sensitive = true}
Since sensitive is set to true, the value associated with db password will not be present in state file as
plain-text?

  • A. False
  • B. True

正解:A

解説:
Explanation
Sensitive output values are still recorded in the state, and so will be visible to anyone who is able to access the
state data.


質問 # 24
You can reference a resource created with for_each using a Splat ( *) expression.

  • A. False
  • B. True

正解:A

解説:
You cannot reference a resource created with for_each using a splat (*) expression, as it will not work with resources that have non-numeric keys. You need to use a for expression instead to iterate over the resource instances.


質問 # 25
terraform refresh command will not modify infrastructure, but does modify the state file.

  • A. False
  • B. True

正解:B

解説:
Explanation
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with
the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update the
state file. This does not modify infrastructure, but does modify the state file.
https://www.terraform.io/docs/commands/refresh.html


質問 # 26
Multiple provider instances blocks for AWS can be part of a single configuration file?

  • A. False
  • B. True

正解:B

解説:
Explanation
You can optionally define multiple configurations for the same provider, and select which one to use on a
per-resource or per-module basis. The primary reason for this is to support multiple regions for a cloud
platform; other examples include targeting multiple Docker hosts, multiple Consul hosts, etc.
To include multiple configurations for a given provider, include multiple provider blocks with the same
provider name, but set the alias meta-argument to an alias name to use for each additional configuration. For
example:
# The default provider configuration
provider "aws" {
region = "us-east-1"
}
# Additional provider configuration for west coast region
provider "aws" {
alias = "west"
region = "us-west-2"
}
The provider block without alias set is known as the default provider configuration. When alias is set, it
creates an additional provider configuration. For providers that have no required configuration arguments, the
implied empty configuration is considered to be the default provider configuration.
https://www.terraform.io/docs/configuration/providers.html#alias-multiple-provider-instances


質問 # 27
FILL BLANK
Which flag would you add to terraform plan to save the execution plan to a file?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct
answer are accepted.

正解:

解説:
-out=FILENAME
"You can use the optional -out=FILE option to save the generated plan to a file on disk, which you can later
execute by passing the file to terraform apply as an extra argument. This two-step workflow is primarily
intended for when running Terraform in automation. If you run terraform plan without the -out=FILE option
then it will create a speculative plan, which is a description of the effect of the plan but without any intent to
actually apply it." https://www.terraform.io/cli/commands/plan


質問 # 28
Terraform Cloud is more powerful when you integrate it with your version control system (VCS) provider. Select all the supported VCS providers from the answers below. (select four)

  • A. CVS Version Control
  • B. GitHub Enterprise
  • C. Azure DevOps Server
  • D. Bitbucket Cloud
  • E. GitHub

正解:B、C、D、E

解説:
Explanation
Terraform Cloud supports the following VCS providers:
- https://www.terraform.io/docs/cloud/vcs/github.html
- https://www.terraform.io/docs/cloud/vcs/github.html
- https://www.terraform.io/docs/cloud/vcs/github-enterprise.html
- https://www.terraform.io/docs/cloud/vcs/gitlab-com.html
- https://www.terraform.io/docs/cloud/vcs/gitlab-eece.html
- https://www.terraform.io/docs/cloud/vcs/bitbucket-cloud.html
- https://www.terraform.io/docs/cloud/vcs/bitbucket-server.html
- https://www.terraform.io/docs/cloud/vcs/azure-devops-server.html
- https://www.terraform.io/docs/cloud/vcs/azure-devops-services.html
https://www.terraform.io/docs/cloud/vcs/index.html#supported-vcs-providers


質問 # 29
Terraform works well in Windows but a Windows server is required.

  • A. False
  • B. True

正解:A

解説:
You may see this
Terraform does not require GO language to be installed as a prerequisite and it does not require a Windows Server as well.


質問 # 30
What advantage does an operations team that uses infrastructure as code have?

  • A. The ability to delete infrastructure
  • B. The ability to update existing infrastructure
  • C. The ability to reuse best practice configurations and settings
  • D. The ability to autoscale a group of servers

正解:C


質問 # 31
Your team lead does not trust the junior terraform engineers who now have access to the git repo . So , he
wants you to have some sort of a checking layer , whereby , you can ensure that the juniors will not create any
non-compliant resources that might lead to a security audit failure in future. What can you do to efficiently
enforce this?

  • A. Use Terraform OSS Sentinel Lite version , which will save cost , since there is no charge for OSS , but it
    can still check for most non-compliant rules using Policy-As-Code.
  • B. Create a design /security document (in PDF) and share to the team , and ask them to always follow that
    document , and never deviate from it.
  • C. Create a git master branch , and implement PR . Every change needs to be reviewed by you , before
    being merged to the master branch.
  • D. Since your team is using Hashicorp Terraform Enterprise Edition , enable Sentinel , and write
    Policy-As-Code rules that will check for non-compliant resource provisioning , and prevent/report them.

正解:D

解説:
Explanation
Sentinel is an embedded policy-as-code framework integrated with the HashiCorp Enterprise products. It
enables fine-grained, logic-based policy decisions, and can be extended to use information from external
sources.
https://www.terraform.io/docs/cloud/sentinel/index.html


質問 # 32
Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?

  • A. required_versions
  • B. required-provider
  • C. required_providers
  • D. required-version

正解:C

解説:
Explanation
For production use, you should constrain the acceptable provider versions via configuration file to ensure that new versions with breaking changes will not be automatically installed by terraform init in the future.
Example
terraform {
required_providers {
aws = ">= 2.7.0"
}
}


質問 # 33
Which of the following Terraform files should be ignored by Git when committing code to a repo? (select Three)

  • A. terraform.tfstate
  • B. Any files with names ending in .auto.tfvars or .auto.tfvars.json.
  • C. input.tf
  • D. output.tf
  • E. Files named exactly terraform.tfvars or terraform.tfvars.json.

正解:A、B、E

解説:
The .gitignore file should be configured to ignore Terraform files that either contain sensitive data or are not required to save.
Terraform state (terraform.tfstate) can contain sensitive data, depending on the resources in use and your definition of "sensitive." The state contains resource IDs and all resource attributes. For resources such as databases, this may contain initial passwords.
When using local state, state is stored in plain-text JSON files.
The terraform.tfvars file may contain sensitive data, such as passwords or IP addresses of an environment that you may not want to share with others.


質問 # 34
When Terraform needs to be installed in a location where it does not have internet access to download the installer and upgrades, the installation is generally known as to be __________.

  • A. air-gapped
  • B. a private install
  • C. disconnected
  • D. non-traditional
    Explanation
    A Terraform Enterprise install that is provisioned on a network that does not have Internet access is generally known as an air-gapped install. These types of installs require you to pull updates, providers, etc. from external sources vs. being able to download them directly.

正解:D


質問 # 35
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

  • A. Local values
  • B. Collection functions
  • C. Dynamic blocks
  • D. Count arguments

正解:C


質問 # 36
Terraform providers are always installed from the Internet.

  • A. False
  • B. True

正解:A

解説:
Terraform configurations must declare which providers they require, so that Terraform can install and use them.


質問 # 37
How does Terraform determine dependencies between resources?

  • A. Terraform requires resources in a configuration to be listed in the order they will be created to determine
    dependencies
  • B. Terraform automatically builds a resource graph based on resources, provisioners, special
    meta-parameters, and the state file, if present.
  • C. Terraform requires resource dependencies to be defined as modules and sourced in order
  • D. Terraform requires all dependencies between resources to be specified using the depends_on parameter

正解:B

解説:
Explanation
https://learn.hashicorp.com/tutorials/terraform/dependencies


質問 # 38
Any user can publish modules to the public Terraform Module Registry.

  • A. False
  • B. True

正解:A


質問 # 39
True or False? Each Terraform workspace uses its own state file to manage the infrastructure associated with
that particular workspace.

  • A. False
  • B. True

正解:B

解説:
Explanation
The persistent data stored in the backend belongs to a workspace. Initially, the backend has only one
workspace, called "default", and thus there is only one Terraform state associated with that configuration.


質問 # 40
......


Hashicorp TA-002-P試験は、テラフォームを使用してインフラストラクチャをコードとして展開および管理する際に、専門家のスキルと知識をテストするように設計されています。この認定は、テラフォームが初めてであり、ツールでの習熟度を実証したい人を対象としています。この試験では、Terraformワークフロー、リソース管理、構成構文、基本的なネットワーキングの概念などのトピックについて説明します。

 

有効なTA-002-P試験 最新問題で2023年最新の学習ガイド:https://www.passtest.jp/HashiCorp/TA-002-P-shiken.html

トップクラスHashiCorp TA-002-P試験最先端学習ガイド!練習問題バージョン:https://drive.google.com/open?id=1l15Ssk9jcNSsEtgwkFCv-W0TdCjrfeEc