Forward deployed engineer: Integration Contracts and Data Boundaries
Original technical interview practice in representation and identity, update and synchronization semantics, pagination and checkpoints, effect-level retries, trust boundaries, and complete data handoffs.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.Two customer systems both use integer record ID 42, but IDs are unique only within their own source. A connector deduplicates using ID alone. What collision can occur?
Show answer and explanation
- Different source records are merged as one logical record
- Only records from the same source can collide
- Every equal numeric ID necessarily names the same entity
- A longer decimal display automatically supplies source identity
Answer: Different source records are merged as one logical record
Identity needs the correct namespace and lifecycle. Include the relevant source or tenant identity when the contract requires it. A number unique within one system does not automatically become globally unique across an integration.
2.An account code is the exact string "0042". A parser converts it to integer 42, then writes "42" to the target. The contract treats leading zeros as significant. What information was lost?
Show answer and explanation
- Required identifier representation
- A measured quantity’s physical unit
- A checksum assumed to be embedded in every account code
- Only an optional display preference
Answer: Required identifier representation
An identifier is not necessarily a number to calculate with. Preserve its defined representation and equality rules. Numeric conversion can collapse distinct valid strings or remove information needed for exact matching.
3.A name-matching rule is case-sensitive in the source. A connector lowercases every key before joining. Source keys "Ax" and "ax" are distinct. What can the transformation do?
Show answer and explanation
- Only reorder the two source records
- Collapse distinct source identities
- Guarantee a more accurate one-to-one join
- Preserve the exact source equality relation by definition
Answer: Collapse distinct source identities
Canonicalization changes equality unless its semantics are agreed. Verify whether case, whitespace, accents, and normalization are identity-significant. A convenient cleanup can create collisions rather than merely improve formatting.
4.A wire JSON identifier is the integer 18,014,398,509,481,987 (2^54+3). The consumer parses it into a binary64 number that cannot represent that integer exactly. What interoperability guarantee is missing?
Show answer and explanation
- Lossless identifier interpretation
- Only the existence of digits in the request
- A requirement that every JSON parser use arbitrary-precision integers
- Only syntactic JSON validity
Answer: Lossless identifier interpretation
A format can allow values that a particular runtime cannot represent exactly. Use a contract and parser representation that preserve required identity, such as an agreed string encoding or exact integer type. Do not equate successful parsing with lossless interpretation.
5.A source reports decimal quantity 0.1 exactly. A binary floating-point consumer performs arithmetic and then uses exact numeric equality against a separately computed expected quantity. What should the integration contract address?
Show answer and explanation
- Numeric representation, rounding, and comparison tolerance
- A guarantee that every finite decimal is exact in binary floating point
- Only whether the payload uses UTF-8
- Only the field's short name
Answer: Numeric representation, rounding, and comparison tolerance
Representation and computation can introduce rounding even when the text is valid. Define units, permitted ranges, exactness, rounding, and equality appropriate to the quantity. Identity fields and measured quantities may require different treatment.
6.A payload amount is 1,250 integer minor units under a supplied scale of 100 minor units per whole unit. What whole-unit quantity follows?
Show answer and explanation
- 1,250
- 125
- 0.125
- 12.5
Answer: 12.5
Divide by the specified scale: 1,250/100=12.5. Unit and scale belong in the contract rather than being inferred from a familiar field name. The question defines the arithmetic and does not prescribe a financial representation for a real system.
7.An update contract distinguishes omitted field=leave unchanged and explicit null=clear. A connector replaces all omitted fields with null before sending. What semantic change results?
Show answer and explanation
- Only message field order changes
- Every target value is guaranteed preserved
- Unspecified values can be cleared unintentionally
- Omitted and null are equivalent under the supplied contract
Answer: Unspecified values can be cleared unintentionally
Absence and an explicit null can express different operations. Preserve presence information through parsing, defaults, validation, and serialization. A structural normalization can alter the intended state transition even if the field types remain acceptable.
8.A target's patch contract replaces an array as one value; it does not merge elements. A source sends one newly added member as a one-element array. What can happen?
Show answer and explanation
- The target necessarily deduplicates and preserves all old members
- Only array display order can change
- The target necessarily appends the member
- Existing members are removed by replacement
Answer: Existing members are removed by replacement
Update semantics must specify whether a collection is replaced, appended, merged, or reconciled by key. Under this supplied contract, a partial array is a replacement value. Do not infer element-level merge behavior from the word patch alone.
9.A source introduces enum value "paused". The connector maps every unknown value to "active," which authorizes work. The contract requires unknown states to be held for review. What rule is violated?
Show answer and explanation
- A requirement that all enums use integers
- The contract's already-known active-state spelling
- The defined unknown-state admission behavior
- Only alphabetical sorting of status labels
Answer: The defined unknown-state admission behavior
Forward evolution needs an explicit behavior for unrecognized values. A permissive default can turn uncertainty into authority. Preserve or reject/hold unknown state according to the actual contract instead of silently choosing a convenient existing state.
10.A CSV field contains a quoted newline. A parser treats every physical line as a complete record. What format boundary is mishandled?
Show answer and explanation
- Every newline always terminates a record regardless of quoting
- A quoted newline necessarily makes the file invalid
- Logical records can span physical lines
- Only the file's last byte matters
Answer: Logical records can span physical lines
A parser must follow the declared escaping and record grammar. Physical line splitting can corrupt valid multi-line fields. Test the actual dialect and edge cases rather than assuming a simple delimiter rule captures the format.
11.A format caps a field at 10 UTF-8 bytes. A particular character is encoded in three bytes. Four repetitions occupy how many bytes, and do they fit?
Show answer and explanation
- 10 bytes; yes
- 4 bytes; yes
- 12 bytes; no
- 3 bytes; yes
Answer: 12 bytes; no
Four characters at three bytes each require 12 bytes, exceeding the ten-byte limit. Character count and encoded byte length are distinct quantities. Specify whether a bound applies to bytes, code points, or another unit and enforce the correct one.
12.A timestamp describes a local wall time that occurs twice during a clock transition. The payload has neither offset nor disambiguating sequence information. What can the consumer not infer uniquely?
Show answer and explanation
- The local wall-clock text that was supplied
- That the string can be stored without selecting an instant
- That a calendar date appeared in the payload
- The intended actual instant
Answer: The intended actual instant
An ambiguous local representation can correspond to multiple instants. Agree on offset, zone/disambiguation, or another authoritative time model. Parsing a valid-looking timestamp does not create information the source omitted.
13.A contract represents intervals as [start,end). A record ends at time 10 and the next begins at 10. Which interval contains the exact boundary instant 10?
Show answer and explanation
- Both
- The second only
- The first only
- Neither
Answer: The second only
A half-open interval includes its start and excludes its end. The first excludes time ten; the second includes it. Make boundary conventions explicit so adjacent intervals do not accidentally double-count or drop events.
14.A sensor duration is milliseconds, but the target interprets the same numeric field as seconds. A source value of 500 represents what actual duration before the mistaken interpretation?
Show answer and explanation
- 50 seconds
- 5 seconds
- 500 seconds
- 0.5 seconds
Answer: 0.5 seconds
Five hundred milliseconds equals 0.5 seconds. Type compatibility does not establish unit compatibility. A schema should carry the meaning and permitted transformations so an unchanged number is not silently interpreted at the wrong scale.
15.A source exposes a date-only service day. The target turns it into midnight UTC and treats it as an actual event instant without an agreed rule. What semantic assumption was introduced?
Show answer and explanation
- Every date assumed to mean UTC midnight regardless of business semantics
- An unagreed instant/timezone meaning
- Only the number of storage bytes used for the date
- Only a reversible text-format change
Answer: An unagreed instant/timezone meaning
A calendar date and an instant are different types of fact. A conversion may be valid under an agreed business rule, but it is not information already present in a date-only value. Preserve the distinction where scheduling and grouping depend on it.
16.A parent table has one order and its child table has four line items. Joining them repeats the order-level shipping charge of 8 on every line. What sum results if a naive aggregate adds the repeated charge?
Show answer and explanation
- 32 instead of 8
- 2 instead of 8
- 8 instead of 32
- 4 instead of 8
Answer: 32 instead of 8
The join produces four copies of the order-level measure, so the naive sum is 4×8=32. Aggregate at the intended grain or otherwise avoid duplicating parent measures. A valid join relation does not guarantee every downstream sum preserves meaning.
17.A temporal dimension has two rows whose validity intervals overlap for one entity. A point-in-time join at the overlap returns both. What contract condition is missing if exactly one state is required?
Show answer and explanation
- Only nonempty entity identifiers
- A guarantee that joining on entity ID alone resolves temporal ambiguity
- Unique applicable state at each required instant
- Only a sorted output table
Answer: Unique applicable state at each required instant
A point-in-time lookup needs unambiguous validity under its boundary rules. Detect overlaps, gaps, ties, and revision policy appropriate to the data model. Selecting an arbitrary first row hides the conflict rather than establishing the required state.
18.A source contract defines higher entity revisions as newer. Revision 8 arrives after revision 9 is already stored. The target overwrites on arrival without comparing revisions. What failure can occur?
Show answer and explanation
- Every correction is newer than every stored value by definition
- Older state replaces newer authoritative state
- Only the log message order changes
- Arrival order necessarily matches revision order
Answer: Older state replaces newer authoritative state
Transport arrival is not always logical version order. Define revision identity, monotonicity scope, ties, and update admission. A valid old message can still be stale when applied, especially during retries, backfills, or delayed delivery.
19.Two sources can update the same target field. Their clocks are not comparable, yet the merge rule picks the largest wall-clock timestamp. What premise is weak?
Show answer and explanation
- Comparable clocks and an authority rule
- That each message contains timestamp text
- That both systems possess a clock
- That values can be serialized
Answer: Comparable clocks and an authority rule
A last-writer rule needs a justified ordering and conflict policy. Unsynchronized or differently interpreted clocks can choose the wrong state. Define ownership, causal/version information, or another appropriate resolution rule rather than relying on numeric timestamp comparison alone.
20.A source deletion arrives as a tombstone. The connector drops it as an empty payload and never removes the target row. What state transition is lost?
Show answer and explanation
- Deletion of the corresponding target entity
- A duplicate no-op update with no semantic effect
- Only a display label
- Only the source's row count
Answer: Deletion of the corresponding target entity
Absence of a payload can encode a meaningful deletion operation. The change contract must specify identity, ordering, replay, and retention for tombstones. Treating every empty body as irrelevant can leave stale entities active indefinitely.
21.A replication consumer is offline longer than the source's retained change history. It resumes from an offset that no longer exists. What guarantee requires a recovery protocol?
Show answer and explanation
- Complete synchronization without silently skipping missing changes
- Only the consumer's ability to read new events
- That the old offset can be written in a log
- Only successful TCP reconnection
Answer: Complete synchronization without silently skipping missing changes
A gap in retained history cannot be repaired by pretending the next available offset is contiguous. Detect the condition and use a suitable snapshot/reconciliation path under the source contract. Reconnection is not evidence of complete state recovery.
22.A snapshot is read at source position S, then changes are consumed starting after unrelated later position T>S. What data gap can occur?
Show answer and explanation
- Every future change treated as automatically included in an earlier snapshot
- Changes in the skipped handoff interval
- Only duplicates considered possible despite the later stream start
- The two source positions treated as equivalent merely because both are numeric
Answer: Changes in the skipped handoff interval
A snapshot-to-stream handoff needs a consistent boundary or reconciliation rule. Starting after a later unrelated position can skip changes not reflected in the snapshot. Define and verify the source's transaction and offset semantics.
23.A consumer saves offset 200 before durably applying the record at 200. It crashes and resumes after that offset. What failure can result?
Show answer and explanation
- The target necessarily reapplies the record twice
- The uncommitted record is skipped
- Only the checkpoint file's name changes
- The checkpoint write makes all prior independent writes durable automatically
Answer: The uncommitted record is skipped
Progress must not get ahead of the required durable effect unless another protocol guarantees recovery. Coordinate effect and checkpoint, or use appropriate idempotent replay and reconciliation. An offset is a claim about completed work, not the work itself.
24.A consumer applies a record durably, then crashes before advancing its checkpoint. On replay it applies a non-idempotent increment again. What result is possible?
Show answer and explanation
- Only a harmless repeated read
- Guaranteed exactly-once effect from durable storage alone
- Duplicate effect for one source record
- Automatic rollback of the first committed increment
Answer: Duplicate effect for one source record
At-least-once delivery or replay needs effect-level deduplication, idempotence, or another valid transactional protocol. The gap between effect and checkpoint can cause repetition. A successful durable first write does not prevent a second effect.
25.An idempotency key is unique only within each tenant. The server deduplicates globally by key and ignores tenant identity. Two tenants use key "job-7". What can happen?
Show answer and explanation
- Both effects are necessarily independent despite the global key
- Only the key's alphabetical order changes
- Every tenant-local key is globally unique by definition
- One tenant's operation is mistaken for the other's duplicate
Answer: One tenant's operation is mistaken for the other's duplicate
Deduplication must use the scope of the operation identity and authority. A key can be valid and unique locally while colliding across tenants. Bind identity, intent, principal, and relevant request semantics according to the API contract.
26.An API defines an idempotency key as binding one exact operation intent. A client retries the same key with a different target and payload. What must the server avoid under that contract?
Show answer and explanation
- Intent identity is silently violated
- Comparing the submitted request with the recorded intent
- Returning a defined conflict for incompatible key reuse
- Checking whether the key exists
Answer: Intent identity is silently violated
Deduplication is not merely a lookup by any reused string. The identity must bind the operation's relevant semantics and authority. Define and enforce conflict behavior so a key cannot silently associate a new intent with an old result.
27.A server forgets deduplication entries after one day. A client may retry an uncertain non-idempotent operation after three days. What guarantee is unsupported by that retention policy alone?
Show answer and explanation
- That old entries consume storage before removal
- That the client can send a later request
- At-most-once effect across the full retry horizon
- That the server can deduplicate within a retained entry's scope
Answer: At-most-once effect across the full retry horizon
Once identity evidence expires, a late retry can look new. Align retention, identity scope, retry horizon, and reconciliation with the required effect semantics. A bounded cache is not an unlimited duplicate-prevention guarantee.
28.A worker records "completed" in its deduplication ledger, then separately performs the required external action. It crashes between them. Recovery suppresses the action because the ledger says completed. What outcome is possible?
Show answer and explanation
- The action necessarily happened twice
- The two independent steps become atomic because they use the same ID
- The action is lost despite a completed ledger entry
- Only the ledger's display order changes
Answer: The action is lost despite a completed ledger entry
An identity ledger must be tied to the effect through a valid protocol. Recording completion first can suppress an effect that never happened; recording it afterward can create a replay window. Define transactional or external reconciliation semantics rather than assuming order alone solves both.
29.A client sends two parallel copies of a command that adds one item to an external counter. The endpoint has no deduplication and both may execute. What latency technique is unsafe for exactly-one effect under these premises?
Show answer and explanation
- Using a stable operation identity with a valid server-side deduplication contract
- Measuring one read-only request's latency
- Hedging the non-idempotent command without an effect protocol
- Waiting for a defined operation result
Answer: Hedging the non-idempotent command without an effect protocol
Parallel retries can improve response latency for some operations but can duplicate effects here. Establish the actual command semantics and authority before applying a read-oriented optimization. Client-side selection of the first response does not undo a second committed effect.
30.A retry policy allows three attempts of 2 seconds each, plus fixed waits of 1 and 2 seconds between attempts. There is no overlap or other cost. What worst-case duration follows in this model?
Show answer and explanation
- 9 seconds
- 12 seconds
- 5 seconds
- 6 seconds
Answer: 9 seconds
The attempts use 3×2=6 seconds, and waits add 1+2=3, for a total of nine. An end-to-end deadline must include all stages, not just per-attempt timeouts. Cancellation and external completion semantics remain separate requirements.
31.An outer connector makes up to three attempts. Each attempt calls a helper that independently makes up to two device calls. All calls fail. What maximum device-call count follows?
Show answer and explanation
- 2
- 3
- 6
- 5
Answer: 6
The nested limits multiply: three outer attempts can each issue two inner calls, giving six. Retry budgets need a complete call graph and deadline/effect model. Independently reasonable local policies can amplify load when composed.
32.A source has 103 records in a fixed snapshot. Each page returns at most 20 and there are no empty intermediary pages. What minimum page count is needed to retrieve them all?
Show answer and explanation
- 20
- 6
- 103
- 5
Answer: 6
Five full pages hold 100 records, leaving three for a sixth. This count assumes the supplied stable snapshot and paging contract. It does not establish consistency for a changing source or justify dropping a final partial page.
33.A supplied rate-limit contract says a response's retry delay is a lower bound, in seconds, before the next attempt. A client interprets value 30 as milliseconds. What behavior violates that contract?
Show answer and explanation
- Recording the response for diagnosis
- Waiting at least 30 seconds
- Applying a longer delay within a separate valid deadline policy
- Retrying earlier than the permitted delay
Answer: Retrying earlier than the permitted delay
Units and boundary semantics matter for retry instructions. Thirty milliseconds is much shorter than the required 30 seconds. Parse and validate the actual contract, then combine it with the operation's deadline and cancellation policy rather than guessing from a number.
34.A job API returns accepted=true after enqueueing. A separate status resource reports final completion or failure. The connector treats the enqueue acknowledgement as successful business completion. What boundary is confused?
Show answer and explanation
- The difference between two identical completion events
- Admission versus completed operation
- A completed effect versus its own final receipt
- The request body's field order
Answer: Admission versus completed operation
An asynchronous protocol has distinct lifecycle states. Follow the defined operation identity and terminal-status contract, with timeouts and uncertain outcomes handled explicitly. Acceptance can be useful progress without being the requested final effect.
35.A batch response has a valid envelope but contains 80 successful rows and 20 failed rows, as the documented per-row contract allows. What completion claim is false?
Show answer and explanation
- Per-row outcomes need inspection under the documented contract
- All 100 row effects succeeded
- Some row effects succeeded and some failed
- The response envelope was received
Answer: All 100 row effects succeeded
Transport or envelope success does not override application-level partial outcomes. Define retry, identity, checkpoint, and reporting behavior at the actual unit of commitment. Treating a mixed result as complete can lose required work or duplicate successful rows on blind replay.
36.Offset pagination first returns [A,B] from ordered [A,B,C,D]. Before offset 2 is read, Z is inserted before A, making [Z,A,B,C,D]. With the same page size, which original record is returned again on the second page?
Show answer and explanation
- C
- B
- A
- D
Answer: B
Offset two now starts at B, so the next page is [B,C]. A changing list can shift positions between reads. Use the source's appropriate snapshot or cursor/reconciliation contract rather than treating offset pages as one stable snapshot automatically.
37.A change query uses
modified_time>last_time. Two records share time T, but a page ends after the first and storeslast_time=T. What can the next query omit?Show answer and explanation
- Every record already processed before T
- Other records tied at T
- Only records later than T
- Only the timestamp’s printed representation
Answer: Other records tied at T
A nonunique cursor field can lose tied records at a boundary. Use a suitable stable unique ordering tuple, inclusivity/deduplication rule, or source-provided cursor contract. A timestamp alone is not necessarily a complete progress identity.
38.Records are ordered by (time,id). Cursor is (10,5). Which predicate selects later tuples under ascending lexicographic order?
Show answer and explanation
- time>10 AND id>5
- id>5 regardless of time
- time>10 OR (time=10 AND id>5)
- time>=10 with no tie handling
Answer: time>10 OR (time=10 AND id>5)
Lexicographic order advances by later time, or by larger ID when time ties. Requiring both fields to increase can omit valid later-time records with smaller IDs. The tuple must also be stable and sufficiently unique for the source's paging contract.
39.A cursor was issued for filter region=R, then reused with filter region=S although the contract binds cursors to their original query. What premise is violated?
Show answer and explanation
- The cursor's query/snapshot scope
- Only the human-readable region label
- A guarantee that every cursor is a global record index
- Only the order of the URL parameters
Answer: The cursor's query/snapshot scope
Cursors can encode position, filters, ordering, snapshot, and authority context. Treat their defined scope as part of the interface. Reuse under different query semantics can skip, duplicate, reject, or misinterpret data.
40.An API defines its continuation token as opaque. A client parses digits from it and increments them to guess the next token. What contract is broken?
Show answer and explanation
- Invented semantics for an opaque token
- Storing the returned continuation token without modifying it
- Returning the token according to the documented API contract
- Treating a failed continuation validation as an error rather than silently guessing
Answer: Invented semantics for an opaque token
Opaque means the consumer must not rely on an internal representation without a contract. Follow the provided continuation mechanism and error behavior. A token that happens to contain digits is not an authorized arithmetic offset.
41.A journal's documented offsets may have gaps for internal reasons, but every returned continuation token is authoritative. A connector rejects any numeric gap as missing customer records. What assumption is unsupported?
Show answer and explanation
- A returned token can identify a resume point
- The journal can return a continuation token
- Some offsets may be absent by contract
- Offsets are contiguous one-per-record counters
Answer: Offsets are contiguous one-per-record counters
Progress positions need not equal business-record counts. Interpret gaps, ordering, and retention according to the source contract. Inferring lost data solely from numeric noncontiguity can create false alarms or invalid repair actions.
42.A connector receives a filtered list containing only active records. It deletes every target record absent from that list, including records outside the filter's scope. What reconciliation boundary is wrong?
Show answer and explanation
- Deletion authority exceeds the snapshot scope
- The list contains active records
- The connector can compare identities
- The source applies some filter
Answer: Deletion authority exceeds the snapshot scope
A deletion reconciliation needs a complete authoritative view for the population being reconciled. A filtered or permission-limited result does not establish global absence. Bind reconciliation to the actual scope and source guarantees.
43.A source user's permissions are narrowed, so previously visible rows disappear from list results without being deleted. The connector propagates those absences as deletions. What distinction is missing?
Show answer and explanation
- Only the credential’s creation time
- Visibility versus source deletion
- Only the sort order of the list
- Every row outside the current user’s view treated as nonexistent
Answer: Visibility versus source deletion
A consumer's view can change independently of source state. Define authorization, scope, tombstones, and reconciliation semantics so access changes do not silently destroy target state. Absence is meaningful only within the appropriate completeness contract.
44.A malformed record is retried indefinitely at the head of an ordered stream. Later valid records never progress. The contract permits quarantining invalid input with evidence. What handling fits that contract?
Show answer and explanation
- Silently discard the record and claim all required source work succeeded
- Replace the source cursor with an unrelated later position without preserving the held record
- The defined quarantine and recovery path
- Retry without a bound despite the contract’s available terminal/error mechanism
Answer: The defined quarantine and recovery path
A poison record can block availability if its terminal/error policy is undefined or ignored. Follow the explicit quarantine and reconciliation contract, keeping skipped or held work visible. Advancing progress must not falsely claim the invalid record was successfully applied.
45.A batch commits records 1 and 3 but record 2 fails. A checkpoint value means all records through that position are complete. What value can safely represent the contiguous completed prefix in this trace?
Show answer and explanation
- 3
- 2
- 1
- 4
Answer: 1
Only the prefix through record one is complete. Record three's success does not fill the hole at two. Track noncontiguous completion or replay safely under a valid protocol instead of advancing a prefix watermark to the maximum successful position.
46.A watermark uses the largest event time seen, but records may arrive arbitrarily late with older event times. The connector treats that watermark as proof no older record remains. What completeness assumption is missing?
Show answer and explanation
- Only the newest observed record’s payload size
- Completeness or bounded-lateness evidence
- Only the ability to compare timestamps numerically
- Arrival order assumed identical to event-time order despite permitted arbitrary delay
Answer: Completeness or bounded-lateness evidence
A maximum observed event time does not establish that all earlier events have arrived. Define lateness, finality, revisions, and recovery appropriate to the source. Otherwise late valid records can be skipped or aggregates finalized prematurely.
47.A retention rule removes records seven days after event time. Some required records arrive ten days after their event. What conflict must the integration resolve?
Show answer and explanation
- Valid late arrivals can be expired before processing under that rule
- Only the record's display order
- A guarantee that arrival and event time are always equal
- Only whether the database stores a timestamp type
Answer: Valid late arrivals can be expired before processing under that rule
Time-based policies need the correct clock and lifecycle boundary. Event-time retention can conflict with allowed arrival delay. Define the intended handling, repair, and permitted history rather than silently dropping required late data.
48.A target needs the full sequence of state transitions for an audit. The connector stores only each entity's latest state and discards earlier updates. What information cannot generally be reconstructed?
Show answer and explanation
- The complete transition history
- The latest retained field values
- The entity's current ID
- The current stored state
Answer: The complete transition history
A state projection can be sufficient for current reads while losing the events or revisions that produced it. Define whether the contract needs current state, history, or effects. Do not promise a full audit trail from a representation that intentionally discards prior transitions.
49.A connector caches a tenant's role mapping indefinitely. The source may revoke access immediately, and the target contract requires revocation within five minutes. What cache policy claim is unsupported?
Show answer and explanation
- That the target can measure a five-minute interval
- That indefinite caching meets revocation timing
- That the source may change roles
- That the cache can return a stored mapping
Answer: That indefinite caching meets revocation timing
Authorization state has a freshness and authority contract as well as a performance cost. Define valid lifetime, invalidation, refresh, and failure behavior suitable for the required revocation bound. A fast old mapping is not necessarily a valid current permission.
50.A producer changes a required field from integer to a nested object under the same version. Existing supported consumers accept only the integer contract. What compatibility claim fails?
Show answer and explanation
- Backward compatibility for supported consumers
- The new body can be valid JSON
- A newly written consumer may understand the new representation
- The producer can serialize an object
Answer: Backward compatibility for supported consumers
Syntactic validity does not preserve the supported contract. Type and meaning changes need appropriate versioning, negotiation, migration, or compatibility behavior. The existence of a new consumer does not establish that older promised consumers still work.
51.A request contains a valid login and a
tenant_idfield supplied by the caller. The server uses that field without checking the caller's tenant authority. What trust boundary is missing?Show answer and explanation
- Only authentication of some user identity
- Authorization of the requested tenant scope
- Only JSON syntax validation
- A guarantee that a signed-in caller controls every tenant ID it can type
Answer: Authorization of the requested tenant scope
A caller-controlled selector is not proof of authority over the selected scope. Bind the operation and referenced objects to the effective principal and policy. Authentication can identify a caller while leaving the requested action unauthorized.
52.A connector runs with a broad service credential. A narrow customer user can ask it to fetch arbitrary object IDs, and the connector never checks that user's scope. What failure class can occur?
Show answer and explanation
- Only a mismatch between object display labels
- The connector becomes a deputy for actions the user cannot authorize
- Only a slower database query
- A guarantee that service credentials transfer all their powers to every requesting user
Answer: The connector becomes a deputy for actions the user cannot authorize
A privileged intermediary must enforce the authority relevant to the requested operation. Its own access is not automatically the end user's entitlement. Trace principal, tenant, object, purpose, and allowed delegation through the integration.
53.A supplied token contract binds a token to API A as its audience. API B accepts that validly signed token without checking audience. What intended restriction is lost?
Show answer and explanation
- Only its signature's mathematical validity
- A guarantee that every service trusting the signer is an intended recipient
- Only the token's textual encoding
- The token's target-service scope
Answer: The token's target-service scope
A valid signature does not establish that a token was issued for every possible consumer. Validate the claims and context the application's trust contract requires. Audience, issuer, time, authority, and identity have distinct roles.
54.A customer's group mapping contract says unknown groups grant no privileged role. A connector defaults unrecognized group names to administrator after a rename. What is violated?
Show answer and explanation
- The existence of the customer's identity provider
- The defined fail-closed mapping policy
- Only a cosmetic naming convention
- A requirement that every group be spelled in uppercase
Answer: The defined fail-closed mapping policy
Map identity claims through an explicit authorized policy. An unrecognized value is not evidence of privileged entitlement. Handle renames, missing claims, unknown values, and revocations according to the actual contract rather than a permissive fallback.
55.A credential is valid until time 100 under a supplied exclusive-expiry rule: valid only while now<100. The connector uses it at now=100. What result follows for that validity condition?
Show answer and explanation
- It is valid if the last request succeeded
- It is valid because equality is always included
- Its expiry disappears if stored in a secret manager
- It is expired
Answer: It is expired
The stated rule excludes the boundary instant. Credential storage and earlier success do not change current validity. Apply the contract's clock, skew, refresh, and failure semantics explicitly rather than guessing an inclusive endpoint.
56.An asynchronous connector keeps the current tenant in one global variable. Request A sets it, yields, request B changes it, and A resumes using B's value. What isolation property failed?
Show answer and explanation
- Request context remained bound to its own tenant
- Only the source-code function names
- A guarantee that separate request IDs isolate all mutable global state
- Only the number of worker threads
Answer: Request context remained bound to its own tenant
Concurrent interleaving can mix mutable shared context even when each request has a distinct identifier. Pass or bind scoped authority and data through the actual operation lifetime. A global current-tenant value is not automatically request-local.
57.A source lookup uses key (tenant,id), but a target cache uses id alone. Two tenants both have object 9. What must the cache key preserve?
Show answer and explanation
- Only the cache entry's insertion time
- Only the numeric object's decimal spelling
- A guarantee that an internal cache cannot leak cross-tenant state
- The source identity and authorization namespace
Answer: The source identity and authorization namespace
Caching must preserve the relevant equality and authority boundary. A key that drops tenant scope can return another tenant's object. Include the appropriate context and verify that access checks still apply at the consuming path.
58.A webhook's supplied signature contract authenticates the exact received body bytes. Middleware parses and reserializes JSON before verification, changing whitespace. What evidence does the verifier now use incorrectly?
Show answer and explanation
- A guarantee that all JSON serializers produce identical bytes
- The exact signed representation
- Only an equivalent immutable signature by definition
- A different byte sequence from the signed message
Answer: A different byte sequence from the signed message
Semantic equivalence of parsed JSON does not imply byte identity. Verify according to the actual signature/canonicalization contract, preserving required input and context. If canonicalization is intended, it must be a shared defined rule rather than an arbitrary local serialization.
59.A webhook message is validly signed and within its five-minute acceptance window. The same message may be delivered repeatedly during that window, and its effect is non-idempotent. What is still needed for at-most-once effect?
Show answer and explanation
- A valid timestamp treated as proof that every delivery is a distinct operation
- Effect identity and duplicate handling
- Only rechecking the same valid signature on every repeated delivery
- Only a larger acceptance window
Answer: Effect identity and duplicate handling
Authenticity and bounded freshness do not by themselves distinguish repeated delivery of the same valid action. Bind identity and effect semantics to a durable deduplication or reconciliation design suitable for the required horizon.
60.A signed webhook body is bound to tenant A, but routing selects tenant B from an unsigned header and ignores the signed tenant. What consistency check is missing?
Show answer and explanation
- Only whether the signature verifies over the body
- The executed tenant scope must match the authenticated context
- Only the header's spelling
- A guarantee that authenticated payloads authorize arbitrary unsigned routing metadata
Answer: The executed tenant scope must match the authenticated context
The authority established by verification must be the authority used for execution. Validate relevant routing and semantic bindings so unsigned metadata cannot redirect an otherwise authentic action into a different scope.
61.A TLS peer presents a chain trusted by the client, but the certificate's identity does not match the intended server under the connection's verification contract. What is not established?
Show answer and explanation
- Only the existence of an encrypted session
- Only whether some CA signed the certificate
- Authentication of the intended endpoint
- That every certificate from a trusted CA names the desired server
Answer: Authentication of the intended endpoint
Trust-chain validation and endpoint identity matching are separate requirements. Use the appropriate verified identity and trust configuration. Do not treat encryption or a familiar issuer alone as proof that the connection reached the intended authority.
62.A client certificate authenticates connector X. The application policy still restricts X to status reads. X requests a destructive operation. What admission decision follows from that policy?
Show answer and explanation
- Deny the destructive operation
- Ignore the policy because transport authentication already completed
- Allow it if the certificate has not expired
- Allow it because mutual authentication grants every action
Answer: Deny the destructive operation
Authentication establishes an identity under its trust model; application authorization determines permitted actions. A valid authenticated connector can still lack authority for a specific operation or object.
63.A gateway is meant to set an authoritative tenant header, but the application also accepts the same header directly from untrusted clients on another route. What trust assumption is broken?
Show answer and explanation
- Every accepted header came through the trusted gateway
- Only that one gateway route exists
- A guarantee that internal-looking header names cannot be forged
- Only that the header can contain text
Answer: Every accepted header came through the trusted gateway
Trust depends on the enforced request path and provenance, not the header's name. Remove or validate untrusted copies and bind authority at the appropriate boundary. An alternate ingress can bypass an otherwise sound gateway assumption.
64.An authenticated export request receives a redirect to a different host. The connector automatically forwards its original bearer credential there without an authorization rule for the new host. What scope must be checked?
Show answer and explanation
- Whether the redirected destination may receive that credential
- Only whether the redirect has a valid HTTP status
- Only whether the new URL is shorter
- A guarantee that every redirect preserves the original authority boundary
Answer: Whether the redirected destination may receive that credential
A redirect can change the recipient of sensitive authority. Apply the client's actual origin, destination, and credential-forwarding policy rather than assuming transport navigation authorizes disclosure. Follow the protocol and application trust contract together.
65.A connector fetches user-supplied URLs but is allowed to contact only approved external destinations. It validates the URL's spelling without checking the actual resolved destination. What boundary is unverified?
Show answer and explanation
- The network target actually contacted is within the allowed scope
- Only whether the URL has a scheme
- Only whether the payload looks like a document
- A guarantee that a familiar hostname always resolves to an approved address
Answer: The network target actually contacted is within the allowed scope
An outbound request is an operation with a destination and authority boundary. Validate the effective target and redirect/resolution behavior under the permitted design. Textual appearance alone may not describe the network resource actually reached.
66.An imported archive contains member path "../settings.json". The extractor joins names to its working directory without a containment check. What resource boundary can be crossed?
Show answer and explanation
- A guarantee that every archive path is safe because the file opened
- Only the order of archive members
- Only the compression ratio
- Writes can escape the intended extraction directory
Answer: Writes can escape the intended extraction directory
Treat archive names as untrusted path input. Resolve and enforce the intended destination boundary, including relevant platform and link semantics, before writing. Successful decompression does not authorize writes outside the extraction scope.
67.A connector exports untrusted cells to CSV for a spreadsheet. It correctly quotes delimiters but leaves a leading formula marker that the spreadsheet executes. What distinction matters?
Show answer and explanation
- Only the file's extension
- A guarantee that valid CSV cannot contain active spreadsheet content
- Only the number of commas in the row
- CSV syntax safety versus spreadsheet interpretation safety
Answer: CSV syntax safety versus spreadsheet interpretation safety
Correct serialization for one grammar does not establish safe interpretation by a later consumer. Define the output's intended use and handle untrusted values according to that consumer's rules. Test the actual viewing path rather than only a CSV parser.
68.A connector constructs a query by concatenating an untrusted value into SQL text. The database API supports bound values. Which boundary should the implementation preserve?
Show answer and explanation
- A guarantee that a customer-supplied value is trusted query code
- Only whether the value was present in a valid JSON request
- Only the number of characters in the value
- Data values must remain separate from query syntax
Answer: Data values must remain separate from query syntax
Use the appropriate parameter and allowlist mechanisms for the actual query parts and database API. Valid input transport does not turn data into authorized syntax. Identifiers and structural query choices can need different handling from bound values.
69.A failed request log includes the entire Authorization header. Logs are exported to a broader support audience than the credential's intended holders. What information-flow defect exists?
Show answer and explanation
- Only the severity label attached to the request log
- Credentials cross the logging access boundary
- Only a long diagnostic line
- Every diagnostic artifact assumed nonsensitive regardless of captured authority
Answer: Credentials cross the logging access boundary
Diagnostics need a defined data and authority scope. Avoid exposing unnecessary credentials or secrets, and verify sanitization at the relevant capture and export paths. A failure context can be useful without copying every sensitive input.
70.A connector encrypts data in transit but stores an unrestricted local plaintext spool on a shared host. The requirement protects the retained spool as well as transport. What protection is incomplete?
Show answer and explanation
- A guarantee that transit encryption covers all later storage automatically
- Only the transport connection's existence
- Only whether encryption bytes appear on the network
- The at-rest access and storage boundary
Answer: The at-rest access and storage boundary
Protection claims need an end-to-end lifecycle and scope. Transport encryption does not define local file permissions, retention, key management, or access to a spool. Evaluate the actual retained representation under the supplied requirement.
71.A message is encrypted for confidentiality using a supplied mode that provides no authenticity, and no independent authentication is checked. What property is not established?
Show answer and explanation
- That the bytes have an encrypted representation
- That a receiver can attempt decryption
- A guarantee that secrecy alone prevents every modification
- Authorized origin and integrity of the accepted message
Answer: Authorized origin and integrity of the accepted message
Confidentiality and authenticity are different claims. Use and verify a suitable authenticated design for the intended context and authority. Successful decryption alone does not authorize an operation or establish that all relevant metadata is intact.
72.A download and its expected checksum both come from the same unauthenticated mutable source. The bytes match that checksum. What trust claim is unproven?
Show answer and explanation
- The content is the authorized artifact
- That a digest was computed
- That two downloaded byte strings were available
- That the checksum comparison matched the supplied value
Answer: The content is the authorized artifact
A checksum can detect disagreement with a reference, but the reference's authority matters. Bind artifact identity and authenticity to an appropriate trusted mechanism. Matching two attacker-changeable values does not establish an authorized release.
73.A request declares a content type, but its body may be malformed or violate the agreed schema. The connector treats the declaration as proof of validity. What validation boundary is skipped?
Show answer and explanation
- A guarantee that every content-type label describes conforming data
- Only reading the header text
- Parsing and semantic validation of the actual body
- Only the existence of a request body
Answer: Parsing and semantic validation of the actual body
Metadata can guide processing without proving the payload meets its grammar or contract. Validate the actual bytes and relevant schema/invariants, with appropriate resource limits. A declared format is not a completed validation result.
74.A compressed input is 2 MB but may expand to 500 MB. The decoder has a 100 MB output limit, and only compressed input size is checked. What resource bound is missing?
Show answer and explanation
- A guarantee that compression always makes every representation smaller
- Only the file's human-readable title
- Only the compressed file's length
- Decompressed output and work under the accepted format
Answer: Decompressed output and work under the accepted format
Small encoded inputs can describe larger output or expensive work. Enforce appropriate expansion, memory, and processing limits while decoding according to the contract. An envelope-size check alone does not bound the resulting resource demand.
75.A record's start and end fields are both valid timestamps, but end precedes start. The contract requires a nonnegative interval. What validation layer must reject it?
Show answer and explanation
- The cross-field business invariant
- Only the timestamp grammar
- Only the record's field names
- A guarantee that valid field types imply every record-level relationship is valid
Answer: The cross-field business invariant
Per-field validation does not establish relationships between fields. Define and enforce the relevant invariants after parsing, including units, scope, ordering, and lifecycle constraints. A structurally valid record can still be semantically invalid.
76.A file consumer starts reading as soon as the final filename appears. A producer writes that final file in place over several minutes. What handoff condition is missing?
Show answer and explanation
- A guarantee that a created filename means all bytes are present
- Only the file's eventual modification time
- Only whether the file has a familiar extension
- The visible handoff must identify a complete artifact
Answer: The visible handoff must identify a complete artifact
Publication visibility and complete preparation are separate states. Use a handoff protocol appropriate to the storage contract, such as verified staging and a defined commit marker. Do not assume file existence alone establishes completeness or durability.
77.A dataset consists of a mapping file and a facts file that must share a generation. The consumer independently fetches the newest of each while publication is changing. What can be mixed?
Show answer and explanation
- Only their download log entries
- A guaranteed coherent snapshot because both are called newest
- Files from incompatible generations
- Only two copies of the same generation by definition
Answer: Files from incompatible generations
Multi-artifact consistency needs a shared manifest, version, snapshot, or another valid selection contract. Independent latest reads can cross a publication boundary. Validate the complete intended set rather than only each file's local correctness.
78.A file transfer ends after 900 well-formed records, but its authenticated manifest requires 1,000. The parser reports success because every received row parses. What validation dimension is absent?
Show answer and explanation
- Only whether any row can be read
- Only per-row syntax
- Completeness of the declared artifact
- A guarantee that valid rows prove the transfer reached its intended end
Answer: Completeness of the declared artifact
A prefix can be syntactically valid while incomplete. Check the required count, length, digest, framing, and completion semantics appropriate to the format. Row-level validity and whole-artifact completeness are different claims.
79.Every received record has a valid per-record checksum. One entire expected record is missing, and no inventory or sequence-completeness check exists. What can those checksums not establish?
Show answer and explanation
- That each received record matched its supplied checksum
- That some records exist
- That a checksum can be computed
- That the full required record set arrived
Answer: That the full required record set arrived
Integrity of present items does not establish presence of absent items. Use an appropriate manifest, sequence, count, or reconciliation contract for completeness. Do not turn a set of local checks into an unsupported whole-dataset claim.
80.A connector emits a heartbeat every minute from its control loop, but its data-consumer checkpoint has not advanced for two hours. What does the heartbeat fail to prove?
Show answer and explanation
- That the control loop emitted a heartbeat
- Only the heartbeat message's timestamp
- Progress of the required synchronization
- That some process activity exists
Answer: Progress of the required synchronization
Liveness of one component is not necessarily useful work progress. Observe the relevant checkpoint, freshness, backlog, errors, and effect boundary. A healthy control heartbeat can coexist with a blocked data path.
81.A queue holds ten records and has nine at the moment stop is requested. The source can still send three in-flight records before stopping, with no consumption during that interval. What overflow demand follows?
Show answer and explanation
- 1 record
- 3 records beyond capacity
- 2 records beyond capacity
- 0 records
Answer: 2 records beyond capacity
Occupancy can rise to 9+3=12, two above capacity ten. Backpressure has propagation delay and in-flight work. Size buffers and define admission, loss, retry, or spill behavior under the actual bounds rather than assuming a stop request acts instantly.
82.In a fluid model, incoming payload is 2 MB/s and durable target processing is 1 MB/s. The queue begins empty. What backlog accumulates in 60 seconds, ignoring other effects?
Show answer and explanation
- 120 MB
- 1 MB
- 30 MB
- 60 MB
Answer: 60 MB
Net growth is 2−1=1 MB/s. Over 60 seconds it adds 60 MB. Constant-rate arithmetic is a supplied model, not a bound on real bursts or retry amplification. A steady mismatch needs a feasible service or admission policy.
83.A batch holds 50 decoded records of 2 KiB each and a separate 40 KiB raw buffer at the same time. Excluding all other overhead, what live payload reservation follows?
Show answer and explanation
- 40 KiB
- 140 KiB
- 90 KiB
- 100 KiB
Answer: 140 KiB
Decoded records occupy 50×2=100 KiB, coexisting with 40 KiB raw input, for 140 KiB. Peak overlap matters even when each representation alone fits. Real object, allocator, and temporary-copy overhead must be added if relevant.
84.Two values start at A=5,B=5. An atomic source transfer changes them to A=2,B=8. A connector reads A before the transfer and B afterward using independent snapshots. What pair can it report?
Show answer and explanation
- Only A=5,B=5
- A=5,B=8, a pair absent from either complete source state
- Only A=2,B=8
- A=2,B=5 as the only permitted pair
Answer: A=5,B=8, a pair absent from either complete source state
Separate reads can combine states even when the source update itself is atomic. Define the read snapshot or reconciliation boundary needed for the target invariant. Atomic writes do not automatically make multiple independent reads one consistent observation.
85.A source query fails because its filter is invalid. An adapter converts every query error to an empty successful list, then reconciliation deletes absent target rows. What dangerous ambiguity is introduced?
Show answer and explanation
- Query failure is confused with authoritative empty state
- Only the ordering of the deletion log
- Only the exception's displayed wording
- A guarantee that empty results always mean all source records were deleted
Answer: Query failure is confused with authoritative empty state
Preserve failure, partial response, permission limits, and true emptiness as distinct states where the contract requires it. An error-to-empty fallback can turn missing evidence into destructive authority. Reconciliation must rely on a valid complete source view.
86.A connector receives a permanent policy denial that the contract says retries cannot repair. Its generic loop retries forever with the same authority. What error handling is missing?
Show answer and explanation
- Only a larger retry count
- A guarantee that every failure becomes transient if repeated
- Only a shorter error message
- Classification and a bounded terminal/escalation path
Answer: Classification and a bounded terminal/escalation path
Retries should reflect the operation and failure semantics. A permanent denial needs the defined correction or authorized decision path, not indefinite repeated calls. Preserve the reason and unresolved work instead of masking it as eventual progress.
87.A client-side timeout stops waiting, but the server may continue the operation. The connector immediately frees and reuses the operation's external resource ID. What lifetime assumption is false?
Show answer and explanation
- That the client stopped waiting
- That the operation ID has a textual representation
- Local timeout implies remote termination
- That a local timeout can be recorded
Answer: Local timeout implies remote termination
Observation timeout and operation termination are different events. Use the server's actual status, cancellation, identity, and reuse contract. Reusing resources while old work remains active can mix lifetimes or cause late effects on new work.
88.An entity with ID 7 is deleted and recreated under generation 2. A delayed tombstone from generation 1 arrives. The target deletes by ID only. What identity distinction is missing?
Show answer and explanation
- Only the ID's numeric width
- A guarantee that equal IDs always represent the same lifetime
- Only the order of tombstone fields
- The entity lifetime/generation associated with the operation
Answer: The entity lifetime/generation associated with the operation
A key can be reused across distinct lifetimes. Bind delayed operations to the appropriate generation or another valid identity scope, and define wrap and retention behavior. Otherwise old work can affect a newer object that happens to occupy the same key.
89.A write is durably committed on one replica, but the supplied read contract permits another replica to lag. An immediate read returns the old value. What guarantee was incorrectly assumed?
Show answer and explanation
- That the write could be durable somewhere
- Only that both requests used the same payload type
- Read-your-writes visibility on that read path
- That the read returned a value
Answer: Read-your-writes visibility on that read path
Durability and visibility across replicas are separate properties. Use the appropriate session, version, consistency, or confirmation contract for the requirement. A committed write does not imply every permitted reader is already fresh.
90.Two clients read revision 7. One updates successfully to revision 8. The other submits a conditional write requiring revision 7. Under a correct compare-and-set contract, what should happen to the second write?
Show answer and explanation
- It silently overwrites revision 8
- It must succeed because its initial read was valid
- It is rejected as a revision conflict
- It becomes revision 7 again
Answer: It is rejected as a revision conflict
The expected revision is no longer current. A conditional write prevents applying a decision based on stale state under the supplied contract. Any retry must reread or otherwise reconcile intent; blindly replacing the expected version can defeat the protection.
91.A source supports atomic updates within one record, but the target invariant spans two records. A connector claims the source's single-record guarantee proves the cross-record invariant. What scope is missing?
Show answer and explanation
- Only successful individual update responses
- Only a larger record identifier
- A valid protocol for the multi-record invariant
- A guarantee that atomicity automatically expands to every related record
Answer: A valid protocol for the multi-record invariant
A local transaction boundary does not prove a wider one. Define and validate the required multi-record coordination, admission, compensation, or consistency contract. The mechanism must match the invariant rather than borrowing a narrower guarantee's name.
92.A refresh job immediately truncates the visible live target before validating a new source snapshot. The snapshot is incomplete and validation fails. What availability/data boundary was crossed too early?
Show answer and explanation
- Discarding the valid active state before the replacement was accepted
- Only the source's file extension
- A guarantee that every refresh starts with a complete new snapshot
- Only the time the job's log began
Answer: Discarding the valid active state before the replacement was accepted
Prepare and validate the replacement under an appropriate publication or recovery protocol before making the valid basis unavailable. The exact strategy depends on storage and service requirements, but an unverified candidate should not silently become destructive authority.
93.Two systems synchronize bidirectionally. Each imported update is republished as a new local change with no origin or identity policy. What behavior can result?
Show answer and explanation
- All updates become idempotent merely because there are two systems
- Only the field order in messages changes
- A guarantee that every two-way sync converges automatically
- An update feedback loop
Answer: An update feedback loop
Bidirectional replication needs a deliberate authority, identity, transformation, and loop/conflict policy. Re-emitting imports as unrelated new events can cause repeated work or divergence. Validate convergence and effect semantics under the intended traffic and failure model.
94.A connector replaces its mapping table during upgrade. Delayed retries still carry old external IDs that require that mapping, and no transition policy exists. What compatibility condition is missing?
Show answer and explanation
- Only the new mapping table’s row count
- An upgrade treated as automatically cancelling every valid in-flight old request
- Only the new table’s column names
- Identity resolution over the transition window
Answer: Identity resolution over the transition window
Identity translation can be part of the operation contract over time. Plan retention, versioning, lookup, and terminal handling for in-flight and replayed work. New steady-state mappings alone may not interpret old valid operations.
95.Forty distinct source records have no usable ID. The connector substitutes the same empty-string key and deduplicates to one retained record. How many distinct records are discarded under this trace?
Show answer and explanation
- 40
- 39
- 0
- 1
Answer: 39
Forty inputs collapse to one stored identity, losing 40−1=39 distinct records. Missing identity needs a defined validation, quarantine, or alternate-key policy. A default key can create false duplicates rather than simply fill an empty field.
96.A permissive decoder silently discards an upstream field it does not recognize. That new field changes whether the row is eligible for an external action. What compatibility claim is unproven?
Show answer and explanation
- The decoder can produce an object
- That ignoring it preserves business behavior
- Some old fields remain present
- The added field has a name
Answer: That ignoring it preserves business behavior
Forward-compatible syntax handling is not automatically semantic compatibility. Determine whether ignored information changes decisions or invariants. A consumer may need a version gate, explicit default, rejection, or another agreed behavior for the evolved contract.
97.A batch has 100 distinct source IDs. Its ledger records 90 applied, five rejected, and five unresolved IDs, with no overlap. What can be claimed accurately?
Show answer and explanation
- All 100 effects succeeded
- Complete inventory; 90 confirmed applied
- The five unresolved effects are necessarily rejected
- The rejected IDs can be counted as successful effects
Answer: Complete inventory; 90 confirmed applied
The ledger accounts for all 100 IDs, but confirms application for only 90. Unresolved outcomes might or might not have taken effect. Preserve identity and state distinctions so a complete inventory does not become an unsupported claim about completed effects.
98.A supplied operation-ID space has exactly 256 possible values. The contract requires 257 simultaneously distinct operations to have unique IDs with no extra namespace. What follows?
Show answer and explanation
- More retries create new values outside the defined space
- Random selection guarantees all 257 are distinct
- Only ID display length matters
- The uniqueness requirement is impossible in that space
Answer: The uniqueness requirement is impossible in that space
By the pigeonhole principle, 257 distinct operations cannot map injectively into 256 values. Increase the effective namespace or change a real scope/lifetime requirement. Randomization cannot guarantee uniqueness beyond the finite space's capacity.
99.A source returns 60 rows and then reports a timeout with partial=true. The connector discards that flag and labels the response a complete snapshot. What reconciliation premise is false?
Show answer and explanation
- The returned set is authoritative and complete for its scope
- That the source can report an error after data begins
- That some rows may be useful with their actual partial status
- That 60 rows were received
Answer: The returned set is authoritative and complete for its scope
Partial data can support bounded processing under a suitable protocol, but it is not a complete absence authority. Preserve framing, completion, and error states. Dropping the partial marker can make later deletion or progress decisions unsound.
100.A producer adds an optional field. A supported older consumer rejects every unknown field by its documented contract. What must compatibility planning recognize?
Show answer and explanation
- The consumer's documented strictness disappears after a producer release
- Every additive field is automatically backward compatible
- The addition can break that consumer despite being called optional
- Only renaming the field makes it compatible without testing
Answer: The addition can break that consumer despite being called optional
Compatibility depends on actual consumers and their contract, not just the producer's classification. Version, negotiate, adapt, or migrate appropriately. An optional field for a new consumer can still be a rejected payload for a promised older one.
101.A producer and consumer share one code generator with a field-mapping defect. Their contract test compares only generated output with generated expectations. What additional evidence is valuable?
Show answer and explanation
- Only proof that both builds use the same generator version
- A guarantee that agreement between generated artifacts proves external correctness
- An independent format-derived fixture or suitable external contract check
- More identical runs of the same shared faulty mapping
Answer: An independent format-derived fixture or suitable external contract check
Common-mode errors can make both sides agree on the same wrong behavior. Preserve useful shared automation while adding an appropriately independent oracle for the required boundary. Agreement alone does not establish conformance to the intended external contract.