Question 740
A reusable module interface review needs to call a child module from an explicit filesystem path. Which feature or operation is the most direct match?
- An absolute local module source
- A Git ref query parameter
- Registry module documentation
- terraform init for modules
Explanation
Correct Answer
A:Terraform can load a module from a local filesystem path, though absolute paths make configurations less portable; this directly meets the requirement to call a child module from an explicit filesystem path. By comparison, a Git ref query parameter is intended to pin a VCS module to a specific Git branch, tag or commit, which is a different task from call a child module from an explicit filesystem path.
Incorrect Answers
B:A source address ending in ?ref=... selects a Git revision; it does not use the registry-specific module version argument; this mechanism is useful when the job is to pin a VCS module to a specific Git branch, tag or commit, whereas the current scenario requires the engineer to call a child module from an explicit filesystem path. These operations have different effects in the stated Terraform workflow.
C:Published module documentation and metadata describe the module interface and help consumers understand required arguments; this mechanism is useful when the job is to determine a module's declared inputs, outputs, providers and usage examples, whereas the current scenario requires the engineer to call a child module from an explicit filesystem path. These operations have different effects in the stated Terraform workflow.
D:Initialization retrieves module sources and populates .terraform/modules while preparing other required dependencies; this mechanism is useful when the job is to install all referenced remote child modules before planning, whereas the current scenario requires the engineer to call a child module from an explicit filesystem path. These operations have different effects in the stated Terraform workflow.
Question 741
During an infrastructure design review about how to manage cloud resources and SaaS resources in one configuration, a maintainer asks what “Multiple provider requirements” does. Which description is accurate?
- Separate root modules and state files reduce shared-plan scope when different teams or lifecycles require isolation.
- A shared Terraform language does not erase provider API differences; each provider defines supported resource schemas and behavior.
- Providers can represent both on-premises platforms and cloud services as Terraform-managed resources in one workflow.
- Terraform can install different providers and let each manage its own service API within a single graph.
Explanation
Correct Answer
D:The named mechanism is used when the objective is to manage cloud resources and SaaS resources in one configuration, so it produces the behavior described. In contrast, provider-specific capabilities serves a different goal: avoid assuming that all providers expose identical resource types and options, not manage cloud resources and SaaS resources in one configuration.
Incorrect Answers
A:The description applies to isolating deployment boundaries when an engineer needs to limit the impact of changes to one environment or platform; the named multiple provider requirements instead handles the requirement to manage cloud resources and SaaS resources in one configuration, so this behavior does not describe Multiple provider requirements in the situation named.
B:The description applies to provider-specific capabilities when an engineer needs to avoid assuming that all providers expose identical resource types and options; the named multiple provider requirements instead handles the requirement to manage cloud resources and SaaS resources in one configuration, so this behavior does not describe Multiple provider requirements in the situation named.
C:The description applies to hybrid infrastructure provisioning when an engineer needs to coordinate an on-premises platform with public-cloud resources; the named multiple provider requirements instead handles the requirement to manage cloud resources and SaaS resources in one configuration, so this behavior does not describe Multiple provider requirements in the situation named.
Question 742
A runbook lists “The providers map on a module call” for the task to pass an aliased provider configuration into a child module. Which technical effect should its description include?
- The required_providers entry maps the chosen local name to a specific fully qualified provider source address.
- The module call's providers argument maps the child's expected provider configuration name to a provider configuration available in the parent.
- The resource-level provider meta-argument selects a provider instance, not a different backend or Terraform workspace.
- An unaliased provider block configures the default instance used by matching resources that do not override provider selection.
Explanation
Correct Answer
B:The named mechanism is used when the objective is to pass an aliased provider configuration into a child module, so it produces the behavior described. In contrast, an aliased provider instance serves a different goal: create resources in a second region using the same provider type, not pass an aliased provider configuration into a child module.
Incorrect Answers
A:The description applies to provider-local name mapping when an engineer needs to reuse a provider whose source address differs from its short local identifier; the named the providers map on a module call instead handles the requirement to pass an aliased provider configuration into a child module, so this behavior does not describe The providers map on a module call in the situation named.
C:The description applies to a resource's provider meta-argument when an engineer needs to route a particular managed object to the named alternate provider configuration; the named the providers map on a module call instead handles the requirement to pass an aliased provider configuration into a child module, so this behavior does not describe The providers map on a module call in the situation named.
D:The statement describes A default provider configuration, which is appropriate when engineers need to make resources use a common account without an explicit provider argument; it does not explain The providers map on a module call, the construct used to pass an aliased provider configuration into a child module. The two behaviors are separate.
Question 743
The team evaluates “A provider source address” for a requirement to distinguish a community plugin from the HashiCorp-maintained plugin with the same local name. Which observed behavior belongs to that mechanism rather than a different Terraform feature?
- A version requirement such as >= 5.0.0 allows matching later versions but does not cap major-version upgrades.
- The pessimistic constraint ~> 5.3.0 admits versions at least 5.3.0 but below 5.4.0.
- The .terraform.lock.hcl file records selected provider versions and checksums to constrain subsequent installations.
- The source address identifies a provider by registry hostname, namespace and type; local names alone are insufficient to distinguish publishers.
Explanation
Correct Answer
D:The named mechanism is used when the objective is to distinguish a community plugin from the HashiCorp-maintained plugin with the same local name, so it produces the behavior described. In contrast, the dependency lock file serves a different goal: reproduce previously selected provider package versions on other machines, not distinguish a community plugin from the HashiCorp-maintained plugin with the same local name.
Incorrect Answers
A:The description applies to a lower-bound provider constraint when an engineer needs to allow provider releases no older than a tested minimum; the named a provider source address instead handles the requirement to distinguish a community plugin from the HashiCorp-maintained plugin with the same local name, so this behavior does not describe A provider source address in the situation named.
B:The description applies to a compatible provider constraint when an engineer needs to accept patch updates within a chosen minor line; the named a provider source address instead handles the requirement to distinguish a community plugin from the HashiCorp-maintained plugin with the same local name, so this behavior does not describe A provider source address in the situation named.
C:The description applies to the dependency lock file when an engineer needs to reproduce previously selected provider package versions on other machines; the named a provider source address instead handles the requirement to distinguish a community plugin from the HashiCorp-maintained plugin with the same local name, so this behavior does not describe A provider source address in the situation named.
Question 744
The team evaluates “A registry module version constraint” for a requirement to select a supported module release range from the registry. Which observed behavior belongs to that mechanism rather than a different Terraform feature?
- Changing a module source or version constraint requires reinitializing to resolve the updated selection.
- The module version argument accepts version constraints for registry sources and Terraform resolves compatible published releases during init.
- The upgrade mode reselects module versions subject to constraints instead of automatically keeping the previously installed copy.
- A module version constraint such as = 2.1.3 selects only that published version until the requirement changes.
Explanation
Correct Answer
B:The named mechanism is used when the objective is to select a supported module release range from the registry, so it produces the behavior described. In contrast, init -upgrade for registry modules serves a different goal: consider newer published module releases already allowed by a version constraint, not select a supported module release range from the registry.
Incorrect Answers
A:The description applies to init after module version change when an engineer needs to install a newly allowed child module release after editing its version requirement; the named a registry module version constraint instead handles the requirement to select a supported module release range from the registry, so this behavior does not describe A registry module version constraint in the situation named.
C:The description applies to init -upgrade for registry modules when an engineer needs to consider newer published module releases already allowed by a version constraint; the named a registry module version constraint instead handles the requirement to select a supported module release range from the registry, so this behavior does not describe A registry module version constraint in the situation named.
D:The statement describes A strict registry module pin, which is appropriate when engineers need to reproduce a vetted module release without automatically selecting a newer one; it does not explain A registry module version constraint, the construct used to select a supported module release range from the registry. The two behaviors are separate.
Question 745
A Terraform change proposal names “Terraform Core” to evaluate HCL expressions and calculate a resource dependency graph. Which outcome can reviewers attribute to that particular mechanism?
- A provider configuration with alias defines a named alternate that resources or modules can explicitly select.
- Terraform generally selects the default provider matching a resource's type prefix unless an alternate configuration is specified.
- The provider declares accepted resource arguments and computed attributes; Terraform validates configuration against that schema.
- Terraform Core handles language evaluation, planning and state orchestration while provider plugins execute service-specific operations.
Explanation
Correct Answer
D:The named mechanism is used when the objective is to evaluate HCL expressions and calculate a resource dependency graph, so it produces the behavior described. In contrast, provider aliases serves a different goal: configure two connections to the same service for different regions or accounts, not evaluate HCL expressions and calculate a resource dependency graph.
Incorrect Answers
A:The description applies to provider aliases when an engineer needs to configure two connections to the same service for different regions or accounts; the named Terraform Core instead handles the requirement to evaluate HCL expressions and calculate a resource dependency graph, so this behavior does not describe Terraform Core in the situation named.
B:The description applies to implicit provider selection when an engineer needs to use the default provider configuration for a resource type; the named Terraform Core instead handles the requirement to evaluate HCL expressions and calculate a resource dependency graph, so this behavior does not describe Terraform Core in the situation named.
C:The description applies to provider-defined resource schemas when an engineer needs to determine which arguments a resource type accepts; the named Terraform Core instead handles the requirement to evaluate HCL expressions and calculate a resource dependency graph, so this behavior does not describe Terraform Core in the situation named.
Question 746
A team proposes “A resource's provider meta-argument” to create resources in a second region using the same provider type. If they proceed with that technique, which result should they anticipate instead?
- A data block can set provider = aws.secondary to query through an alternate provider configuration.
- The resource-level provider meta-argument selects a provider instance, not a different backend or Terraform workspace.
- Declare an aliased provider configuration and assign provider = provider_name.alias on resources that need the alternate region.
- An unaliased provider block configures the default instance used by matching resources that do not override provider selection.
Explanation
Correct Answer
B:A resource's provider meta-argument is used when an operator needs to route a particular managed object to the named alternate provider configuration. Consequently, this choice cannot meet the separate requirement to create resources in a second region using the same provider type. The intended action would instead require An aliased provider instance.
Incorrect Answers
A:This behavior belongs to Explicit provider selection on data blocks, which helps engineers read an object from a secondary account rather than the default account rather than satisfying the separate requirement to create resources in a second region using the same provider type. The attempted technique was A resource's provider meta-argument; it would instead be used to route a particular managed object to the named alternate provider configuration, not to produce the effect associated with Explicit provider selection on data blocks.
C:That outcome belongs to An aliased provider instance, the mechanism that can create resources in a second region using the same provider type. The question concerns the engineer’s actual proposal, A resource's provider meta-argument; it is directed at route a particular managed object to the named alternate provider configuration, not that result.
D:This behavior belongs to A default provider configuration, which helps engineers make resources use a common account without an explicit provider argument rather than satisfying the separate requirement to create resources in a second region using the same provider type. The attempted technique was A resource's provider meta-argument; it would instead be used to route a particular managed object to the named alternate provider configuration, not to produce the effect associated with A default provider configuration.
Question 747
A change request asks an engineer to avoid assuming that all providers expose identical resource types and options. Which choice best implements the requested behavior?
- Cross-provider references
- Provider-specific capabilities
- Integrating platform and DNS configuration
- Multi-cloud state visibility
Explanation
Correct Answer
B:A shared Terraform language does not erase provider API differences; each provider defines supported resource schemas and behavior; this directly meets the requirement to avoid assuming that all providers expose identical resource types and options. By comparison, multi-cloud state visibility is intended to track resources in distinct providers together within the chosen state scope, which is a different task from avoid assuming that all providers expose identical resource types and options.
Incorrect Answers
A:An attribute reference between resource instances can create a dependency across provider boundaries; this mechanism is useful when the job is to link an output from one service to a dependent resource on another service, whereas the current scenario requires the engineer to avoid assuming that all providers expose identical resource types and options. These operations have different effects in the stated Terraform workflow.
C:Distinct providers can manage compute and DNS resources while references communicate values such as an assigned endpoint; this mechanism is useful when the job is to manage a cloud-hosted service and its DNS records declaratively, whereas the current scenario requires the engineer to avoid assuming that all providers expose identical resource types and options. These operations have different effects in the stated Terraform workflow.
D:One Terraform state can map managed resources from multiple providers, although separate configurations may improve blast-radius isolation; this mechanism is useful when the job is to track resources in distinct providers together within the chosen state scope, whereas the current scenario requires the engineer to avoid assuming that all providers expose identical resource types and options. These operations have different effects in the stated Terraform workflow.
Question 748
During a design review, the requirement is to make a module input optional when callers do not require customization. Which option should the engineer select?
- Different values for two module calls
- Child module outputs and sensitivity
- A variable default inside a child
- A local value confined to its module
Explanation
Correct Answer
C:A default inside the child variable declaration applies when the caller omits that module argument; this directly meets the requirement to make a module input optional when callers do not require customization. By comparison, child module outputs and sensitivity is intended to limit ordinary display of a sensitive result exported from a reusable module, which is a different task from make a module input optional when callers do not require customization.
Incorrect Answers
A:Each call has its own variable assignments and resource instances, even when both calls reference the same module source directory; this mechanism is useful when the job is to instantiate the same module with distinct environment inputs, whereas the current scenario requires the engineer to make a module input optional when callers do not require customization. These operations have different effects in the stated Terraform workflow.
B:A child output can be marked sensitive, but its underlying value may still reside in state unless it uses permitted ephemeral handling; this mechanism is useful when the job is to limit ordinary display of a sensitive result exported from a reusable module, whereas the current scenario requires the engineer to make a module input optional when callers do not require customization. These operations have different effects in the stated Terraform workflow.
D:Locals live within the module where defined and cannot be referenced from another module without passing or exposing a value; this mechanism is useful when the job is to avoid assuming a local calculation is automatically visible in a parent module, whereas the current scenario requires the engineer to make a module input optional when callers do not require customization. These operations have different effects in the stated Terraform workflow.
Question 749
A team compares Terraform mechanisms for the goal to coordinate an on-premises platform with public-cloud resources. Which stated consequence belongs specifically to “Hybrid infrastructure provisioning”?
- A shared Terraform language does not erase provider API differences; each provider defines supported resource schemas and behavior.
- Distinct providers can manage compute and DNS resources while references communicate values such as an assigned endpoint.
- Providers can represent both on-premises platforms and cloud services as Terraform-managed resources in one workflow.
- Separate root modules and state files reduce shared-plan scope when different teams or lifecycles require isolation.
- Terraform Core offers common configuration and state mechanisms while provider schemas capture each platform's API differences.
Explanation
Correct Answer
C:The named mechanism is used when the objective is to coordinate an on-premises platform with public-cloud resources, so it produces the behavior described. In contrast, service-agnostic resource modeling serves a different goal: use a common configuration workflow across distinct vendors, not coordinate an on-premises platform with public-cloud resources.
Incorrect Answers
A:The description applies to provider-specific capabilities when an engineer needs to avoid assuming that all providers expose identical resource types and options; the named hybrid infrastructure provisioning instead handles the requirement to coordinate an on-premises platform with public-cloud resources, so this behavior does not describe Hybrid infrastructure provisioning in the situation named.
B:The description applies to integrating platform and DNS configuration when an engineer needs to manage a cloud-hosted service and its DNS records declaratively; the named hybrid infrastructure provisioning instead handles the requirement to coordinate an on-premises platform with public-cloud resources, so this behavior does not describe Hybrid infrastructure provisioning in the situation named.
D:The description applies to isolating deployment boundaries when an engineer needs to limit the impact of changes to one environment or platform; the named hybrid infrastructure provisioning instead handles the requirement to coordinate an on-premises platform with public-cloud resources, so this behavior does not describe Hybrid infrastructure provisioning in the situation named.
E:The description applies to service-agnostic resource modeling when an engineer needs to use a common configuration workflow across distinct vendors; the named hybrid infrastructure provisioning instead handles the requirement to coordinate an on-premises platform with public-cloud resources, so this behavior does not describe Hybrid infrastructure provisioning in the situation named.
Question 750
During a design review, the requirement is to remove empty string elements from a list. Which option should the engineer select?
- The file function
- The cidrsubnet function
- The ternary conditional operator
- The compact function
Explanation
Correct Answer
D:compact filters out null or empty-string members from a string list, preserving usable elements; this directly meets the requirement to remove empty string elements from a list. By comparison, the ternary conditional operator is intended to set a resource argument according to a boolean expression, which is a different task from remove empty string elements from a list.
Incorrect Answers
A:file reads existing local text; it does not wait for a provisioner to create the file during apply; this mechanism is useful when the job is to read UTF-8 content already present in a local file during evaluation, whereas the current scenario requires the engineer to remove empty string elements from a list. These operations have different effects in the stated Terraform workflow.
B:cidrsubnet derives a subnet CIDR using additional prefix bits and a network number, without provisioning a network resource; this mechanism is useful when the job is to calculate a nested network prefix from a parent CIDR range, whereas the current scenario requires the engineer to remove empty string elements from a list. These operations have different effects in the stated Terraform workflow.
C:The condition ? value_a : value_b expression chooses a suitable branch without creating duplicate resource blocks; this mechanism is useful when the job is to set a resource argument according to a boolean expression, whereas the current scenario requires the engineer to remove empty string elements from a list. These operations have different effects in the stated Terraform workflow.