Question 740
A Terraform rollout has separate acceptance criteria: share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. Which combined approach directly satisfies the two criteria?
Explanation
Correct Answer
For the first criterion, organization-scoped values affect a broad audience and may have precedence interactions; more limited scope is preferable for environment-specific secrets; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants; this directly addresses the need to share truly global settings without surprising unrelated workspaces. For the separate second criterion, hCP workspaces carry roles, configuration links, variable settings, and history; cLI workspaces mainly distinguish multiple state instances in a backend; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants; this fulfills the need to avoid equating hosted run projects with local named state variants. Together they cover the independent tasks of share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants without exchanging the responsibilities of these features.
Incorrect Answers
The second measure does meet the avoid equating hosted run projects with local named state variants requirement, but the first is designed for another concern: Different workspaces can target separate folders or branches as configured; the entire repository need not be one stateful deployment; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. That first component is designed to point one workspace to its own Terraform root in a shared repository, which does not accomplish the requested task to share truly global settings without surprising unrelated workspaces, even though the other measure satisfies avoid equating hosted run projects with local named state variants.
The first measure meets the requirement to share truly global settings without surprising unrelated workspaces, but its partner serves a different role: Run triggers coordinate separate stateful workspaces in a dependency-like workflow; they do not combine both workspaces into one Terraform apply; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. That second component is designed to queue a downstream run after a successful upstream apply, so the still-missing criterion is to avoid equating hosted run projects with local named state variants, while the first criterion remains share truly global settings without surprising unrelated workspaces.
The second measure does meet the avoid equating hosted run projects with local named state variants requirement, but the first is designed for another concern: Projects organize workspaces by service, team, or environment; each workspace continues to have its own state and run lifecycle; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. That first component is designed to group related infrastructure collections for management and access policies, which does not accomplish the requested task to share truly global settings without surprising unrelated workspaces, even though the other measure satisfies avoid equating hosted run projects with local named state variants.
The first measure is intended to make filtering and policy targeting easier across a large organization: Tags provide metadata for discovery and certain governance features; they do not substitute for a state key or resource address; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. The second measure is intended to share common inputs with a group of related workspaces: A variable set assigned at project scope can reduce repeated configuration; variables do not create dependencies between the workspaces; this behavior should be assessed against the concrete need to share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants. Neither is the directly designated method for the separate goals of share truly global settings without surprising unrelated workspaces and avoid equating hosted run projects with local named state variants in this review.