Question 550
A build pipeline compares module versioning across source types. A reviewer must determine how to spot effects caused by changed child resource definitions. Which action is the appropriate choice?
- Review the plan after a module upgrade
- Recognize module versions are not locked by
.terraform.lock.hcl
- Do not assign a
version argument to a local path module
- Use a release tag as a Git source ref
Explanation
Correct Answer
A:A new module may replace resources or alter defaults; initialization only fetches code; the plan reveals its likely infrastructure impact; this behavior should be assessed against the concrete need to spot effects caused by changed child resource definitions. This directly supports the task to spot effects caused by changed child resource definitions during a staged rollout.
Incorrect Answers
B:The dependency lock file records provider versions and checksums; module selection is governed by source references and registry module constraints; this behavior should be assessed against the concrete need to spot effects caused by changed child resource definitions. The stated requirement is to spot effects caused by changed child resource definitions, not to avoid assuming the provider lock file pins downloaded module packages; this alternative addresses a different control or phase.
C:Local source content is taken directly from disk; versioning needs repository practices rather than Terraform's registry-module version selector; this behavior should be assessed against the concrete need to spot effects caused by changed child resource definitions. That can be useful when the aim is to recognize that filesystem modules follow the current checkout, but it does not directly deliver the requested ability to spot effects caused by changed child resource definitions.
D:A Git tag can name a release, but mutable tags remain a repository-governance risk; this version control is separate from registry module version constraints; this behavior should be assessed against the concrete need to spot effects caused by changed child resource definitions. The distinction matters here: using that mechanism to refer to a known Git module milestone would still leave the objective to spot effects caused by changed child resource definitions unmet.
Question 551
A team is retrieving reusable Terraform modules. The team must both retrieve a published module from its registry address and fetch module code directly from a Git repository. Which paired choice implements those distinct goals?
- Use
?ref=v1.4.0 with a Git source + Use git::https://... as the source
- Use a public registry source
namespace/name/provider + Use the module registry's documented inputs and outputs
- Use a public registry source
namespace/name/provider + Use git::https://... as the source
- Use a public registry source
namespace/name/provider + Avoid confusing a module with a provider
- Understand source address is required for a module call + Run
terraform init after adding an external module
- Use a local module source for rapid in-repository changes + Use
git::https://... as the source
Explanation
Correct Answer
C:For the first criterion, the shorthand identifies a Terraform Registry module and its provider category; version constraints can apply to registry-sourced modules; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository; this directly addresses the need to retrieve a published module from its registry address. For the separate second criterion, terraform supports a Git URL source and can use a reference query parameter; the registry version argument is not used to version raw Git sources; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository; this fulfills the need to fetch module code directly from a Git repository. Together they cover the independent tasks of retrieve a published module from its registry address and fetch module code directly from a Git repository without exchanging the responsibilities of these features.
Incorrect Answers
A:The second measure does meet the fetch module code directly from a Git repository requirement, but the first is designed for another concern: A Git ref selects code from the repository; for reproducibility a commit or immutable release tag is safer than a moving branch; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. That first component is designed to pin a Git-sourced module to a named tag, commit, or branch reference, which does not accomplish the requested task to retrieve a published module from its registry address, even though the other measure satisfies fetch module code directly from a Git repository.
B:The first measure meets the requirement to retrieve a published module from its registry address, but its partner serves a different role: Published modules define an intended interface; callers supply declared variables and consume declared outputs; internal resources are implementation details; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. That second component is designed to integrate the module without assuming internal resource names are its API, so the still-missing criterion is to fetch module code directly from a Git repository, while the first criterion remains retrieve a published module from its registry address.
D:The first measure meets the requirement to retrieve a published module from its registry address, but its partner serves a different role: A module contains HCL blocks; a provider implements external API operations; an external module may use providers but is not itself a provider binary; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. That second component is designed to recognize reusable Terraform configuration versus an API integration plugin, so the still-missing criterion is to fetch module code directly from a Git repository, while the first criterion remains retrieve a published module from its registry address.
E:The first measure is intended to identify where Terraform should load the child configuration: The source argument resolves module code; a module block with no valid source cannot simply invent the child's resources; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. The second measure is intended to download newly declared module source code: Initialization retrieves remote modules and prepares the local working directory. terraform fmt cannot fetch source packages; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. Neither is the directly designated method for the separate goals of retrieve a published module from its registry address and fetch module code directly from a Git repository in this review.
F:The second measure does meet the fetch module code directly from a Git repository requirement, but the first is designed for another concern: A local module is loaded from the current filesystem tree; changes are visible with the current checkout instead of awaiting a registry release; this behavior should be assessed against the concrete need to retrieve a published module from its registry address and fetch module code directly from a Git repository. That first component is designed to develop a shared component without publishing a remote module release, which does not accomplish the requested task to retrieve a published module from its registry address, even though the other measure satisfies fetch module code directly from a Git repository.
Question 552
A caller cannot access an internal child value. The requirement is to allow callers to omit that specific module argument. Which Terraform mechanism directly meets this requirement?
- Treat module output sensitivity as contagious
- Use a default on a child input for optional behavior
- Use child locals for internal derivations
- Pass a root output through a child input explicitly
Explanation
Correct Answer
B:A variable default supplies the value within the child when no argument is passed; other child inputs without defaults remain required; this behavior should be assessed against the concrete need to allow callers to omit that specific module argument. This directly supports the task to allow callers to omit that specific module argument during an automated release.
Incorrect Answers
A:Sensitive values can flow across module boundaries; a root output exposing a sensitive value generally needs an explicit sensitive marking; state protection remains necessary; this behavior should be assessed against the concrete need to allow callers to omit that specific module argument. The distinction matters here: using that mechanism to avoid accidentally publishing a secret through the caller's outputs would still leave the objective to allow callers to omit that specific module argument unmet.
C:Local values are not parameters the caller can set directly; they provide readable internal names for expressions derived from variables and resources; this behavior should be assessed against the concrete need to allow callers to omit that specific module argument. The stated requirement is to allow callers to omit that specific module argument, not to compute implementation details without exposing extra inputs; this alternative addresses a different control or phase.
D:A caller can use module.upstream.value as an argument to module.downstream; this also creates a dependency through the reference; this behavior should be assessed against the concrete need to allow callers to omit that specific module argument. That can be useful when the aim is to connect two modules while preserving their separate scopes, but it does not directly deliver the requested ability to allow callers to omit that specific module argument.
Question 553
An engineer wants to instantiate multiple copies of a component. A reviewer must determine how to consume a child module result in the caller. Which action is the appropriate choice?
- Build a root orchestration module
- Read
module.web.endpoint after declaring an output
- Keep backend configuration in the root module
- Pass the
providers mapping to a child
Explanation
Correct Answer
B:Only named output values are exposed by the module reference; the caller cannot assume internal resource addresses are directly visible; this behavior should be assessed against the concrete need to consume a child module result in the caller. This directly supports the task to consume a child module result in the caller during a staged rollout.
Incorrect Answers
A:The root module can connect network, compute, and monitoring children through inputs and outputs; each child's encapsulation reduces repeated configuration; this behavior should be assessed against the concrete need to consume a child module result in the caller. That can be useful when the aim is to compose specialized children without embedding infrastructure logic everywhere, but it does not directly deliver the requested ability to consume a child module result in the caller.
C:The backend applies to the top-level working configuration; child modules cannot independently select state storage during a normal shared module call; this behavior should be assessed against the concrete need to consume a child module result in the caller. It may support a related workflow, but the question specifically requires the mechanism for consume a child module result in the caller rather than avoid assuming a backend in a child controls the caller's state.
D:A module provider map binds the child's expected names to configured parent provider instances; it does not install providers independently; this behavior should be assessed against the concrete need to consume a child module result in the caller. The stated requirement is to consume a child module result in the caller, not to select which root provider configurations the module uses; this alternative addresses a different control or phase.
Question 554
The immediate Terraform task is to review module inputs, outputs, and resource movements before upgrading. Which method handles that task most directly?
- Review the plan after a module upgrade
- Treat major version changes as interface changes
- Use
?ref=COMMIT on a Git module
- Specify a registry module version in the call
Explanation
Correct Answer
B:A new release can change the child module's contract or resource addresses; a valid installation does not guarantee a safe infrastructure plan; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading. This directly supports the task to review module inputs, outputs, and resource movements before upgrading during a configuration change.
Incorrect Answers
A:A new module may replace resources or alter defaults; initialization only fetches code; the plan reveals its likely infrastructure impact; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading. The stated requirement is to review module inputs, outputs, and resource movements before upgrading, not to spot effects caused by changed child resource definitions; this alternative addresses a different control or phase.
C:A commit hash identifies precise source content; module version arguments are not interpreted for raw Git sources; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading. The distinction matters here: using that mechanism to choose a specific revision from an external Git repository would still leave the objective to review module inputs, outputs, and resource movements before upgrading unmet.
D:The source says which module to fetch, while version constrains published versions; both are important for predictable registry consumption; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading. It may support a related workflow, but the question specifically requires the mechanism for review module inputs, outputs, and resource movements before upgrading rather than distinguish registry version selection from source identification.
Question 555
A developer is deciding how to reference shared module code. The requirement is to integrate the module without assuming internal resource names are its API. Which Terraform mechanism directly meets this requirement?
- Use
source = "./modules/network"
- Understand source address is required for a module call
- Run
terraform init after adding an external module
- Use the module registry's documented inputs and outputs
- Avoid confusing a module with a provider
Explanation
Correct Answer
D:Published modules define an intended interface; callers supply declared variables and consume declared outputs; internal resources are implementation details; this behavior should be assessed against the concrete need to integrate the module without assuming internal resource names are its API. This directly supports the task to integrate the module without assuming internal resource names are its API during an automated release.
Incorrect Answers
A:Local sources refer to code on disk, and ./ makes the relative location explicit; they do not select a published registry version; this behavior should be assessed against the concrete need to integrate the module without assuming internal resource names are its API. The stated requirement is to integrate the module without assuming internal resource names are its API, not to load a child module from a path relative to the calling configuration; this alternative addresses a different control or phase.
B:The source argument resolves module code; a module block with no valid source cannot simply invent the child's resources; this behavior should be assessed against the concrete need to integrate the module without assuming internal resource names are its API. That can be useful when the aim is to identify where Terraform should load the child configuration, but it does not directly deliver the requested ability to integrate the module without assuming internal resource names are its API.
C:Initialization retrieves remote modules and prepares the local working directory. terraform fmt cannot fetch source packages; this behavior should be assessed against the concrete need to integrate the module without assuming internal resource names are its API. The distinction matters here: using that mechanism to download newly declared module source code would still leave the objective to integrate the module without assuming internal resource names are its API unmet.
E:A module contains HCL blocks; a provider implements external API operations; an external module may use providers but is not itself a provider binary; this behavior should be assessed against the concrete need to integrate the module without assuming internal resource names are its API. The stated requirement is to integrate the module without assuming internal resource names are its API, not to recognize reusable Terraform configuration versus an API integration plugin; this alternative addresses a different control or phase.
Question 556
During a deployment checklist, one task is to assign different values to identically named inputs in two distinct module instances, while another is to catch incompatible caller values before deployment. Select the matching pair of techniques.
- Keep same-named child inputs separate across module calls + Use a default on a child input for optional behavior
- Pass a root output through a child input explicitly + Use typed module inputs
- Keep same-named child inputs separate across module calls + Pass a child input in the
module block
- Avoid referencing child
local values from the parent + Expose selected values via output blocks
- Keep same-named child inputs separate across module calls + Use typed module inputs
- Treat module output sensitivity as contagious + Use typed module inputs
Explanation
Correct Answer
E:For the first criterion, each call has its own variable namespace and argument values; passing region = "east" in one module call does not alter var.region inside another instance; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment; this directly addresses the need to assign different values to identically named inputs in two distinct module instances. For the separate second criterion, type constraints describe accepted strings, collections, or nested objects; they make the child-module contract more predictable than undocumented any values; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment; this fulfills the need to catch incompatible caller values before deployment. Together they cover the independent tasks of assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment without exchanging the responsibilities of these features.
Incorrect Answers
A:The first measure meets the requirement to assign different values to identically named inputs in two distinct module instances, but its partner serves a different role: A variable default supplies the value within the child when no argument is passed; other child inputs without defaults remain required; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. That second component is designed to allow callers to omit that specific module argument, so the still-missing criterion is to catch incompatible caller values before deployment, while the first criterion remains assign different values to identically named inputs in two distinct module instances.
B:The second measure does meet the catch incompatible caller values before deployment requirement, but the first is designed for another concern: A caller can use module.upstream.value as an argument to module.downstream; this also creates a dependency through the reference; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. That first component is designed to connect two modules while preserving their separate scopes, which does not accomplish the requested task to assign different values to identically named inputs in two distinct module instances, even though the other measure satisfies catch incompatible caller values before deployment.
C:The first measure meets the requirement to assign different values to identically named inputs in two distinct module instances, but its partner serves a different role: Arguments in a module call map into variables declared by that child; an undeclared argument is not a magic global variable; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. That second component is designed to assign the caller's value to the child's required variable, so the still-missing criterion is to catch incompatible caller values before deployment, while the first criterion remains assign different values to identically named inputs in two distinct module instances.
D:The first measure is intended to preserve encapsulation of implementation-only calculations: Only outputs are exposed for general child-module consumption; callers should not depend on private local names that may change during refactoring; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. The second measure is intended to allow a caller to reference child results: A child output becomes accessible as module.instance.output_name; callers cannot directly reach arbitrary unexported resources inside the child module; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. Neither is the directly designated method for the separate goals of assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment in this review.
F:The second measure does meet the catch incompatible caller values before deployment requirement, but the first is designed for another concern: Sensitive values can flow across module boundaries; a root output exposing a sensitive value generally needs an explicit sensitive marking; state protection remains necessary; this behavior should be assessed against the concrete need to assign different values to identically named inputs in two distinct module instances and catch incompatible caller values before deployment. That first component is designed to avoid accidentally publishing a secret through the caller's outputs, which does not accomplish the requested task to assign different values to identically named inputs in two distinct module instances, even though the other measure satisfies catch incompatible caller values before deployment.
Question 557
A reviewer has to approve a two-part design: avoid configuring cloud credentials separately in every reusable child; additionally, keep reusable components small and interoperable. Which option pairs the correct mechanisms?
- Share provider configurations from the root + Use multiple child modules to separate responsibilities
- Pass the
providers mapping to a child + Use multiple child modules to separate responsibilities
- Share provider configurations from the root + Use
for_each on a compatible module call
- Keep backend configuration in the root module + Define a
module block with source
Explanation
Correct Answer
A:For the first criterion, a child module should declare provider requirements while receiving provider configurations through inheritance or explicit mapping; this supports flexible reuse; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable; this directly addresses the need to avoid configuring cloud credentials separately in every reusable child. For the separate second criterion, well-defined module outputs connect independent components without cloning all resource blocks; the overall run still uses one state for that root configuration; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable; this fulfills the need to keep reusable components small and interoperable. Together they cover the independent tasks of avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable without exchanging the responsibilities of these features.
Incorrect Answers
B:The second measure does meet the keep reusable components small and interoperable requirement, but the first is designed for another concern: A module provider map binds the child's expected names to configured parent provider instances; it does not install providers independently; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable. That first component is designed to select which root provider configurations the module uses, which does not accomplish the requested task to avoid configuring cloud credentials separately in every reusable child, even though the other measure satisfies keep reusable components small and interoperable.
C:The first measure meets the requirement to avoid configuring cloud credentials separately in every reusable child, but its partner serves a different role: For-each instance addresses include keys and are often easier to maintain through membership changes than positional count indices; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable. That second component is designed to instantiate a module per stable map or set key, so the still-missing criterion is to keep reusable components small and interoperable, while the first criterion remains avoid configuring cloud credentials separately in every reusable child.
D:The first measure is intended to avoid assuming a backend in a child controls the caller's state: The backend applies to the top-level working configuration; child modules cannot independently select state storage during a normal shared module call; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable. The second measure is intended to instantiate a reusable child configuration from a known location: A module call loads the child configuration and supplies its arguments; the caller's root remains responsible for backend setup; this behavior should be assessed against the concrete need to avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable. Neither is the directly designated method for the separate goals of avoid configuring cloud credentials separately in every reusable child and keep reusable components small and interoperable in this review.
Question 558
A Terraform rollout has separate acceptance criteria: review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout. Which combined approach directly satisfies the two criteria?
- Treat major version changes as interface changes + Set
version = "~> 2.3" on a registry module
- Treat major version changes as interface changes + Do not assign a
version argument to a local path module
- Set
version = "= 1.4.2" on a registry module + Specify a registry module version in the call
- Recognize module versions are not locked by
.terraform.lock.hcl + Do not assign a version argument to a local path module
Explanation
Correct Answer
B:For the first criterion, a new release can change the child module's contract or resource addresses; a valid installation does not guarantee a safe infrastructure plan; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout; this directly addresses the need to review module inputs, outputs, and resource movements before upgrading. For the separate second criterion, local source content is taken directly from disk; versioning needs repository practices rather than Terraform's registry-module version selector; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout; this fulfills the need to recognize that filesystem modules follow the current checkout. Together they cover the independent tasks of review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout without exchanging the responsibilities of these features.
Incorrect Answers
A:The first measure meets the requirement to review module inputs, outputs, and resource movements before upgrading, but its partner serves a different role: The pessimistic version constraint selects an eligible published release; it cannot pin raw Git URLs because that source uses its own reference mechanism; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout. That second component is designed to allow compatible registry releases within a bounded series, so the still-missing criterion is to recognize that filesystem modules follow the current checkout, while the first criterion remains review module inputs, outputs, and resource movements before upgrading.
C:The first measure is intended to use one exact published module version for reproducible runs: An equality constraint selects a specific registry release; it avoids accidental upgrades until the configuration is changed; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout. The second measure is intended to distinguish registry version selection from source identification: The source says which module to fetch, while version constrains published versions; both are important for predictable registry consumption; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout. Neither is the directly designated method for the separate goals of review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout in this review.
D:The second measure does meet the recognize that filesystem modules follow the current checkout requirement, but the first is designed for another concern: The dependency lock file records provider versions and checksums; module selection is governed by source references and registry module constraints; this behavior should be assessed against the concrete need to review module inputs, outputs, and resource movements before upgrading and recognize that filesystem modules follow the current checkout. That first component is designed to avoid assuming the provider lock file pins downloaded module packages, which does not accomplish the requested task to review module inputs, outputs, and resource movements before upgrading, even though the other measure satisfies recognize that filesystem modules follow the current checkout.
Question 559
An infrastructure repository has local and external module sources. A reviewer must determine how to reuse a module from a sibling directory. Which action is the appropriate choice?
- Use
?ref=v1.4.0 with a Git source
- Use
source = "../shared"
- Use
git::https://... as the source
- Use the module registry's documented inputs and outputs
- Use
//subdirectory in an external module source
Explanation
Correct Answer
B:Parent-relative local paths allow neighboring configurations to share code; the directory must be present on the machine or in the checked-out repository; this behavior should be assessed against the concrete need to reuse a module from a sibling directory. This directly supports the task to reuse a module from a sibling directory during a staged rollout.
Incorrect Answers
A:A Git ref selects code from the repository; for reproducibility a commit or immutable release tag is safer than a moving branch; this behavior should be assessed against the concrete need to reuse a module from a sibling directory. That can be useful when the aim is to pin a Git-sourced module to a named tag, commit, or branch reference, but it does not directly deliver the requested ability to reuse a module from a sibling directory.
C:Terraform supports a Git URL source and can use a reference query parameter; the registry version argument is not used to version raw Git sources; this behavior should be assessed against the concrete need to reuse a module from a sibling directory. It may support a related workflow, but the question specifically requires the mechanism for reuse a module from a sibling directory rather than fetch module code directly from a Git repository.
D:Published modules define an intended interface; callers supply declared variables and consume declared outputs; internal resources are implementation details; this behavior should be assessed against the concrete need to reuse a module from a sibling directory. The stated requirement is to reuse a module from a sibling directory, not to integrate the module without assuming internal resource names are its API; this alternative addresses a different control or phase.
E:The double-slash delimiter distinguishes the subdirectory from the package URL; terraform retrieves the containing package before entering the path; this behavior should be assessed against the concrete need to reuse a module from a sibling directory. That can be useful when the aim is to select a nested module directory inside a downloaded repository, but it does not directly deliver the requested ability to reuse a module from a sibling directory.
Question 560
The immediate Terraform task is to reject a caller's explicit null rather than accidentally passing it onward. Which method handles that task most directly?
- Treat module output sensitivity as contagious
- Use
nullable = false for a non-null module input
- Use child locals for internal derivations
- Avoid referencing child
local values from the parent
- Keep same-named child inputs separate across module calls
Explanation
Correct Answer
B:The variable setting controls whether null is permitted; it does not imply that the child can choose a cloud credential automatically; this behavior should be assessed against the concrete need to reject a caller's explicit null rather than accidentally passing it onward. This directly supports the task to reject a caller's explicit null rather than accidentally passing it onward during a configuration change.
Incorrect Answers
A:Sensitive values can flow across module boundaries; a root output exposing a sensitive value generally needs an explicit sensitive marking; state protection remains necessary; this behavior should be assessed against the concrete need to reject a caller's explicit null rather than accidentally passing it onward. The stated requirement is to reject a caller's explicit null rather than accidentally passing it onward, not to avoid accidentally publishing a secret through the caller's outputs; this alternative addresses a different control or phase.
C:Local values are not parameters the caller can set directly; they provide readable internal names for expressions derived from variables and resources; this behavior should be assessed against the concrete need to reject a caller's explicit null rather than accidentally passing it onward. The distinction matters here: using that mechanism to compute implementation details without exposing extra inputs would still leave the objective to reject a caller's explicit null rather than accidentally passing it onward unmet.
D:Only outputs are exposed for general child-module consumption; callers should not depend on private local names that may change during refactoring; this behavior should be assessed against the concrete need to reject a caller's explicit null rather than accidentally passing it onward. It may support a related workflow, but the question specifically requires the mechanism for reject a caller's explicit null rather than accidentally passing it onward rather than preserve encapsulation of implementation-only calculations.
E:Each call has its own variable namespace and argument values; passing region = "east" in one module call does not alter var.region inside another instance; this behavior should be assessed against the concrete need to reject a caller's explicit null rather than accidentally passing it onward. The stated requirement is to reject a caller's explicit null rather than accidentally passing it onward, not to assign different values to identically named inputs in two distinct module instances; this alternative addresses a different control or phase.