- (Exam Topic 1)
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
Correct Answer:
A
https://www.terraform.io/cli/commands/refresh#:~:text=The terraform refresh command reads%
- (Exam Topic 4)
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
Correct Answer:
B
[-upgrade] - Opt to upgrade modules and plugins as part of their respective installation steps. See the sections below for more details. Reference: https://www.terraform.io/cli/commands/init#upgrade
- (Exam Topic 1)
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
Correct Answer:
C
Terraform Cloud's private registry works similarly to the public Terraform Registry and helps you share Terraform providers and Terraform modules across your organization. It includes support for versioning and a searchable list of available providers and modules.
- (Exam Topic 1)
A Terraform provider is not responsible for:
Correct Answer:
B
https://www.terraform.io/language/providers
- (Exam Topic 4)
Multiple provider instances blocks for AWS can be part of a single configuration file?
Correct Answer:
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