Courseiva

AWS provider · topic practice

Provider Management practice questions

Provider Management covers how Terraform discovers, installs, locks, and configures providers, including AWS provider version constraints and credentials. Questions test CLI commands like terraform init and terraform providers, provider source addresses, the dependency lock file, and how child modules inherit or require provider configuration.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Provider Management

What the exam tests

What to know about Provider Management

Be able to initialize providers, verify them with terraform providers, force re-downloads, and wire provider configuration across root and child modules. The most important thing is understanding provider source addresses, version constraints, and the lock file so initialization is reproducible.

Running terraform init and terraform providers to confirm providers are installed and initialized

Forcing provider re-download with terraform init -upgrade or clearing the plugin cache directory

Declaring non-registry or custom providers via required_providers source addresses and local mirrors

How child modules without provider blocks inherit AWS provider configuration from the root module

Watch out for

Common Provider Management exam traps

  • ▸Assuming terraform init re-downloads providers automatically; it reuses the lock file and cache unless -upgrade is used.
  • ▸Forgetting that a child module with no provider block still needs the root module to pass or configure the AWS provider.
  • ▸Editing .terraform.lock.hcl by hand or ignoring checksum mismatches instead of regenerating it with terraform init -upgrade.

Practice set

Provider Management questions

20 questions · select your answer, then reveal the explanation

How does Terraform resolve the version of a provider if the version is defined in both 'terraform' block and the 'provider' block?

Which attributes can be configured within a provider block? (Select THREE)

Which of the following are valid provider version constraint operators? (Select TWO)

Which of these are required components when defining a provider in 'required_providers'? (Select TWO)

What are requirements for a custom provider to be recognized by Terraform? (Select THREE)

A platform team maintains a shared Terraform module that is used by multiple application teams. The module currently configures the AWS provider internally with a hardcoded region. The platform team wants consuming root modules to be able to supply their own provider configuration, including region and assume_role settings, without editing the shared module. What should the platform team change in the shared module?

A platform team maintains a shared child module that creates AWS resources in us-east-1. In the root module, they configure two aliased AWS providers: one default for us-east-1 and one aliased as 'west' for us-west-2. They want the child module to use the 'west' provider instance for all AWS resources it creates. Which configuration should they use?

Your organization mirrors all Terraform providers into an internal registry at `registry.example.com`. A root module declares `required_providers { aws = { source = "registry.example.com/hashicorp/aws", version = "5.31.0" } }`. A developer runs `terraform init` from a laptop that has no direct internet access and receives an error stating the provider package could not be retrieved. The internal registry is reachable and hosts the package. Which CLI configuration is required so Terraform contacts the internal registry instead of the public Terraform Registry?

A consultant is onboarding a client whose Terraform configuration was written years ago. The root module's terraform block contains only 'required_version' and no required_providers entry for AWS. The client wants to ensure future runs use the modern registry addressing for the AWS provider. What should the consultant do?

A security team mandates that all Terraform runs in an AWS account use short-lived credentials obtained from a corporate identity provider. An engineer configures the AWS provider with assume_role using a role ARN and an external_id, but Terraform still reads long-lived access keys from environment variables in CI. What should the engineer do to ensure the provider uses the assume_role configuration instead of the environment credentials?

Your root module declares the AWS provider with `configuration_aliases = [aws.replica]`, and a child module is expected to create resources in a second region. The child module already contains a `required_providers` block for `hashicorp/aws` but no `provider` block. When you run `terraform validate`, it fails with an error about a missing provider configuration. What should you do in the child module to resolve this?

An organization requires that all Terraform runs in its CI system use AWS credentials obtained from short-lived OIDC federation rather than long-lived access keys, and that no credentials ever be written to configuration files or state. The CI runners already expose a web identity token through environment variables. Which provider configuration approach meets these constraints?

A platform team maintains a reusable module that can target either a commercial AWS region or an AWS GovCloud region. The root configuration declares two aliased AWS provider configurations named `aws.commercial` and `aws.govcloud`. The module must accept whichever provider configuration the caller chooses without hardcoding either region. Which configuration in the child module correctly implements this requirement?

An engineer is writing a root module that must deploy resources into two AWS regions using the same AWS provider version. The module already contains a default provider "aws" block for us-east-1. The engineer adds a second provider "aws" block with alias = "west" for us-west-2 and references aws.west in a resource. During plan, Terraform reports that no configuration exists for the aliased provider in the module. What is the most likely cause?

An operations engineer runs `terraform init` in a CI pipeline for a configuration that uses the AWS provider. The pipeline has no outbound internet access to the public Terraform Registry, but a private registry mirror is available at `registry.example.com`. The engineer needs Terraform to fetch the provider from the mirror while still verifying the official signing key. Which combination of settings achieves this?

You are preparing a Terraform configuration for a multi-account AWS environment. The root module must pass two different AWS provider configurations to a child module: one for the primary account and one for a logging account. The child module will create resources in both accounts. Which two actions are required to accomplish this? (Choose two.)

A team is preparing a root module that must deploy resources with two different AWS provider configurations: one using a cross-account assumed role for production and one using the default credentials for shared services. They also want a child module to be able to receive the production configuration. Which two configurations are required to achieve this? (Choose two.)

Your organization uses a private Terraform registry to distribute an internal AWS provider fork. A developer runs `terraform init` and receives an error that the provider cannot be found. The configuration specifies `source = "registry.internal.example.com/org/aws"` and `version = "5.1.0"`. The provider is published and the developer is authenticated. What is the most likely cause?

A security team requires that all Terraform runs use temporary AWS credentials obtained from `aws sts assume-role` rather than static access keys. The team uses the AWS provider and wants Terraform to assume a role automatically during each run. Which provider configuration achieves this while still allowing the caller to override the source profile?

A platform team maintains a root module that declares `required_providers` with `aws = { source = "hashicorp/aws", version = "~> 5.40" }` and configures two aliased AWS providers, `aws` and `aws.replica`, plus `configuration_aliases = [aws.replica]`. They plan to call a child module that must create resources in the replica region. Which two provider-related configurations are required for the child module to accept the aliased provider? (Choose two.)

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Provider Management sessions

Start a Provider Management only practice session

Every question in these sessions is drawn from the Provider Management domain — nothing else.

Related practice questions

Related AWS provider topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the AWS provider exam test about Provider Management?
Be able to initialize providers, verify them with terraform providers, force re-downloads, and wire provider configuration across root and child modules. The most important thing is understanding provider source addresses, version constraints, and the lock file so initialization is reproducible.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Provider Management questions in a focused session?
Yes — the session launcher on this page draws every question from the Provider Management domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other AWS provider topics?
Use the topic links above to move to related areas, or go back to the AWS provider question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the AWS provider exam covers. They are not copied from any real exam or dump site.