HashiCorp Certified: Terraform Associate (004) (HCTA0-004) - Terraform-Associate-004 模擬練習
What is the Terraform style convention for indenting a nesting level compared to the one above it?
正解: C
解説: (PassTest メンバーにのみ表示されます)
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource " main ' .
Which of these is the correct way to define the output value?
Which of these is the correct way to define the output value?
正解: A
解説: (PassTest メンバーにのみ表示されます)
What feature stops multiple users from operating on the Terraform state at the same time?
正解: B
解説: (PassTest メンバーにのみ表示されます)
Which of the following is not a way to trigger terraform destroy?
正解: D
解説: (PassTest メンバーにのみ表示されます)
You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?
正解: B
解説: (PassTest メンバーにのみ表示されます)
Which are examples of infrastructure as code? Choose two correct answers.
正解: A
解説: (PassTest メンバーにのみ表示されます)
Which Terraform command checks that your configuration syntax is correct?
正解: C
解説: (PassTest メンバーにのみ表示されます)
It is best practice to store secret data in the same version control repository as your Terraform configuration.
正解: B
解説: (PassTest メンバーにのみ表示されます)
You need to determine from which paths Terraform is loading the providers referenced in your *.tf files.
How can you enable additional logging to see this information?
How can you enable additional logging to see this information?
正解: D
解説: (PassTest メンバーにのみ表示されます)
A variable block is shown in the exhibit.
You will use this variable as the value of the tags argument in several resources. The data format must be a set of key-value pairs.
Exhibit
variable " tags " {
description = " Metadata tags for resources "
type = __________________
}
Which type argument would you use?
You will use this variable as the value of the tags argument in several resources. The data format must be a set of key-value pairs.
Exhibit
variable " tags " {
description = " Metadata tags for resources "
type = __________________
}
Which type argument would you use?
正解: A
解説: (PassTest メンバーにのみ表示されます)
You've just finished refactoring part of your Terraform workspace's configuration to use a module to manage some of your resources. When you plan your changes, you notice that Terraform will destroy and recreate the affected resources. Doing so could cause unintended downtime in the application your workspace manages.
What supported approach should you take to complete the refactor without destroying and recreating your resources?
What supported approach should you take to complete the refactor without destroying and recreating your resources?
正解: D
解説: (PassTest メンバーにのみ表示されます)
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
正解: C,E
解説: (PassTest メンバーにのみ表示されます)