DeliveryPlanner requires a Quote interface. Its existing provider accepts distance in metres and returns an integer cost in cents. The team wants a direct replacement without modifying clients or adding adapters.
All four candidates offer the same operation names and parameter types. Their error behavior and all other relevant contract conditions are identical. The table gives the remaining differences. The environment supplies no RateFeed service.
Candidate
Distance interpreted as
Cost returned in
Additional boundary interfaces
SwiftQuote
Kilometres
Cents
None
RateQuote
Metres
Requires RateFeed
DollarQuote
Dollars
StableQuote
Provides optional History
Which replacement is supported by the stated information?
Use DollarQuote; clients can interpret returned costs using their existing rules.
Use SwiftQuote; identical operation names preserve the existing contract.
Use StableQuote; its additional offer creates no new client obligation.
Use RateQuote; its additional requirement belongs inside the replacement boundary.
Unlock full course notes by signing up
Audit unmet service requirements
A library system's component-model audit lists the required interfaces below. Each interface listed for a component represents one required endpoint, which needs exactly one compatible provider. Requirements belonging to different components remain separate, even when their interface names match.
The following selected bindings connect required endpoints to compatible providers. These are the only selected bindings in the audit.
How many required endpoints remain unmatched across these three components? Give the count as a whole number, to zero decimal places.
What a dependency actually establishes
An architecture overview contains the usage dependency in the figure. Which statements are justified by this relationship alone? Select all that apply.
Trace visibility across package imports
An accounting application has four distinct top-level packages. The diagram shows every owned member and every package relationship. A plus sign marks a public owned member, and a minus sign marks a private owned member. There are no conflicting names, aliases, additional imports, or enclosing members.
Complete the table with yes or no. Enter yes when the named element is available by its unqualified name inside the row's package through ownership or the shown relationships; otherwise enter no.
Audit deployment coverage after host failures
A document-processing system has the deployment snapshot shown. Each outer box represents one physical host, and each nested execution environment belongs to that host. The diagram shows all deployments. Count each artifact-environment pair as one placement, even when the same artifact is also deployed elsewhere.
The artifacts represent the following logical component types. These are the complete mappings; component types named in different rows are distinct.
Host A fails, removing all its execution environments and their deployments. Other hosts are unaffected, and no artifacts are automatically redeployed.