What is the primary benefit of configuring a provider mirror in Terraform?
Think about how mirrors help with repeated downloads in other software.
Provider mirrors cache provider binaries to speed up Terraform runs and reduce external downloads.
Which of the following Terraform CLI configuration snippets correctly sets a provider mirror for registry.terraform.io to a local file path /mnt/terraform-providers?
Look for the block that defines a filesystem mirror and includes the correct registry.
The filesystem_mirror block with path and include correctly sets the mirror. The direct block excludes the mirrored providers.
Your company has multiple teams using Terraform. You want to set up a centralized provider mirror server to cache providers and reduce internet usage. Which architecture best supports this goal?
Think about how a shared HTTP mirror can serve multiple clients efficiently.
A centralized HTTP mirror server allows all teams to fetch cached providers efficiently, reducing external downloads and improving speed.
When using a private provider mirror server, which security practice is most important to ensure provider integrity?
Think about how to trust the providers you distribute internally.
Verifying checksums and signatures ensures that providers are authentic and unmodified, protecting against tampering.
Given a Terraform CLI configured with a filesystem mirror for registry.terraform.io providers, what happens if a requested provider version is not found in the mirror?
Consider how Terraform handles missing providers in mirrors to maintain smooth runs.
If a provider is missing in the mirror, Terraform downloads it from the public registry and caches it locally for future use.