Terraform provisioners that require authentication can use the ______ block.
Correct Answer: D
TA-002-P Exam Question 127
What does terrafom plan do ?
Correct Answer: B
TA-002-P Exam Question 128
Your team has started using terraform OSS in a big way , and now wants to deploy multi region deployments (DR) in aws using the same terraform files . You want to deploy the same infra (VPC,EC2 ...) in both us-east-1 ,and us-west-2 using the same script , and then peer the VPCs across both the regions to enable DR traffic. But , when you run your script , all resources are getting created in only the default provider region. What should you do? Your provider setting is as below - # The default provider configuration provider "aws" { region = "us-east-1" }
Correct Answer: C
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" } https://www.terraform.io/docs/configuration/providers.html
TA-002-P Exam Question 129
Terraform configuration (including any module references) can contain only one Terraform provider type.
Correct Answer: B
TA-002-P Exam Question 130
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
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