Solutions architect: Data and Integration Contracts
Original technical interviews on schema and value compatibility, entity identity, event and effect semantics, partial outcomes, pagination, quotas, framing, and independent contract checks. Each finite case specifies the rules needed to assess meaning and completion.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.A contract permits integer identifiers 9,007,199,254,740,992 and 9,007,199,254,740,993. A consumer decodes both as binary64, rounding to nearest with ties to even; integers at this magnitude are 2 apart. What identifier property can be lost?
Show answer and explanation
- The stated nearest-even decoder necessarily rejects both integers instead of rounding
- Distinct valid identifiers can decode to the same value
- Both identifiers remain exact merely because neither has a decimal point
- The second identifier is rounded to 9,007,199,254,740,994 by a ties-away rule
Answer: Distinct valid identifiers can decode to the same value
The second integer lies halfway between adjacent representable integers and rounds to the even-significand endpoint 9,007,199,254,740,992. Both IDs can collapse to one value. Use an exact representation under the actual identifier contract.
2.A quantity contract defines physical value as mantissa×10^(−scale). A message has mantissa=175 and scale=2. A consumer ignores scale and treats the mantissa as the physical value. How does its interpreted value compare with the specified one?
Show answer and explanation
- It differs by exactly 2 units
- It is 100 times too small
- It is 100 times too large
- It is exactly correct
Answer: It is 100 times too large
The specified value is 175×10⁻²=1.75. Interpreting 175 directly gives 175/1.75=100 times that value. Sharing a numeric field name does not preserve the scale semantics.
3.A patch contract says an absent nickname field leaves the stored value unchanged, explicit null clears it, and a string replaces it. The stored nickname is "Mira" and the patch is {}. What resulting nickname follows?
Show answer and explanation
- An empty string
- "Mira"
- null
- The literal string "undefined"
Answer: "Mira"
The field is absent, so the contract requires no change to that value. Treating absence as null or a default string would conflate distinct patch operations.
4.During an upgrade, old readers accept only schema V1 and new readers accept V1 or V2. All writers initially emit V1. A writer switches to V2 before the remaining old readers are upgraded, and it can send to any reader. What compatibility gap exists?
Show answer and explanation
- V2 is accepted by every reader merely because one writer can emit it
- New readers cannot accept the remaining V1 messages
- Writer upgrade order is irrelevant under the supplied acceptance matrix
- A V2 message may reach an old reader that does not accept it
Answer: A V2 message may reach an old reader that does not accept it
The remaining old readers have no V2 acceptance path. New readers' dual-version support does not change the old readers' behavior. Upgrade or route under a strategy consistent with every active producer-consumer pair.
5.A CSV contract uses commas as separators except inside double-quoted fields; quotes themselves are not field content. The record is r7,"north,annex",4. How many fields does this contract define?
Show answer and explanation
- 5
- 3
- 4
- 2
Answer: 3
The comma inside "north,annex" is content within one quoted field. The three fields are [r7], [north,annex], and [4]. Splitting on every comma would violate the supplied lexical rule.
6.A conversion contract rounds exact halfway values away from zero to an integer. Another implementation rounds halfway values to the nearest even integer. For the exact input 2.5, what pair of outputs exposes their difference?
Show answer and explanation
- 2 under both rules
- 2 under the contract, 3 under the implementation
- 3 under the contract, 2 under the implementation
- 3 under both rules
Answer: 3 under the contract, 2 under the implementation
The declared away-from-zero tie rule maps 2.5 to 3. The even-integer tie rule maps it to 2. Naming both operations "round" does not establish semantic compatibility at halfway cases.
7.An identifier contract compares exact UTF-8 byte sequences and performs no normalization. Two identifiers have different bytes but render identically in a particular font. Can the consumer merge them solely because their displayed labels match?
Show answer and explanation
- Yes; visual identity in one font establishes exact UTF-8 equality
- Yes; display normalization silently replaces the supplied byte-equality rule
- No; the contract requires distinct identifiers to have visibly different labels
- No; display similarity does not establish identity under this contract
Answer: No; display similarity does not establish identity under this contract
The identity rule is exact byte equality, not visual rendering. Different byte sequences remain distinct under the supplied contract. If normalized identity is desired, its transformation and collision policy must be explicitly defined.
8.A timestamp contract defines offset +02:00 as local time=UTC+2 hours. It receives 2026-01-01 12:00:00+02:00 and 2026-01-01 10:00:00Z, with Z denoting UTC. How do the represented instants compare?
Show answer and explanation
- The first is two hours later
- They are the same instant
- They cannot be compared even with the supplied offset rule
- The first is two hours earlier
Answer: They are the same instant
Converting the first timestamp to UTC subtracts two hours, yielding 10:00:00Z. The local hour fields differ, but the explicit offset mapping makes the represented instants equal.
9.A message contract requires a Boolean enabled field. A producer sends the string "false" instead. A consumer's coercion rule treats every nonempty string as true. What value does this faulty conversion produce?
Show answer and explanation
- true, contrary to the apparent text label
- false, because a nonempty textual label always parses as its named Boolean
- null, because the coercion rule erases every nonempty string
- An exception, because the supplied coercion rule rejects all strings
Answer: true, contrary to the apparent text label
The supplied rule tests nonemptiness, and "false" is nonempty. It therefore yields true. Type validation or a specifically defined textual parser is needed; an unqualified coercion does not preserve the Boolean contract.
10.A telemetry contract uses null for unknown temperature and numeric 0 for a measured zero. An adapter replaces every null with 0 before storage. What information is lost?
Show answer and explanation
- Whether numeric zero is representable in storage
- Evidence that all samples were measured exactly at zero
- Only the distinction between two alternative renderings of a numeric zero
- Whether zero was measured or the value was unknown
Answer: Whether zero was measured or the value was unknown
The adapter maps two distinct meanings to one stored value. Without a retained validity indicator or other defined representation, the consumer cannot recover whether 0 is a measurement or substituted absence.
11.A contract treats object field order as semantically irrelevant. Two messages contain identical key/value pairs in different serialized orders. A deduplicator compares only raw serialized bytes. What case can it miss?
Show answer and explanation
- Every duplicate whose raw serialized bytes are already identical
- A guarantee that byte-different serializations always carry different meanings
- Semantically equal objects with different byte orderings
- The ability to identify that each message contains any object fields
Answer: Semantically equal objects with different byte orderings
Byte equality is sufficient for these identical serializations but not necessary for equality under the order-insensitive contract. Canonicalization or semantic comparison must preserve the declared object meaning if it is used for deduplication.
12.A stream contract prefixes each payload by its decimal byte length and a colon; payloads here are single-byte letters. The bytes 3:abc2:de arrive split across reads as "3:ab" and "c2:de". Which payload sequence follows the contract?
Show answer and explanation
- "abc", then "de"
- One payload "abc2:de"
- "ab", then "c2:de"
- Three payloads "a", "b", "c"
Answer: "abc", then "de"
The length prefix 3 consumes abc across the read boundary. The next prefix 2 consumes de. Read chunks are transport observations, not record delimiters; framing must follow the supplied byte-length grammar.
13.A reader rejects any field name outside {id,status}. A writer adds an optional note field and includes it in a message. Under this reader rule, does calling note optional guarantee compatibility?
Show answer and explanation
- No; the original id and status names have become unknown to this reader
- Yes; changing the writer schema changes the deployed reader's acceptance rule
- No; the reader still rejects the unknown field
- Yes; optional fields are accepted by every reader regardless of rejection policy
Answer: No; the reader still rejects the unknown field
Optionality in the writer's schema does not override the reader's explicit rejection policy. Compatibility depends on the actual accepted messages for the deployed pair, not on a universal assumption about additive fields.
14.A consumer knows states OPEN and CLOSED. A producer adds PAUSED. The consumer maps every unknown state to CLOSED, which triggers permanent cleanup. What contract issue does PAUSED expose?
Show answer and explanation
- Every new enum value necessarily has CLOSED semantics
- An unknown state is being given a destructive meaning not established by the producer
- A successful parse establishes that the consumer implements PAUSED
- Adding PAUSED forces the producer to remove every prior state
Answer: An unknown state is being given a destructive meaning not established by the producer
The consumer's fallback converts missing knowledge into a specific terminal action. PAUSED has not been defined as CLOSED. Versioning, explicit rejection or a defined unknown-state policy must preserve the intended semantics.
15.An old writer emits {id}; a new reader requires both id and region and has no default or lookup for region. The new reader is deployed while the old writer remains active. What fails under these rules?
Show answer and explanation
- A missing required value can be reconstructed from its field name alone
- An old writer automatically supplies every new reader field
- The id field becomes invalid solely because the writer is old
- Old messages lack the new reader's required region field
Answer: Old messages lack the new reader's required region field
The new reader's accepted input set excludes the old writer's output. Reader-first deployment is not automatically compatible when the reader adds an unmet required field. Evaluate the actual input requirements and transition plan.
16.Two interfaces use timeout=0. The producer defines it as no timeout; the consumer defines it as expire immediately. The adapter forwards the integer unchanged. What is the integration mismatch?
Show answer and explanation
- Zero cannot be represented in both interfaces
- Both definitions necessarily mean wait forever
- The mismatch is removed by using a larger integer type
- Equal numeric values have opposite timeout semantics
Answer: Equal numeric values have opposite timeout semantics
Syntactic agreement on an integer does not preserve its meaning. The adapter needs an explicit semantic mapping or a revised contract rather than an unchanged numeric pass-through.
17.A writer renames
customer_idtoaccount_idand stops emittingcustomer_id. Its existing consumer reads onlycustomer_idand has no alias rule. What compatibility claim is justified?Show answer and explanation
- The rename is breaking for that consumer
- Deleting the old name proves existing readers no longer depend on it
- The rename is compatible because both fields contain integers
- The consumer infers every field alias from similar business names
Answer: The rename is breaking for that consumer
A wire name is part of this consumer's access contract. The supplied consumer has no mapping from the new field, so the new output does not meet its expected input. A coordinated transition or explicit alias is needed.
18.A schema marks amount as a decimal string. A consumer validates only that it is a string and then accepts "not-a-number" as a usable amount. What validation layer remains missing?
Show answer and explanation
- The observation that the supplied JSON value has string type
- Only checking that a field named amount exists
- The declared decimal lexical and value semantics
- The ability to receive this particular string in a message
Answer: The declared decimal lexical and value semantics
Structural type validation establishes that the value is a string, not that it represents an allowed decimal. The contract must define and check the permitted content before using it as a quantity.
19.A sender supports contract versions {1,3}, a receiver supports {2,3}, and the rule selects the highest version supported by both. Which version is selected?
Show answer and explanation
- 3
- 2
- 1
- No common version
Answer: 3
The intersection is {3}, so its highest member is 3. Selecting the receiver's highest value alone would not be a general negotiation rule, although it happens to be shared in this case.
20.A gateway reads a newer record, drops every field unknown to its old schema, and writes it back. A later new reader expects an unknown-to-gateway field named
delivery_windowto survive unchanged. What property is violated?Show answer and explanation
- The fact that a newer reader defines additional fields
- A guarantee that every old reader can infer every discarded newer value
- Preservation of fields outside the gateway's understood subset
- The gateway's ability to parse fields it already knows
Answer: Preservation of fields outside the gateway's understood subset
Parsing a subset does not establish a lossless round trip. Rewriting after discarding unknown content can erase newer information. The contract must specify whether preservation, rejection or a deliberate lossy transformation is intended.
21.An enum consumer explicitly rejects unknown values before applying any effect. A producer sends a newly introduced value. Is acceptance established merely because the transport delivered the message?
Show answer and explanation
- Yes; application rejection is impossible after transport success
- No; transport delivery does not satisfy the enum acceptance rule
- No; successful delivery proves the payload must have changed in transit
- Yes; delivery establishes support for every application enum value
Answer: No; transport delivery does not satisfy the enum acceptance rule
Delivery and semantic acceptance are separate stages. The known rejection policy excludes this value unless the contract or consumer changes. No corruption is required to explain the rejection.
22.An old consumer accepts integer size values from 0 through 100. A new writer permits 0 through 200 and emits 150. No adapter narrows or translates the value. What happens under the stated acceptance rule?
Show answer and explanation
- The old consumer rejects 150
- The consumer automatically clamps 150 to 100 despite having no clamping rule
- The old consumer accepts 150 because primitive integer type is sufficient
- The wider producer range proves compatibility for every emitted value
Answer: The old consumer rejects 150
A wider producer domain can exceed the consumer's accepted range. Sharing the same primitive type does not establish value-domain compatibility, and no clamping behavior was supplied.
23.A producer sends a tuple in order [length,width], with value [2,5]. A consumer interprets the same positions as [width,length]. The adapter forwards the tuple unchanged. What dimensions does the consumer assign?
Show answer and explanation
- width=2, length=2
- width=5, length=2
- width=5, length=5
- width=2, length=5
Answer: width=2, length=5
Position zero becomes width for the consumer, so it reads width 2 and length 5. The intended dimensions are reversed. Their product remains 10, showing why an area-only check would not establish correct positional semantics.
24.A message includes a mandatory
do_not_notify=true instruction. A legacy consumer ignores that unknown field and sends a notification. Its JSON parser accepts the message. What does this show?Show answer and explanation
- The true Boolean is semantically irrelevant whenever it is unknown to the parser
- Ignoring unknown fields preserves every future behavioral instruction
- Parsing compatibility did not preserve the required behavior
- The instruction is obeyed solely because object parsing succeeds
Answer: Parsing compatibility did not preserve the required behavior
A permissive parser can accept bytes while the application violates a new instruction. Compatibility must cover required meaning and effects, not just whether the old parser can construct an object.
25.Two source systems each use customer number 17 for different people. A consolidated store uses only
customer_numberas its unique key and overwrites one record with the other. What identity information is missing?Show answer and explanation
- A rule that the later arrival defines which person both records describe
- Only preserving object-member order during consolidation
- The source-system namespace or an established cross-source identity mapping
- A rule that equal local numbers necessarily mean one global person
Answer: The source-system namespace or an established cross-source identity mapping
Local uniqueness does not imply global uniqueness. Include a namespace or an evidence-based entity mapping so unrelated source identifiers do not collide during consolidation.
26.A source deletes entity id=8, then reuses 8 for a different entity. A delayed update for the deleted entity arrives with only id=8. The consumer cannot distinguish incarnations. What ambiguity remains?
Show answer and explanation
- Which lifecycle instance the delayed update belongs to
- That reusing a number always preserves the deleted entity's identity
- That a delayed update must belong to the new incarnation
- Whether the integer key fits in the target field
Answer: Which lifecycle instance the delayed update belongs to
Reusing a key can make an old message indistinguishable from a new entity's update. A generation, nonreused identity or another defined lifecycle rule is needed to disambiguate these histories.
27.One order has two line-item rows and three tag rows. A query joins the order to both child tables independently, without preaggregation or distinct handling. How many combined rows represent that order?
Show answer and explanation
- 5
- 2
- 6
- 3
Answer: 6
Every line item pairs with each tag: 2×3=6 rows. Summing order-level or line-level values after this join can duplicate them. The query's cardinality must match the intended aggregation grain.
28.An export inner-joins every order to a customer row. One valid order references a customer absent from the export's customer snapshot. The contract requires exporting every valid order. What risk does the inner join create?
Show answer and explanation
- It reconstructs the missing customer from the order number automatically
- It can silently omit the unmatched valid order
- It proves the source order was invalid despite the supplied validity premise
- It duplicates the order whenever its customer is absent
Answer: It can silently omit the unmatched valid order
An inner join retains matched pairs only. Under the supplied validity and completeness rule, the absent related snapshot row is not permission to drop the order. Handle or report the unmatched reference explicitly.
29.A contract defines an event as add delta=3 to the current quantity. Current quantity is 20. A consumer treats the event value as a replacement and stores 3. What should the declared event operation have produced?
Show answer and explanation
- 60
- 23
- 3
- 17
Answer: 23
The specified operation is addition, so 20+3=23. A replacement event would have different semantics. Identical numeric payloads do not make those operation types interchangeable.
30.An incremental export contains only records changed since the last run. Record K is absent from this export but still exists unchanged in the source. A consumer deletes every absent record. What assumption is wrong?
Show answer and explanation
- An incremental export can contain only records absent from the source
- Absence from a change-only export is being treated as source deletion
- Every unchanged record must appear in a change-only export
- Every export is a complete membership snapshot regardless of its declared type
Answer: Absence from a change-only export is being treated as source deletion
The export reports changes, not complete membership. Nonappearance can mean unchanged. Deletion needs an explicit tombstone, authoritative full snapshot or other defined evidence rather than this absence alone.
31.A change stream represents source deletion with an explicit tombstone. An adapter drops tombstones because they have no ordinary record body. What state can persist incorrectly downstream?
Show answer and explanation
- Only source records created after the deletion
- An automatic deletion performed by every ordinary non-tombstone record
- Records already deleted in the source
- Evidence that source deletion is impossible
Answer: Records already deleted in the source
The deletion signal carries meaning even without a normal body. Removing it can leave stale live records downstream. The integration contract must preserve deletion semantics or define an equivalent mechanism.
32.A message specifies SET count=5. A consumer translates it into ADD 5. Starting from count=2, the consumer applies both of two deliveries of that message. What final count does the faulty translation produce?
Show answer and explanation
- 10
- 12
- 7
- 5
Answer: 12
The translated operations give 2+5+5=12. Under SET semantics, applying the message would leave 5 even on repetition. The adapter changes the operation's meaning and its behavior under duplicate delivery.
33.A reconciliation check compares only row count and total quantity. Source records have quantities {1,4}; target records have {2,3}. Does equality of those two checks establish matching records?
Show answer and explanation
- No; the quantity totals are different
- Yes; equal row count and sum uniquely identify every dataset
- No; the row counts are different
- No; both checks pass while the record values differ
Answer: No; both checks pass while the record values differ
Both datasets contain two rows totaling 5, yet their values differ. Count and sum are useful checks but do not prove exact record equivalence. Match the required identity/content semantics with a suitable independent comparison.
34.A pipeline merges source records and strips all source IDs, transform versions and input references. A downstream audit requires explaining which source values produced a result. What evidence has been removed?
Show answer and explanation
- Only the precision of the final numeric representation
- The provenance needed to trace the result to its inputs and transformations
- A proof that every transformed result is numerically wrong
- A guarantee that every possible original input was identical
Answer: The provenance needed to trace the result to its inputs and transformations
A result can be numerically plausible while lacking traceable lineage. The audit requirement needs the relevant source and transformation relationships, not only a final value without its derivation context.
35.A child-record event arrives before its referenced parent. The contract permits reordering but requires retaining every valid child until its reference can be resolved. A consumer discards unresolved children permanently. What requirement is violated?
Show answer and explanation
- The ability to reject records proven invalid by the source
- A guarantee that the first arrival defines the complete reference graph
- Retention of valid unresolved children under permitted reordering
- A requirement that child events must always arrive after parents
Answer: Retention of valid unresolved children under permitted reordering
Reordering is allowed, so a missing parent at arrival does not prove an invalid child. Permanent discard violates the explicit retention rule. Use a defined pending/retry or equivalent resolution path.
36.System A is the authoritative owner of address changes. System B owns delivery preferences. A bidirectional sync lets B's stale cached address overwrite A's newer address without an authorization or conflict rule. What boundary is not preserved?
Show answer and explanation
- A requirement that every field in all systems have one common owner
- The declared field-level ownership of address updates
- Only B's ownership of delivery preferences, which this address update does not change
- The fact that B can store a replicated address
Answer: The declared field-level ownership of address updates
Replicating a field does not grant authority to overwrite its owner. The sync must honor field-level ownership and explicitly handle conflicts instead of treating every cached copy as a valid authoritative update.
37.A stream assigns each observation to a 10 s event-time window, with windows [0,10), [10,20), and so on. An observation occurs at event time 9 and arrives at receiver time 14. Which window contains it under this contract?
Show answer and explanation
- Neither because arrival and event time differ
- [10,20)
- [0,10)
- Both windows
Answer: [0,10)
The specified grouping key is event time, so 9 belongs to [0,10). Receipt at 14 does not move the observation into the next event-time window. A separate lateness policy would determine how late arrival is handled.
38.An entity starts with value 10. Its ordered operations are sequence 1: add 3, sequence 2: multiply by 2. A consumer instead applies them in arrival order 2 then 1. What pair gives the required result and the arrival-order result?
Show answer and explanation
- 26 required, 23 in arrival order
- 26 under both orders
- 23 required, 26 in arrival order
- 23 under both orders
Answer: 26 required, 23 in arrival order
The required order gives (10+3)×2=26. Reversing it gives 10×2+3=23. These operations do not commute, so transport reordering cannot be ignored under the sequence contract.
39.A patch sets zero-based array index 1 to X in base revision 7, whose list is [A,B,C]. Current revision 8 is [D,A,B,C]. The consumer applies that same index to revision 8 without a base check. Which element does it replace?
Show answer and explanation
- C, because a new element shifts the index to the end
- B, exactly as in revision 7
- D, because every patch targets index zero after a revision change
- A, although the patch targeted B in revision 7
Answer: A, although the patch targeted B in revision 7
Index 1 selects B in [A,B,C] but A in [D,A,B,C]. A positional patch depends on its base state. Checking or rebasing against the specified revision prevents applying the operation to a different element.
40.A contract requires A1 before A2 for entity A and B1 before B2 for entity B, with no order required between entities. Is the trace B1,A1,A2,B2 permitted by these order constraints?
Show answer and explanation
- Yes; entity-specific order is irrelevant under every contract
- Yes; both entity-specific orders are preserved
- No; the contract requires each entity's two operations to be adjacent
- No; every A operation must precede every B operation
Answer: Yes; both entity-specific orders are preserved
A1 precedes A2 and B1 precedes B2 in the supplied trace. The contract imposes no cross-entity order or adjacency requirement. A stricter global ordering rule would be an additional constraint.
41.An operation key is defined to identify one immutable request payload. The same key arrives first with quantity=2, then with quantity=9. What condition should be surfaced rather than treated as an ordinary identical retry?
Show answer and explanation
- Evidence that the first payload definitely had no effect
- A key-to-payload conflict
- A guaranteed independent new operation authorized by the reused key
- An ordinary identical retry because a key may represent arbitrary changing payloads
Answer: A key-to-payload conflict
The identity contract binds the key to one payload. Reuse with different content is a conflict requiring defined handling; silently treating it as identical or as a new intent changes the supplied semantics.
42.Two valid operations have different operation IDs but identical item and quantity fields. The contract says each ID represents a distinct user intent. A deduplicator uses only the payload fields. What can it incorrectly do?
Show answer and explanation
- Suppress one legitimate distinct operation
- Detect every duplicate intent exactly
- Prove the two IDs refer to the same intent
- Preserve both effects merely because the payloads match
Answer: Suppress one legitimate distinct operation
Content equality does not imply intent identity under this contract. Deduplicating by payload can merge two legitimate operations that should each be processed. Use the declared identity relation.
43.A snapshot at source version 100 has quantity 10 and includes all changes through 100. A following delta feed contains version 99:+2 and version 101:+3. The consumer must apply only versions after the snapshot. What resulting quantity follows?
Show answer and explanation
- 12
- 3
- 15
- 13
Answer: 13
Version 99 is already covered by the snapshot boundary and must not be applied again. Version 101 adds 3, giving 10+3=13. A snapshot and its delta continuation need a shared inclusion boundary.
44.A contract requires one business effect per operation ID and a separate audit record for every delivery attempt. A consumer suppresses duplicate effects correctly but logs only the first attempt. What requirement is missing?
Show answer and explanation
- The ability to recognize a common operation ID across attempts
- A requirement to apply one business effect for each attempt
- The one-effect-per-operation property already stated as correct
- The complete delivery-attempt audit trail
Answer: The complete delivery-attempt audit trail
Deduplicating effects does not authorize discarding attempt evidence when the audit contract covers every delivery. Business operation identity and transport-attempt identity serve different purposes.
45.An event-time window ends at time 10. Its contract accepts late events for that window through receiver time 15, inclusive. An event at event time 8 arrives at receiver time 12. Is lateness alone grounds to reject it?
Show answer and explanation
- Yes; event time 8 belongs only to a future window
- No; it arrives inside the permitted late-arrival interval
- No; the policy accepts every arrival at every future time
- Yes; every event arriving after window end is forbidden
Answer: No; it arrives inside the permitted late-arrival interval
The event belongs to the earlier window but arrives before its stated acceptance cutoff 15. Lateness is permitted within that interval. This does not authorize accepting arbitrarily late arrivals.
46.A replay resends historical operations so a new projection can rebuild. The contract says original operation IDs must be preserved. A replay tool generates fresh IDs, and an existing effect consumer also receives the replay. What risk does the ID change create?
Show answer and explanation
- Replay payload order alone guarantees effects cannot repeat
- All historical effects are automatically rolled back
- Fresh IDs prove the original operations never happened
- Historical effects can be mistaken for new operations
Answer: Historical effects can be mistaken for new operations
A consumer recognizing previous operations by original ID cannot associate fresh IDs with them. Rebuilding a projection and initiating new business effects need explicit routing and identity semantics; renaming the operations can defeat that distinction.
47.A
trace_idcorrelates ten distinct operation IDs in one workflow. A consumer deduplicates business effects bytrace_idand accepts only the first operation. What semantic scope is wrong?Show answer and explanation
- A common correlation ID proves all correlated payloads are duplicate operations
- Every operation ID must equal its workflow correlation ID
- A shared workflow label guarantees only one valid business operation
- Workflow correlation is being used as operation identity
Answer: Workflow correlation is being used as operation identity
One workflow can contain multiple required operations. A shared correlation label groups them for observation; it does not make their effects interchangeable. Deduplication must use the identity scope defined for the operation.
48.A cumulative source counter resets to zero at each declared epoch. Its last value in epoch X is 100; its first value in new epoch Y is 5. The contract defines Y's accumulated amount relative to its own zero baseline. What amount has accumulated in Y?
Show answer and explanation
- −95
- 0
- 5
- 105
Answer: 5
Epoch Y starts a new cumulative baseline. Its value 5 represents five units in Y, not a negative delta from epoch X's 100. Preserve the epoch boundary when converting cumulative records into changes.
49.A server returns ACCEPTED after durably enqueueing a job. The contract explicitly does not promise job completion at that point. A client displays COMPLETED immediately on that response. What meaning has been overstated?
Show answer and explanation
- The response proves every queued job has finished
- Durable enqueue necessarily creates the final business result
- The client is required to label all accepted jobs completed immediately
- Queue acceptance is being reported as completed processing
Answer: Queue acceptance is being reported as completed processing
The response confirms the defined admission stage. Completion requires its own outcome evidence. The client must preserve the stage distinction rather than infer a later event from the acceptance acknowledgment.
50.A client times out after submitting a request. It has no server outcome record. Both server execution followed by a lost reply and failure before execution are allowed histories. What can the timeout establish about the effect?
Show answer and explanation
- The effect definitely occurred twice
- The effect is unknown from this observation alone
- The effect definitely did not occur
- The effect definitely occurred once
Answer: The effect is unknown from this observation alone
Both executed and unexecuted histories fit the observation. A timeout is not itself evidence of either business outcome. Use the protocol's outcome lookup or other defined resolution semantics before claiming a definite effect.
51.A non-atomic bulk endpoint returns per-item results: A succeeded, B rejected, C succeeded. The client reports that the entire batch failed with no effects and blindly repeats all items as new operations. What result information has it ignored?
Show answer and explanation
- The committed successes and item-specific outcome boundaries
- A proof that B succeeded despite its rejection result
- A rule that a rejected item cancels all other items automatically
- A guarantee that every bulk endpoint is all-or-nothing
Answer: The committed successes and item-specific outcome boundaries
The explicit response identifies partial success. Treating it as zero effects discards outcome evidence and can repeat completed work. Recovery must respect the endpoint's actual atomicity and operation identity contract.
52.A business command requires changes in systems P and Q to be all-or-nothing. The proposed adapter commits P, then attempts Q; Q may fail and there is no rollback, compensation or pending-state contract. What does the proposal fail to establish?
Show answer and explanation
- That P can commit any change
- That Q can return an error
- The required cross-system atomic business outcome
- A guarantee that sequential calls cannot have different outcomes
Answer: The required cross-system atomic business outcome
The allowed history P committed/Q failed exposes a one-sided result. Independent sequential commits do not by themselves meet the all-or-nothing requirement. An appropriate protocol or changed business semantics is needed.
53.A transaction commits an application change and an outgoing-message intent together. A dispatcher may deliver that intent more than once. What does the atomic transaction establish without additional consumer semantics?
Show answer and explanation
- Exactly one external effect under every duplicate delivery history
- The committed change and intent are recorded together, not exactly one external effect
- That recording intent atomically prevents a dispatcher crash after send
- No need for the external consumer to recognize repeated messages
Answer: The committed change and intent are recorded together, not exactly one external effect
Atomic recording closes one local change/intent gap. It does not convert duplicate-capable delivery into a single business effect at an external consumer. Those boundaries require their own contract and implementation evidence.
54.A workflow sends an email, then a later step fails. Its documented compensation sends a correction email. Is this compensation equivalent to making the original email never have been observed?
Show answer and explanation
- Yes; two emails are identical to no emails
- No; compensation can never be a valid business policy
- No; the original observation can remain part of the history
- Yes; a correction retroactively removes every original observation
Answer: No; the original observation can remain part of the history
A compensating action can repair a business situation without erasing history. The correction may be a valid policy, but it does not provide the same semantics as an atomic rollback that prevented the original effect.
55.A producer sends an entity-created event before its database transaction commits. The transaction later aborts. A consumer has already acted on that event. What inconsistency is possible?
Show answer and explanation
- The aborted transaction must become committed because a message was sent
- The message proves every local constraint passed
- A consumer cannot receive any event before a producer commit by definition
- A consumer effect refers to an entity creation that never committed
Answer: A consumer effect refers to an entity creation that never committed
Publishing outside the commit boundary can expose an action the authoritative transaction did not accept. The integration needs a defined relationship between committed state and observable events rather than relying on call order alone.
56.An update is applied only if record version=5. Its reply is lost. A retry with the same version precondition fails because the record is now version 6. Other writers are possible, and no operation outcome lookup exists. Does the precondition failure alone identify who changed the record?
Show answer and explanation
- No; the record must still be at version 5
- Yes; it proves the original update failed before applying
- Yes; it proves the original update was the only writer
- No; this request or another writer could have changed it
Answer: No; this request or another writer could have changed it
The new version shows the precondition is no longer true, not which operation produced it. Multiple allowed histories explain version 6. Conditional updates help concurrency control but do not automatically resolve an uncertain request outcome.
57.A create endpoint returns authoritative ID R9 for a new parent. A dependent child request must reference that authoritative ID. The client instead sends its temporary local placeholder L2 without a mapping rule. What contract mismatch occurs?
Show answer and explanation
- The parent response automatically rewrites the bytes of every later request
- The child reference necessarily creates a second valid parent named L2
- Local placeholders and authoritative IDs are interchangeable without a mapping
- The child reference does not identify the returned parent under the supplied rules
Answer: The child reference does not identify the returned parent under the supplied rules
A local placeholder needs an explicit mapping to the authoritative identity before constructing dependent references. The create response does not silently transform later client messages.
58.A protocol defines REJECTED_BEFORE_APPLY as a final outcome guaranteeing no business effect. A trustworthy outcome lookup returns that status for operation K. What does this contract establish for K?
Show answer and explanation
- The status guarantees that any changed retry payload will also be rejected
- The effect is unknowable despite this explicit final outcome
- K definitely succeeded and only its reply failed
- No business effect occurred for K
Answer: No business effect occurred for K
The supplied status has a definite no-effect meaning, unlike a bare timeout. It resolves K's outcome under the trust assumption, but does not specify results for a different future request payload.
59.A cancellation endpoint returns CANCEL_REQUESTED. Its contract says work already completed is not undone and in-flight work may still finish. Can the caller treat that response as proof of zero business effects?
Show answer and explanation
- No; cancellation request acceptance does not establish that outcome
- Yes; every cancellation acknowledgment guarantees rollback
- Yes; the status proves no work began
- No; it proves exactly one effect must occur afterward
Answer: No; cancellation request acceptance does not establish that outcome
The endpoint confirms receipt of a cancellation request under explicitly limited semantics. It does not guarantee rollback or absence of effects. A final outcome or stronger cancellation contract would be needed for that claim.
60.Two consumer instances each keep a separate local deduplication store. A duplicate operation K reaches both while each local store lacks K; each applies one effect and records K locally. What guarantee is missing?
Show answer and explanation
- One effect across the combined consumer domain
- That both messages carry the same operation identity
- At most one stored K in each individual local store
- The ability for each instance to record its own completion
Answer: One effect across the combined consumer domain
Local uniqueness in separate stores does not coordinate the combined effect domain. Both instances can pass their own checks. A global one-effect claim needs a mechanism and boundary that actually cover both actors.
61.A dataset is ordered by (
updated_time,id). Records A and B both haveupdated_time=10, and A is the first one returned with page size 1. The client resumes withupdated_time>10 instead of the full pair cursor. What record can be skipped?Show answer and explanation
- B
- A only
- Every record with updated_time>10
- No record because timestamps are necessarily unique
Answer: B
B shares the last returned timestamp but has not yet been returned. A timestamp-only strict bound excludes it. The continuation must preserve the full declared ordering or use another complete tie-handling contract.
62.A list initially is [A,B,C,D]. Page 1 uses offset 0, size 2 and returns A,B. X is then inserted at the front, making [X,A,B,C,D]. Page 2 uses offset 2, size 2. What does it return?
Show answer and explanation
- B,C, repeating B
- C,D with no repetition
- X,A
- D only
Answer: B,C, repeating B
Offsets index the current list. Positions 2 and 3 after insertion are B and C. Offset continuation across changing membership does not by itself preserve a once-only traversal of the original list.
63.An API defines its continuation token as opaque and requires the next request to send the exact returned token. A client parses the token as an integer and increments it. What assumption is unsupported?
Show answer and explanation
- That token arithmetic preserves the server-defined continuation
- That the client can retain the returned token bytes
- That a continuation request can carry a token field
- That the server returned a token in its response
Answer: That token arithmetic preserves the server-defined continuation
An opaque token carries server-defined state, not an exposed page-number contract. Rewriting it by arithmetic invents semantics. Preserve it exactly unless the interface explicitly defines a valid transformation.
64.A continuation token is bound to filter status=OPEN. A client reuses it with status=CLOSED, although the contract forbids changing filters during traversal. What is the request's status under that contract?
Show answer and explanation
- It is valid because the token text is unchanged
- It proves both filters have identical result sets
- It is valid because every filter describes the same dataset
- It violates the token's query binding
Answer: It violates the token's query binding
Token bytes are only one part of the continuation contract. Reusing them with an incompatible query changes the traversal context. Start a defined new traversal or use an explicitly supported query-change mechanism.
65.A source snapshot is fixed at revision S for the entire export. The next-page request omits S, so the server reads current revision T instead. What consistency property is no longer established?
Show answer and explanation
- That every page belongs to the same source snapshot
- That the first page was read from revision S
- That a revision identifier can be carried in a request
- That the server can return an individually valid page at T
Answer: That every page belongs to the same source snapshot
Individually valid pages at different revisions need not form one consistent export. The continuation must carry or otherwise preserve the required snapshot boundary rather than rely on a fresh current read.
66.A client calls its maximum observed event time a watermark proving that all earlier events are complete. The transport allows arbitrarily delayed older events. After observing time 100, an unseen event at time 50 may still arrive. What is missing from the watermark claim?
Show answer and explanation
- A completeness or lateness guarantee beyond the maximum seen time
- Only changing the timestamp field to a larger integer type
- A rule that all event-time values must be distinct
- A guarantee that seeing a later event changes the source's earlier timestamps
Answer: A completeness or lateness guarantee beyond the maximum seen time
A maximum observation is not evidence that no earlier event remains in flight. A completeness watermark needs a source/protocol guarantee or an explicit bounded-lateness assumption that supports its meaning.
67.Two consecutive incremental queries use time intervals [0,10] and [10,20], both inclusive. A record has
change_time=10. The contract requires exactly one interval to select each boundary record. What does this partition do?Show answer and explanation
- Selects the record twice
- Selects the record zero times
- Selects the record once
- Changes the record's timestamp to 20
Answer: Selects the record twice
Time 10 belongs to both closed intervals, so both queries select it. Use a consistent boundary convention or a defined deduplication rule that meets the exact coverage requirement.
68.A signed cursor was issued while a user was authorized. The user later loses access. The cursor's signature is still valid, but the contract requires current authorization on every request. Can signature validity alone authorize the next page?
Show answer and explanation
- Yes; access revocation changes every old cursor's bytes automatically
- No; current permission still needs checking
- Yes; a signature grants permanent authorization by definition
- No; a valid signature proves the cursor was corrupted
Answer: No; current permission still needs checking
Signature validation can establish cursor integrity under its key assumptions. It does not replace the separate current-authorization rule. Historical issuance and present permission are different facts.
69.A page response contains no records but includes a valid next token. The contract says completion occurs only when the next token is absent. May the client stop solely because the page is empty?
Show answer and explanation
- Yes; every empty page means end of traversal
- No; it must repeat the same page forever
- No; the completion condition has not been met
- Yes; empty pages make every next token invalid
Answer: No; the completion condition has not been met
The explicit end condition is absence of a continuation token. Empty intermediate pages are not excluded by this contract. Follow the token rather than substitute a record-count heuristic for the specified completion rule.
70.An export reports
estimated_total=1,000. The contract labels this count approximate and supplies a separate authoritative completion marker. A consumer receives 1,000 rows and stops before that marker. What completeness evidence is missing?Show answer and explanation
- The required authoritative completion condition
- The fact that the export reported some numeric estimate
- A guarantee that every approximate count must be lower than the truth
- The evidence that the consumer received 1,000 rows
Answer: The required authoritative completion condition
Reaching an approximate count does not establish exact completeness. The supplied contract defines another authoritative endpoint, which the consumer has not reached. Estimates can support progress displays without serving as completion proofs.
71.An export completion marker identifies snapshot S. A consumer combines rows from S and T, then labels the combined output complete for S because it saw S's marker. What association is not preserved?
Show answer and explanation
- Only matching a filename independently of data and snapshot membership
- Rows from T become rows from S if the consumer changes the label
- The marker must certify the same snapshot as the assembled rows
- The marker establishes completeness for every source revision
Answer: The marker must certify the same snapshot as the assembled rows
Completion evidence has a scope. A marker for S cannot certify a mixed-revision assembly as S. Preserve the relationship between data membership and the boundary asserted by the marker.
72.A consumer persists checkpoint K before applying record K's required effect. It crashes before the effect, then resumes strictly after the persisted checkpoint. What loss window exists?
Show answer and explanation
- K can be skipped without its effect ever being applied
- K is guaranteed to be applied twice
- Resuming after K necessarily replays K first
- The checkpoint proves K's effect was committed
Answer: K can be skipped without its effect ever being applied
The checkpoint claims progress beyond an effect that has not committed. After the crash, resume skips K. Coordinate progress with effect semantics or otherwise provide a defined replay/recovery strategy that closes this window.
73.A quota allows 10 requests in each fixed interval [n,n+1) seconds for integer n. Ten requests arrive at 0.99 and ten at 1.01. Under this quota alone, are both bursts permitted?
Show answer and explanation
- Yes; each fixed interval contains 10
- Yes; fixed-window quotas have no per-interval limit
- No; all requests after the first burst are forbidden forever
- No; the rule is necessarily a rolling-window quota
Answer: Yes; each fixed interval contains 10
The bursts fall into different fixed intervals, each containing its allowed ten. A rule limiting every rolling one-second window would be different and would reject this pattern. State the quota's window semantics explicitly.
74.A batch request has a hard payload limit of 10 MB. Four records are each exactly 3 MB, with no compression or framing overhead. What minimum number of batches is needed if records cannot be split?
Show answer and explanation
- 3
- 2
- 1
- 4
Answer: 2
At most three 3 MB records fit in one request, totaling 9 MB. Four total 12 MB, so one batch is impossible; a three-plus-one or two-plus-two split uses two valid batches.
75.A producer offers 80 records/s and a consumer handles 50 records/s. A reliable bounded queue is initially empty, and the contract forbids dropping records. At sustained overload, what behavior must the integration address?
Show answer and explanation
- A claim that bounded queue size makes all offered records disappear safely
- Backpressure or another allowed way to bound the accumulating demand
- A guarantee that average consumption rises to 80 solely because the queue fills
- An assumption that reliable delivery means no capacity limit exists
Answer: Backpressure or another allowed way to bound the accumulating demand
Unprocessed demand grows at 30 records/s while these rates persist. A finite queue cannot absorb it indefinitely. The no-drop contract requires a feasible admission/backpressure or other explicitly allowed capacity policy.
76.A parent operation has absolute inclusive deadline 100 ms. At time 80 ms on the same clock it starts one child request, with no further overhead. What maximum child timeout keeps that wait within the parent's remaining budget?
Show answer and explanation
- 80 ms
- 100 ms
- 20 ms
- 180 ms
Answer: 20 ms
The remaining interval is 100−80=20 ms. Giving the child a fresh 100 ms timeout would extend beyond the parent's deadline. Real overhead or additional stages could require a smaller budget.
77.An endpoint returns INVALID_FORMAT with a contract guaranteeing rejection before any effect. The unchanged request is retried repeatedly, and the format rule is deterministic. What does waiting alone change about its validity?
Show answer and explanation
- The prior rejection proves the next unchanged payload will have a business effect
- Nothing under the supplied rule
- It becomes accepted once transport succeeds
- It necessarily becomes valid after one retry
Answer: Nothing under the supplied rule
A deterministic content error is not repaired by delay or a fresh transport attempt. The payload or relevant contract must change. This differs from an explicitly transient failure whose cause may disappear.
78.A transport delivers a message successfully, but the application returns UNSUPPORTED_VERSION without applying it. The producer records the operation as completed solely from transport delivery. What outcome boundary was confused?
Show answer and explanation
- Delivery translates every unsupported schema version automatically
- Delivery was confused with successful application processing
- This rejection establishes support for every later contract version
- The application rejection proves no transport bytes were delivered
Answer: Delivery was confused with successful application processing
The system has evidence of delivery and explicit evidence of application rejection. Neither is successful business completion. Record the actual application outcome under the interface contract.
79.A service quota is 100 requests/s per tenant. Tenants A and B each offer 80 requests/s. A client limiter incorrectly applies 100 requests/s to their combined traffic and claims it represents the same quota. What differs?
Show answer and explanation
- Tenant identity has no role in the declared quota
- The per-tenant rule forbids any combined rate above 100
- The limiter's scope unnecessarily rejects traffic permitted by the per-tenant rule
- Each tenant individually exceeds its 100 requests/s allowance
Answer: The limiter's scope unnecessarily rejects traffic permitted by the per-tenant rule
Each tenant's 80 is below its own 100 allowance, although their total is 160. A global cap of 100 is a stricter admission rule, not the same per-tenant contract. Scope matters as well as the numeric threshold.
80.A batch submits operations [A,B]. The contract permits result reordering and labels each result with its operation ID. The response order is [B:rejected,A:succeeded]. What outcomes should the client associate with the submitted operations?
Show answer and explanation
- Both rejected
- Both succeeded
- A rejected; B succeeded
- A succeeded; B rejected
Answer: A succeeded; B rejected
Result identity, not array position, defines the association. The response explicitly labels A successful and B rejected. Zipping request and result positions would reverse those outcomes under this allowed reordering.
81.A client makes at most three attempts to service A for one intent. Each A attempt may make at most three attempts to dependency B. There is no cross-attempt coalescing. What maximum number of B attempts can this retry structure produce?
Show answer and explanation
- 9
- 1
- 3
- 6
Answer: 9
The outer attempts can each trigger the full inner attempt budget: 3×3=9. Nested retries multiply demand; summing the two budgets would understate the possible downstream attempt count.
82.A wire request limit is 1,000 bytes including envelope and payload. The envelope is exactly 120 bytes and the payload 900 bytes. There is no compression. Does this request fit?
Show answer and explanation
- Yes; its payload alone is below 1,000
- Yes; the envelope is not part of an including-envelope limit
- No; its wire size is 900 bytes
- No; its wire size is 1,020 bytes
Answer: No; its wire size is 1,020 bytes
The supplied limit includes both parts. Adding 120+900 gives 1,020, exceeding 1,000. A payload-only size check measures a narrower quantity than the wire contract.
83.A retry policy waits 2, then 4, then
min(8,5)seconds between its first four attempts, with no jitter or request execution time. What total wait occurs before attempt 4?Show answer and explanation
- 7 s
- 5 s
- 11 s
- 14 s
Answer: 11 s
The three waits are 2,4,5 seconds because the third is capped at 5. Their total is 11. A cap affects the schedule rather than adding a separate delay to an uncapped value.
84.A frame length field counts payload bytes. A producer sends one character encoded as the two bytes C3 A9, but sets length=1 because it counted characters. The consumer follows the byte-length rule. What boundary error results?
Show answer and explanation
- It changes the declared byte count to 2 without a rule
- It necessarily consumes both bytes because they render as one character
- It consumes C3 as the payload and leaves A9 outside that frame
- It treats the length field as a Unicode character count by definition
Answer: It consumes C3 as the payload and leaves A9 outside that frame
The declared framing unit is bytes. Length 1 consumes one of the two payload bytes, leaving the second outside the frame. Character count and encoded-byte count are not interchangeable length measures.
85.A field contract accepts integers from 0 through 255 inclusive. A validator incorrectly rejects 255 while accepting 254. Which supplied fixture directly exposes the upper-bound defect?
Show answer and explanation
- −1, expected rejected
- 254, expected accepted
- 255, expected accepted
- 256, expected rejected
Answer: 255, expected accepted
The contract includes equality at 255, so rejecting that value is wrong. The other fixtures may pass even with this specific off-by-one defect. Boundary expectations should be derived from the contract independently of the validator.
86.An opaque-byte contract requires exact round-trip preservation. A fixture is bytes 00 FF 0A. An adapter treats it as text and returns 00 3F 0A after replacing FF. What should the fixture oracle conclude?
Show answer and explanation
- Pass; readable replacement characters preserve every opaque payload
- Pass; the byte count remains three
- Fail; the original first byte must have been 3F
- Fail; the FF byte was changed to 3F
Answer: Fail; the FF byte was changed to 3F
The required output is the original byte sequence, including FF. Equal length or a readable replacement does not satisfy exact-byte equality. A text conversion that substitutes bytes is not a lossless adapter for this contract.
87.Identifiers are defined as exact strings, including leading and trailing spaces. An adapter trims whitespace on write and claims a lossless round trip. For input "A ", what contract property fails?
Show answer and explanation
- The ability to store any identifier without spaces
- That the trimmed output can still be a string
- A guarantee that whitespace is irrelevant under this exact-string rule
- Preservation of the original identifier
Answer: Preservation of the original identifier
The adapter maps "A " to "A", which is a different identifier under the supplied equality rule. A round trip cannot restore discarded information without another defined channel or a changed normalization contract.
88.A projection sums each distinct event's signed delta exactly once. Its inputs are deltas 2,−1,4 with distinct IDs, and no order-dependent rules exist. What should permuting delivery order preserve after all are applied?
Show answer and explanation
- Only the first arrival's delta
- Final sum 5
- A guarantee that duplicate deliveries cannot occur
- A different total for every permutation
Answer: Final sum 5
Addition of these exact signed values is commutative and associative, so all permutations total 5. The property assumes the stated once-per-event application; it does not prove a separate duplicate-delivery mechanism.
89.A source manifest says an export contains exactly IDs {A,B,C}. A transferred file contains A,B and a valid checksum computed only from those received bytes. What does that checksum alone fail to establish?
Show answer and explanation
- Completeness against the source manifest
- That the received file has a computed checksum
- That a checksum can be computed over those locally received bytes
- That the received file contains A and B
Answer: Completeness against the source manifest
A checksum of an incomplete file can be internally consistent. Completeness needs comparison with the authoritative expected set or equivalent evidence tied to the source boundary, not only a checksum of what happened to arrive.
90.A receiver hashes its downloaded bytes and compares that hash with another hash it just computed from the same downloaded bytes. It has no authenticated expected source digest. What comparison is missing for a source-content integrity claim?
Show answer and explanation
- A trustworthy reference tied to the intended source content
- A requirement that all equal local digests identify the intended source
- Only a faster hashing implementation
- Another hash of the same local bytes
Answer: A trustworthy reference tied to the intended source content
Self-consistency of received bytes is not evidence that they match the intended source. The integrity claim needs a suitable independent expected value and its trust assumptions, not two computations over the same possibly altered input.
91.A bulk contract requires one explicit outcome for every submitted item, including invalid ones. A test submits valid A and invalid B; the service returns only A's success and a general success flag. What should the contract test detect?
Show answer and explanation
- That A must be invalid because B is invalid
- The missing outcome for B
- A guaranteed all-or-nothing rollback
- That a general flag supplies every omitted per-item result
Answer: The missing outcome for B
The output omits a required item-specific outcome. A top-level success flag does not fulfill that reporting contract or determine what happened to B. Test result membership as well as the flag.
92.A length-framed stream parser is tested with one read containing the full byte stream. The contract allows arbitrary read fragmentation without changing payloads. Which additional property directly checks that requirement?
Show answer and explanation
- Every read chunk must contain exactly one complete payload
- A larger read buffer changes the payload meaning
- One successful full-stream read proves correctness for every fragmentation
- Every partition of a finite fixture into reads yields the same decoded payload sequence
Answer: Every partition of a finite fixture into reads yields the same decoded payload sequence
Framing semantics should be independent of transport chunk boundaries. Exhausting the finite fixture's read partitions can reveal split-header or split-payload bugs, while remaining evidence for that fixture rather than a universal parser proof.
93.A historical replay keeps payload bytes but applies today's schema interpretation and transformation rules. Those rules changed after recording, and the replay stores no original versions. What reproducibility information is missing?
Show answer and explanation
- Proof that bytes must change whenever their interpretation changes
- Only a second copy of today's output
- A guarantee that schema names have identical meanings across all versions
- The versions governing the original payload meaning and transformations
Answer: The versions governing the original payload meaning and transformations
Identical bytes can be interpreted differently under changed contracts. Reproducing the original integration behavior requires relevant version/context evidence or a justified compatibility mapping, not payload retention alone.
94.An export contract defines records as an unordered set keyed by unique ID. Two outputs contain identical IDs and values but different array orders. A test fails only on array order. What unsupported condition has the test added?
Show answer and explanation
- A record-order requirement absent from the set contract
- The ability to compare identities across the two outputs
- ID uniqueness, which is already explicit in the set contract
- Equality of the actual associated record values
Answer: A record-order requirement absent from the set contract
The declared meaning is set equality, not sequence equality. Compare the required identities and values under that meaning. If order matters, it must be specified rather than imposed accidentally by a test.
95.A record contains duplicate members {"mode":"read","mode":"write"}. One reader explicitly keeps the first value; another keeps the last. What interoperability issue follows from those supplied rules?
Show answer and explanation
- Both readers necessarily produce read
- Duplicate names are harmless whenever their values are strings
- The same bytes produce different mode meanings
- Both readers necessarily produce write
Answer: The same bytes produce different mode meanings
The first-value reader obtains read, while the last-value reader obtains write. A shared duplicate-name rejection or resolution contract is needed to avoid this interpretation divergence. Successful parsing alone does not establish agreement.
96.A frame says length=5 bytes, but the stream ends after the three payload bytes abc. The contract accepts a record only when all declared bytes are present. What must this fixture's expected acceptance be?
Show answer and explanation
- Not accepted as a complete record
- Accepted because three bytes are better than none
- Accepted because end-of-stream overrides every declared length
- Accepted with an invented two-byte suffix
Answer: Not accepted as a complete record
Only three of the required five bytes exist. The completion rule has not been met; the parser must not silently certify a full record. Error reporting or buffering policy can vary, but complete acceptance cannot follow from this input.
97.For positive values, a conversion rounds to nearest, breaking exact ties upward. The required output is the exact value 1.46 rounded directly to an integer. An adapter first rounds to one decimal place, then to an integer. What pair gives the adapter result and required result?
Show answer and explanation
- 2 under both paths
- 1 under both paths
- 1 from the adapter, 2 required
- 2 from the adapter, 1 required
Answer: 2 from the adapter, 1 required
The intermediate rounding gives 1.5, then the halfway-up rule gives 2. Direct integer rounding of 1.46 gives 1. Individually defined rounding stages can change the composed result through double rounding.
98.An adapter maps two distinct allowed source states A and B to the same target state Q, retaining no side information. A later deterministic adapter sees only Q. Can it always restore which source state was present?
Show answer and explanation
- Yes; every deterministic transformation has a unique inverse
- Yes; receiving Q reveals whether A or B was used
- No; the first mapping discarded the distinguishing information
- No; it cannot produce any output at all
Answer: No; the first mapping discarded the distinguishing information
Both input histories lead to the same observed Q. A deterministic function of Q alone must produce the same result in both cases, so it cannot restore both distinct originals correctly. The loss requires side information or a changed contract.
99.A signed request body omits tenant identity. An unsigned outer header selects the tenant to receive the effect, and that header can change without altering the signature. The contract requires the signed authorization to bind the tenant. What is missing?
Show answer and explanation
- Only proof that the body can be signed
- A guarantee that every external header is immutable because the body is signed
- Binding of tenant context to the authenticated authorization
- A rule that all tenants share the same authorization scope
Answer: Binding of tenant context to the authenticated authorization
The signature covers the body, while the effect's tenant is supplied outside that coverage. Signature validity alone cannot establish the required tenant binding. The authorization context must be represented and verified under the actual contract.
100.A source assigns records to its local calendar date. Its fixed offset is local=UTC+2 hours. An event is at local 2026-04-01 00:30, equivalent to UTC 2026-03-31 22:30. A consumer partitions by UTC date instead. What meaning changes?
Show answer and explanation
- The local offset becomes negative
- The record moves to a different business-date partition
- The two timestamps necessarily represent different instants
- The record remains in April 1 under both stated date rules
Answer: The record moves to a different business-date partition
The instant is unchanged, but extracting a date in different declared time bases gives April 1 versus March 31. An instant normalization does not automatically preserve a business-calendar grouping rule.
101.A source may drop an accepted event before any consumer receives it and retains no replay copy. A design promises no loss of accepted source events using only consumer-local retries and deduplication. What gap remains?
Show answer and explanation
- Loss before consumer receipt is outside those mechanisms' recovery coverage
- No replay is needed whenever event IDs are unique
- Deduplication proves all accepted source events were received
- Local retries can reconstruct every unseen payload without another source
Answer: Loss before consumer receipt is outside those mechanisms' recovery coverage
A consumer cannot retry or recognize an event it never observed when no recoverable source copy exists. A no-loss claim needs a mechanism or changed source contract covering that loss boundary, not only duplicate handling after receipt.