When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
Correct Answer: B
TF_LOG_PATH specifies where the log should persist its output to. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled. For example, to always write the log to the directory you're currently running terraform from: export TF_LOG_PATH=./terraform.log export TF_LOG=TRACE
Question 87
If a module uses a local variable, you can expose that value with a terraform output.
Correct Answer: A
Explanation 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
Question 88
Your team uses terraform OSS . You have created a number of resuable modules for important , independent network components that you want to share with your team to enhance consistency . What is the correct option/way to do that?
Correct Answer: B
Explanation Software development encourages code reuse through reusable artifacts, such as libraries, packages and modules. Most programming languages enable developers to package and publish these reusable components and make them available on a registry or feed. For example, Python has Python Package Index and PowerShell has PowerShell Gallery. For Terraform users, the Terraform Registry enables the distribution of Terraform modules, which are reusable configurations. The Terraform Registry acts as a centralized repository for module sharing, making modules easier to discover and reuse. The Registry is available in two variants: * Public Registry houses official Terraform providers -- which are services that interact with an API to expose and manage a specific resource -- and community-contributed modules. * Private Registry is available as part of the Terraform Cloud, and can host modules internally within an organization. https://www.terraform.io/docs/registry/index.html
Question 89
Multiple provider instances blocks for AWS can be part of a single configuration file?
Correct Answer: 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
Question 90
If a Terraform creation-time provisioner fails, what will occur by default?