FreeExam

Mobile engineer: Offline State and Synchronization

Original interview cases on durable local intent, synchronization boundaries, conflict semantics, partial replicas, upload recovery, causal receipts, storage constraints, and evidence of correct restart behavior.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A local edit commits, then the process stops before its pending-operation row is inserted. After restart the edit looks saved but can never sync. What boundary should the design preserve?

    Show answer and explanation
    1. The local change and its outgoing intent must commit consistently.
    2. A guarantee that a committed data row implies an outbox row exists
    3. A rule reconstructing every intended action from the current screen alone
    4. Only the order of the next network retry

    Answer: The local change and its outgoing intent must commit consistently.

    Use an appropriate atomic local transaction or equivalent recoverable design for the mutation and its sync intent. A gap between them can leave accepted local work with no way to reach the server.

  2. 2.A server refresh overwrites the displayed local row even though an offline edit is still pending. What should the local model distinguish?

    Show answer and explanation
    1. Confirmed server state from unapplied local intent
    2. A rule treating every refresh as permission to discard pending work
    3. Only whether a network interface is connected
    4. The assumption that the last arriving snapshot is the user's latest intention

    Answer: Confirmed server state from unapplied local intent

    A refresh updates knowledge of server state; it does not automatically supersede pending local intent. Maintain suitable base and pending-operation information so the view can be reconciled correctly.

  3. 3.An edit to B is uploading when the user makes a later edit to C. The acknowledgment for B then clears the record's single dirty flag. What must remain represented?

    Show answer and explanation
    1. The assumption that one successful acknowledgment covers all later local edits
    2. Only the server's B value
    3. A rule declaring every edit to that record synchronized
    4. The newer C intent that the acknowledgment did not confirm

    Answer: The newer C intent that the acknowledgment did not confirm

    Tie acknowledgments to the actual operation or version they confirm. Completion of an earlier edit must not erase a later accepted intent.

  4. 4.A client has applied server revision 18. A delayed fetch for revision 16 arrives afterward. Under a rule forbidding backward replacement, what should happen?

    Show answer and explanation
    1. Assume any successful fetch is newer than current local data.
    2. Subtract two from the local revision to match the response.
    3. Do not replace the newer base with the older snapshot.
    4. Use arrival order as the only revision order.

    Answer: Do not replace the newer base with the older snapshot.

    The stated version rule concerns authoritative revision, not network arrival. Detect stale responses and preserve the newer known base while handling any relevant pending work.

  5. 5.A restored backup contains a pending operation that the server already applied before its response was lost. What identity should a genuine replay retain?

    Show answer and explanation
    1. A rule declaring all restored operations to be new user actions
    2. The current screen's temporary row index
    3. The original operation identity under the server's replay contract
    4. A fresh identity generated on every startup

    Answer: The original operation identity under the server's replay contract

    A replay is the same intended operation, not a new effect. Preserve its identity and appropriate payload semantics so the server can reconcile or suppress a duplicate under its contract.

  6. 6.Two devices are cloned from one backup containing a replica ID and sequence counter. They later create different operations with colliding IDs. What identity distinction is needed?

    Show answer and explanation
    1. Only a longer local display name
    2. A guarantee that copied counters remain unique across independent devices
    3. A rule giving every restored operation a new ID, including already applied replays
    4. New replica identity for new work, while preserving IDs of actual replays

    Answer: New replica identity for new work, while preserving IDs of actual replays

    Restoration can fork an identity namespace. Separate new work from genuine replay and ensure independent replicas cannot generate the same future operation identity.

  7. 7.Two phones create different offline records for one project code, each using a unique random record ID. Does ID uniqueness establish the server's one-record-per-code rule?

    Show answer and explanation
    1. Yes; any offline identifier enforces every business constraint.
    2. No; logical uniqueness needs its own authoritative rule and reconciliation.
    3. No; random identifiers cannot represent any offline-created record.
    4. Yes; different random IDs prove the codes differ.

    Answer: No; logical uniqueness needs its own authoritative rule and reconciliation.

    Record identity and business uniqueness are different invariants. Reconcile a code collision according to the domain rule rather than assume distinct IDs make both creations valid.

  8. 8.An outbox created under account A is drained after the app switches to account B, using B's current token. What scope must outgoing work preserve?

    Show answer and explanation
    1. A rule automatically relabeling old pending work as B's work
    2. The initiating account and authorized target context
    3. The assumption that successful authentication authorizes every stored intent
    4. Only the currently displayed account name

    Answer: The initiating account and authorized target context

    Pending work belongs to an identity and scope. Partition and validate it so account switching cannot silently submit one account's intent under another account's authority.

  9. 9.A screen promises 'saved on this device' before the local transaction succeeds. Storage is full and the transaction fails. What should the acceptance state reflect?

    Show answer and explanation
    1. The assumption that a visible optimistic row proves storage succeeded
    2. Only that the user tapped Save
    3. The actual local durability outcome
    4. A rule treating a value retained in memory as a durable save

    Answer: The actual local durability outcome

    A durability promise needs a matching persistence boundary. Report or recover the failed save rather than convert an optimistic display into a false acknowledgment.

  10. 10.A database transaction stores a photo reference, but the photo file is written separately and may be missing after a crash. What recovery model is needed?

    Show answer and explanation
    1. A rule assuming every referenced path contains the intended bytes
    2. Consistency and reconciliation across the database and file-store boundary
    3. Only a transaction around the reference row
    4. A guarantee that a database commit includes arbitrary external file writes

    Answer: Consistency and reconciliation across the database and file-store boundary

    One store's transaction does not automatically cover another store. Use suitable staging, ordering, durable state, and recovery so missing files or orphaned files are handled under the app's promise.

  11. 11.A resumable upload reads a local file that the user edits midway. Later chunks come from the new file while earlier chunks came from the old one. What should the upload session bind to?

    Show answer and explanation
    1. One stable content version or equivalent verified snapshot
    2. A rule accepting any chunk as long as its byte count fits
    3. Only the filename shown in the picker
    4. A guarantee that equal file paths imply equal content

    Answer: One stable content version or equivalent verified snapshot

    A resumed transfer must describe one intended object. Preserve or verify content identity so chunks from different versions are not silently combined.

  12. 12.A client persisted bytes handed to the network as its resume offset, but the server durably accepted fewer bytes before disconnection. What should resume position use?

    Show answer and explanation
    1. A rule assuming local send completion proves remote durability
    2. Only the count passed to the socket
    3. The highest progress percentage ever drawn
    4. The server-confirmed state of that upload session

    Answer: The server-confirmed state of that upload session

    Sending and durable acceptance are different. Reconcile the specific session's confirmed ranges or offset before resuming rather than skip bytes the server never retained.

  13. 13.An upload confirms half-open ranges [0,64) KiB and [32,96) KiB of the same object. How many unique KiB are confirmed?

    Show answer and explanation
    1. 128
    2. 32
    3. 96
    4. 64

    Answer: 96

    The ranges overlap by 32 KiB. Their union is [0,96), so 64+64−32=96 unique KiB are confirmed; summing range lengths would double-count the overlap.

  14. 14.A server declares an upload session expired and invalidates its stored parts. The phone still has the old offset. What should it do before resuming?

    Show answer and explanation
    1. Delete the original local file because the server no longer has its parts.
    2. Mark the object complete because a previous progress bar was near the end.
    3. Continue from the old offset under any new session ID.
    4. Establish a valid transfer session and reconcile its actual accepted state.

    Answer: Establish a valid transfer session and reconcile its actual accepted state.

    An offset is meaningful within the session and content model that produced it. Preserve the user's data and negotiate a valid recovery path instead of transferring stale progress metadata to an empty session.

  15. 15.Media cleanup deletes files no longer visible on a screen, even though pending operations still reference them. What should retention consider?

    Show answer and explanation
    1. References from pending and recoverable work, not only current views
    2. A rule treating every hidden file as disposable cache
    3. Only which images were recently rendered
    4. The assumption that a queued reference recreates the original bytes automatically

    Answer: References from pending and recoverable work, not only current views

    A file can remain necessary after its view disappears. Coordinate cleanup with durable references and outstanding operations so accepted work retains its required source data.

  16. 16.A blob upload completes, but attaching it to the server record fails transiently. What state should recovery preserve?

    Show answer and explanation
    1. Only the current upload percentage
    2. The verified blob identity and the still-pending attachment operation
    3. The assumption that blob completion proves the record already references it
    4. A rule reuploading a different object under the same receipt

    Answer: The verified blob identity and the still-pending attachment operation

    Transfer completion and attachment are separate effects. Retain suitable receipts and operation identities to finish or reconcile the remaining step safely.

  17. 17.The client removes an acknowledged operation from its outbox, then crashes before saving the confirmed server base. After restart the visible edit disappears. What boundary is missing?

    Show answer and explanation
    1. Only a longer retry delay
    2. A guarantee that deleting an outbox row updates every local projection
    3. Consistent persistence of acknowledgment, base state, and pending-work removal
    4. A rule rebuilding confirmed state solely from an empty outbox

    Answer: Consistent persistence of acknowledgment, base state, and pending-work removal

    Acknowledgment processing changes related local facts. Persist them through an appropriate atomic or recoverable transition so a restart does not lose both the intent and its confirmed result.

  18. 18.A local transaction changes a parent and its child count. An observer publishes a new UI model from separate reads spanning the commit and shows mismatched values. What should the read model preserve?

    Show answer and explanation
    1. The assumption that database atomicity automatically combines arbitrary later reads
    2. Only the newest value of one field
    3. A rule that individually valid reads always describe one snapshot
    4. A suitable consistent view of related local state

    Answer: A suitable consistent view of related local state

    Atomic writes do not make unrelated read times identical. Use an appropriate transaction, snapshot, or coherent observation model for values the UI promises to present together.

  19. 19.A foreground sync and a background worker both select the same ready outbox row before either marks it claimed. What should local coordination provide?

    Show answer and explanation
    1. A guarantee that scheduling two workers serializes all database access
    2. An atomic claim under the applicable shared-store model
    3. Only separate in-memory flags in each worker
    4. A rule choosing the worker with the latest UI timestamp

    Answer: An atomic claim under the applicable shared-store model

    Selecting and claiming must not leave an unprotected race. Use suitable shared coordination while still handling crashes and server-side replay safely.

  20. 20.Worker 1's claim expires. Worker 2 acquires a new claim. Worker 1 later reports a failure and blindly resets the row to ready, clearing worker 2's claim. What should the transition check?

    Show answer and explanation
    1. Only that the operation once belonged to worker 1
    2. A rule allowing any old worker to overwrite current scheduling state
    3. Only the operation ID, without checking its current claim
    4. The relevant claim identity or generation

    Answer: The relevant claim identity or generation

    A stale worker must not mutate another claim's state blindly. Fence claim-dependent transitions or use an equivalent rule, while reconciling actual server outcomes through the operation's own identity.

  21. 21.A worker claim stores a deadline from a counter that resets on reboot. The app compares that value with the new boot's counter as though both shared one origin. What must recovery account for?

    Show answer and explanation
    1. A guarantee that every persisted duration counter is comparable across boots
    2. A rule treating a larger stored value as permanent ownership
    3. Only the persisted numeric value without its clock origin
    4. The clock's lifetime and the defined restart/claim model

    Answer: The clock's lifetime and the defined restart/claim model

    An elapsed-time value is meaningful within its clock domain and lifetime. Include appropriate boot or session context and safe claim recovery rather than compare unrelated counter origins.

  22. 22.A feed cursor is 280, while an individual object's revision is 12. A client overwrites the feed cursor with the object's revision. What distinction was lost?

    Show answer and explanation
    1. A rule that every revision number is one global sequence
    2. The assumption that successful parsing makes numeric markers interchangeable
    3. Feed progress and object-version namespaces
    4. One maximum copied between unrelated marker types

    Answer: Feed progress and object-version namespaces

    A marker's meaning comes from its protocol and scope. Keep object versions and feed progress separate unless the protocol explicitly defines a valid relationship.

  23. 23.Independent feed partitions are applied through A=8 and B=3. A client stores only max(8,3) and later resumes both partitions after 8. What checkpoint preserves actual progress?

    Show answer and explanation
    1. A=8, B=8
    2. A=11, B=11
    3. A=3, B=3
    4. A=8, B=3

    Answer: A=8, B=3

    Independent sequences require appropriately scoped progress. Taking a maximum can skip unapplied B events 4 through 8; a per-partition checkpoint retains the actual frontier.

  24. 24.A push hint announces that feed position 200 exists. The phone has applied changes only through 150 and sets its checkpoint to 200 without fetching. What should the hint mean instead?

    Show answer and explanation
    1. A reason to reconcile, not proof that the changes were applied
    2. A replacement for the missing local records
    3. A durable acknowledgment of all intervening changes
    4. A guarantee that no events exist between 150 and 200

    Answer: A reason to reconcile, not proof that the changes were applied

    A notification about available work is not a receipt for completed local application. Advance progress according to the actual synchronization protocol and durable state.

  25. 25.A page contains changes 11 through 15. Only 11 through 13 are stored before failure, but checkpoint 15 survives. What must the recovery boundary prevent?

    Show answer and explanation
    1. Only repeated reads of already applied changes
    2. The assumption that receiving a page commits its contents locally
    3. A rule that a page's last number proves every item was saved
    4. Skipping changes that were never durably applied

    Answer: Skipping changes that were never durably applied

    Coordinate application and progress so recovery cannot resume beyond missing work. Use an appropriate atomic page transition or another correctly defined recoverable checkpoint scheme.

  26. 26.Operations 1 through 6 and operation 8 are confirmed, but operation 7 is unresolved. A watermark means 'all operations through this value are confirmed.' What is its highest justified value?

    Show answer and explanation
    1. 14
    2. 8
    3. 6
    4. 7

    Answer: 6

    The contiguous confirmed prefix stops at 6. Operation 8 can have its own confirmed state, but it does not prove that the gap at 7 is complete.

  27. 27.A bootstrap snapshot is defined at feed position 100. Its download ends when the feed has reached 150. Under a snapshot-plus-later-changes protocol, where should incremental replay begin?

    Show answer and explanation
    1. After 150, discarding the intervening history
    2. At an arbitrary device wall-clock timestamp
    3. After the snapshot's position 100
    4. After the largest object ID in the snapshot

    Answer: After the snapshot's position 100

    The snapshot already represents the defined boundary at 100. Apply the relevant later changes rather than skip 101 through 150 merely because they arrived while the snapshot was downloading.

  28. 28.A full bootstrap combines pages read at unrelated changing states, then treats their union as a complete authoritative snapshot. What evidence is missing?

    Show answer and explanation
    1. A guarantee that individually successful pages cover one consistent dataset
    2. Each page's success considered independently
    3. A rule that sorting mixed pages recreates any missing records
    4. A coherent snapshot or equivalent protocol-defined consistency boundary

    Answer: A coherent snapshot or equivalent protocol-defined consistency boundary

    A multi-page replacement needs defined completeness and consistency semantics. Independent reads at changing states do not automatically describe one complete baseline suitable for later reconciliation.

  29. 29.After the first page of a full download, the client deletes every local record absent from that page. What condition is missing for absence-based cleanup?

    Show answer and explanation
    1. Only a successful first response
    2. A rule that page one contains every existing record
    3. The assumption that local records not currently displayed are server deletions
    4. A complete authoritative result for the intended scope

    Answer: A complete authoritative result for the intended scope

    A page is a subset, not evidence that all other records disappeared. Establish the required complete scope before interpreting absence, while preserving applicable pending local work.

  30. 30.A phone retains a response validator after its corresponding cached body is deleted. The server returns 304, and the phone cannot reconstruct the data. What invariant should caching preserve?

    Show answer and explanation
    1. A rule that 304 carries a replacement copy of every missing object
    2. A guarantee that clearing data automatically clears all related metadata
    3. A usable stored representation for the validator-based reuse path
    4. Only the validator text

    Answer: A usable stored representation for the validator-based reuse path

    Revalidation assumes a reusable representation exists. Keep validator and body state consistent, or perform an appropriate full retrieval when the representation is unavailable.

  31. 31.A delta response contains an empty changes array and means 'no changes since this cursor.' The client replaces its entire local collection with that array. What distinction must it preserve?

    Show answer and explanation
    1. Every response array has identical replacement semantics.
    2. The local collection should be cleared whenever a request succeeds.
    3. A change set is not a full collection snapshot.
    4. An empty change set proves the server has no records.

    Answer: A change set is not a full collection snapshot.

    Interpret the response according to its protocol. No new changes normally leaves the existing synchronized state intact; it does not imply an empty authoritative dataset.

  32. 32.The server rejects an old cursor because its retained history no longer covers it. The phone has pending user edits. What should recovery preserve?

    Show answer and explanation
    1. The pending intents while establishing a valid new baseline
    2. A rule deleting all pending work before any recovery
    3. The assumption that an unsupported cursor means nothing changed
    4. Only the expired cursor

    Answer: The pending intents while establishing a valid new baseline

    An expired incremental path requires a defined resynchronization procedure. Recover authoritative state without silently discarding accepted local intent, then reconcile it under the current protocol.

  33. 33.After server restoration, a feed restarts its sequence in a new epoch. An old phone compares only sequence numbers and thinks it is up to date. What must cursor validity include?

    Show answer and explanation
    1. Only the larger numeric value
    2. A guarantee that restored sequence numbers identify the old history
    3. A rule using the device's current date as the server's epoch
    4. The relevant feed epoch or history identity

    Answer: The relevant feed epoch or history identity

    Equal or ordered numbers can refer to different histories. Detect an incompatible feed identity and use the specified recovery path rather than compare unrelated sequences.

  34. 34.A device expands a subscription to include another project but reuses a checkpoint valid only for the previous scope. What must synchronization establish?

    Show answer and explanation
    1. Only a newly displayed project label
    2. A rule treating newly included records as already downloaded
    3. A valid baseline and cursor for the new subscription scope
    4. A guarantee that one scope's checkpoint covers every other scope

    Answer: A valid baseline and cursor for the new subscription scope

    Progress is scoped to what the protocol has covered. Establish the new scope correctly rather than reuse a marker that can omit its existing records.

  35. 35.An 'open tasks' change feed emits only records that are open now. A cached task closes, so it stops appearing in the feed but remains open locally. What event semantics are needed?

    Show answer and explanation
    1. Only more frequent identical downloads of current open changes
    2. A rule retaining every record forever if it was once open
    3. A way to reconcile departure from the subscribed view
    4. A guarantee that a filtered feed describes every membership departure automatically

    Answer: A way to reconcile departure from the subscribed view

    Changes can remove records from a query's membership without deleting them globally. The protocol needs suitable departure or reconciliation semantics for the maintained local view.

  36. 36.A server message removes a record from one subscribed view, but does not delete the record. The client turns it into a global delete operation. What must it distinguish?

    Show answer and explanation
    1. A rule that every local eviction is a server deletion command
    2. The assumption that absence from one view proves absence everywhere
    3. Only the record's list position
    4. View membership removal from deletion of the underlying entity

    Answer: View membership removal from deletion of the underlying entity

    Projection membership and entity lifecycle are different. Apply the message's defined scope rather than create an unintended upstream destructive action.

  37. 37.A child update arrives from one partition before its required parent arrives from another. The protocol permits this delivery order. What should local application handle?

    Show answer and explanation
    1. The unresolved dependency under the protocol's reconciliation rules
    2. A guarantee that network arrival always respects every cross-partition dependency
    3. Delete every child whose parent has not yet arrived locally.
    4. The assumption that an absent local parent proves a permanently invalid server record

    Answer: The unresolved dependency under the protocol's reconciliation rules

    Independent delivery can expose incomplete local knowledge. Defer, fetch, or reconcile dependencies as defined rather than confuse ordering or partial state with authoritative absence.

  38. 38.A feed sends the current count as state: count=12. The client treats it as 'add 12' each time a page is replayed. What contract was confused?

    Show answer and explanation
    1. The page's receipt time as the count's arithmetic meaning
    2. State replacement with an incremental operation
    3. A rule using the number of downloads as the authoritative count
    4. A guarantee that replaying state should increase the value

    Answer: State replacement with an incremental operation

    A state value and an operation carry different semantics. Apply the defined representation idempotently instead of converting a repeated snapshot into repeated additions.

  39. 39.A partial update omits title because it is unchanged. A full-object decoder fills the missing title with an empty string and saves it. What should the application preserve?

    Show answer and explanation
    1. The partial-update meaning of omitted fields
    2. A rule equating omission with an explicit clear
    3. The assumption that every payload is a complete object replacement
    4. Only the new default value

    Answer: The partial-update meaning of omitted fields

    Use a model suitable for the actual update contract. A decoder's default must not silently turn absent, unchanged information into a destructive overwrite.

  40. 40.A change feed contains a required operation type an older client cannot interpret. The client skips it and advances its checkpoint past it. What is the risk?

    Show answer and explanation
    1. It claims complete synchronization without applying a required change.
    2. A rule that successful transport makes every payload semantically supported.
    3. Unknown required operations are always harmless metadata.
    4. Advancing a number automatically supplies missing behavior.

    Answer: It claims complete synchronization without applying a required change.

    Compatibility includes the ability to apply required semantics. Use a defined unsupported-version or recovery path; do not silently mark uninterpretable required work complete.

  41. 41.A three-way merge compares base title='draft', local title='ready', and server title='draft'. The policy applies a valid local field change when that server field still equals base. What title follows?

    Show answer and explanation
    1. ready
    2. draft-ready
    3. draft
    4. An empty title

    Answer: ready

    Only the local title differs from the shared base. Under the supplied rule, the server field has not diverged and the valid local value ready is retained.

  42. 42.An interval has base start=10, end=20 and requires start<end. Offline A changes start to 18; B changes end to 12. Each edit is valid against base. What must their merge check?

    Show answer and explanation
    1. The combined interval, which would violate the invariant
    2. Each field's validity against the old base alone
    3. Only whether the two edits touched different fields
    4. The newest device timestamp as proof of validity

    Answer: The combined interval, which would violate the invariant

    Disjoint fields can participate in one constraint. Combining the edits produces start=18 and end=12, so field-level noncollision alone does not make the result valid.

  43. 43.A batch contains A, B, C, D. The server confirms A and C, reports a conflict for B, and provides no outcome for D. What cleanup matches that evidence?

    Show answer and explanation
    1. Keep only D and discard B's user intent silently.
    2. Confirm A and C; retain the conflict and unknown outcome for B and D.
    3. Remove all four because the batch returned a response.
    4. Keep A and C queued as new operations; retain only D's original ID.

    Answer: Confirm A and C; retain the conflict and unknown outcome for B and D.

    Use the actual per-operation outcomes. Confirmed work, conflicting work, and unknown outcomes need different treatment; one batch response does not prove every operation completed.

  44. 44.A set entry has add-tag a. One replica removes only tags it observed, including a. Another concurrently adds unobserved tag b. Under a rule retaining unremoved tags, what remains?

    Show answer and explanation
    1. The entry is absent because removing a removes every future tag.
    2. The entry remains through tag b.
    3. Two copies remain, one through a and one through b.
    4. The entry remains only if b is renamed a.

    Answer: The entry remains through tag b.

    The removal covers the observed a tag, not the concurrent unobserved b tag. With b still live, the supplied model keeps the entry present.

  45. 45.A replicated counter stores cumulative contributions by replica and merges each component by maximum. States are {A:3,B:2} and {A:5,B:1}. What merged total follows?

    Show answer and explanation
    1. 5
    2. 7
    3. 11
    4. 6

    Answer: 7

    Merge A as max(3,5)=5 and B as max(2,1)=2, then sum 5+2=7. Adding entire received states would count overlapping contribution histories twice.

  46. 46.A grow-only replicated counter uses component-wise maximum. A client implements reset by assigning its local component zero, but merging restores the previous value. What must reset design address?

    Show answer and explanation
    1. A requirement to delete every other user's data
    2. The assumption that an ordinary lower assignment dominates a maximum merge
    3. A reset operation or epoch model beyond the stated grow-only rule
    4. Only the number of times the zero is retried

    Answer: A reset operation or epoch model beyond the stated grow-only rule

    The merge rule intentionally retains larger cumulative contributions. A reset needs explicitly compatible semantics and reconciliation of concurrent or old-epoch work; it is not supplied by a smaller component value.

  47. 47.Twelve offline usage rights are allocated A=7 and B=5. A has spent 6; B has spent 1. Without transfer or new coordination, may A spend two more under a per-device-rights rule?

    Show answer and explanation
    1. Yes; five rights remain across both devices.
    2. Yes; each device may use the full original twelve.
    3. No; offline rights can never authorize any action.
    4. No; A has only one unspent right.

    Answer: No; A has only one unspent right.

    A's remaining allocation is 7−6=1. B's four remaining rights are not A's allocation; the stated model needs an appropriate transfer or coordination before A can consume them.

  48. 48.A replicated set merges by union, but a business rule limits it to three entries. Two valid local sets each contain two disjoint entries. What does their union demonstrate?

    Show answer and explanation
    1. The merge can converge while violating the three-entry constraint.
    2. Local validity guarantees the union contains at most three.
    3. Union must discard one arbitrary entry without a domain policy.
    4. Four entries prove the replicas cannot converge.

    Answer: The merge can converge while violating the three-entry constraint.

    Convergence and business validity are different properties. The union contains four entries; preserving the cap needs a suitable additional rule or coordination model.

  49. 49.Two unsent, unobserved pure assignments set one field to 2 and then 5. The contract permits their compaction and requires the original server base for conflict detection. What should the compacted intent retain?

    Show answer and explanation
    1. The original base and desired value 5
    2. The local intermediate version as if the server had acknowledged it
    3. A new increment of 7
    4. The intermediate value 2 only

    Answer: The original base and desired value 5

    Under the stated pure-assignment conditions, the later desired state subsumes the earlier one. Preserve the valid comparison base; local intermediate state is not an acknowledged server revision.

  50. 50.A local value starts at 3. Two ordered pending operations add 1, then multiply by 2. What result must a semantics-preserving compaction represent?

    Show answer and explanation
    1. 6
    2. 7
    3. 4
    4. 8

    Answer: 8

    The composition is (3+1)×2=8. Keeping only the final multiplication would produce 6, so this sequence cannot be compacted as if every operation were a replaceable assignment.

  51. 51.A user intentionally records two identical observations. They have different operation IDs but equal payload text. A deduper drops one solely because their payload hashes match. What distinction is missing?

    Show answer and explanation
    1. A rule that equal data always denotes one user action
    2. Only the observations' display order
    3. Separate legitimate intents versus replay of the same intent
    4. The assumption that different operation IDs can never have equal content

    Answer: Separate legitimate intents versus replay of the same intent

    Equal content does not prove duplicate intent. Apply the domain's identity and replay rules rather than collapse independent accepted actions solely by payload similarity.

  52. 52.An attempted operation has an unknown server outcome. A local compactor rewrites its payload under the same operation ID to include a newer edit. What boundary should it preserve?

    Show answer and explanation
    1. The attempted operation's identity and meaning, with suitable follow-up work
    2. The assumption that compaction is safe after every network attempt
    3. Only the latest displayed value under every old ID
    4. A rule treating unknown outcome as proof the server saw nothing

    Answer: The attempted operation's identity and meaning, with suitable follow-up work

    An attempted operation may already have an effect or recorded replay identity. Do not silently change what that identity means; reconcile it and represent later intent appropriately.

  53. 53.An offline object is created and deleted before any submission. The contract permits canceling this pair, and no dependent work or required event history remains. What can compaction do?

    Show answer and explanation
    1. Remove the canceled pair and release resources no longer referenced.
    2. Keep the create but discard the user's delete.
    3. Mark the object as server-confirmed without ever submitting it.
    4. Publish a global deletion for an unrelated existing object.

    Answer: Remove the canceled pair and release resources no longer referenced.

    The supplied conditions allow the unexposed pair to cancel locally. Check dependencies and required history before treating a canceled draft as disposable work.

  54. 54.The server deleted an entity while a phone was offline. On reconnect, an ordinary stale edit is handled as an unconditional upsert and silently recreates it. What must reconciliation respect?

    Show answer and explanation
    1. Only the offline edit's later device timestamp
    2. The assumption that a missing server row is always a new local creation
    3. The entity's deletion and any explicit restoration policy
    4. A rule making every stale edit an authorized restore

    Answer: The entity's deletion and any explicit restoration policy

    Deletion is part of lifecycle semantics. A stale edit does not automatically authorize recreation; preserve or resolve the user's intent through the defined conflict or restore procedure.

  55. 55.A delayed tombstone refers to generation 1 of an entity. The same business identifier now names generation 2. What must deletion matching preserve?

    Show answer and explanation
    1. The message's arrival time as proof it targets the new entity
    2. A rule applying every historical deletion to all future incarnations
    3. The generation or equivalent lifecycle identity
    4. Only the reused business identifier

    Answer: The generation or equivalent lifecycle identity

    An old lifecycle event must not destroy a different incarnation. Use the protocol's full entity identity and generation semantics, or avoid unsafe identifier reuse.

  56. 56.An offline edit is denied after permissions change. The policy permits retaining a local draft for user-directed recovery. What should the client preserve?

    Show answer and explanation
    1. A rule silently submitting the draft to another workspace
    2. The assumption that local authorship overrides every server permission
    3. The draft and a blocked state without bypassing current authority
    4. A new privileged token fabricated from cached role data

    Answer: The draft and a blocked state without bypassing current authority

    Respect current authorization while retaining allowed recovery options. Do not confuse preserving local intent with having permission to apply it to the original or another target.

  57. 57.A server returns 'durably accepted for processing,' not 'applied.' The phone removes its pending overlay immediately, although the server base is unchanged. What states should it distinguish?

    Show answer and explanation
    1. A rule that acceptance means every downstream effect is visible
    2. Only whether transport returned a response
    3. Accepted work from confirmed application to the synchronized base
    4. The assumption that an unchanged server base proves the operation was rejected

    Answer: Accepted work from confirmed application to the synchronized base

    Acceptance can be a meaningful intermediate state. Model the actual contract so the UI and local recovery state do not claim application or discard necessary intent before it is confirmed.

  58. 58.A validation error describes an earlier submitted value, but the user has since corrected that field. The app marks the new value invalid using the old response. What correlation is needed?

    Show answer and explanation
    1. The current row's position in any list
    2. The submitted operation/value generation to which the error applies
    3. A rule applying every historical validation failure to all later edits
    4. Only the latest error's arrival time

    Answer: The submitted operation/value generation to which the error applies

    An error is evidence about a particular submitted state. Associate it with that state and reconcile newer local intent rather than attach stale failures indiscriminately.

  59. 59.A sync result includes an invalid field that needs editing, a temporarily blocked permission, and an uncertain transport outcome. What state model is useful?

    Show answer and explanation
    1. An infinite retry policy for every result
    2. Separate repair, authorization, and outcome-reconciliation states
    3. A rule marking all three cases successful once connectivity returns
    4. One terminal failure flag that deletes every pending action

    Answer: Separate repair, authorization, and outcome-reconciliation states

    Different causes need different recovery actions. Preserve the relevant intent and evidence so retries, user repair, authorization changes, and uncertain outcomes are handled appropriately.

  60. 60.Downloads are current, but two local edits remain unsent and one upload awaits confirmation. The app shows one global 'fully synced' flag. What should status describe?

    Show answer and explanation
    1. One boolean based solely on the incoming feed checkpoint
    2. The relevant synchronization dimensions and outstanding work
    3. Only the last successful download time
    4. A rule equating a fresh read cache with completion of all outgoing work

    Answer: The relevant synchronization dimensions and outstanding work

    Read freshness, pending local intent, transfer progress, and confirmed effects are distinct facts. A single unqualified flag can hide unfinished work the user relies on.

  61. 61.A rebuildable local search index is damaged, but the canonical local records and unsynced drafts are intact. Recovery wipes the whole database to repair search. What distinction should it preserve?

    Show answer and explanation
    1. A rule treating every local table as disposable cache
    2. The index's rebuild marker as proof all tables are disposable
    3. The assumption that a fresh download includes every unsent draft
    4. Derived indexes versus durable user work

    Answer: Derived indexes versus durable user work

    A rebuildable projection should not be confused with the durable information it indexes. Repair or rebuild derived state through a procedure that preserves accepted local work.

  62. 62.An old baseline must remain until replacement succeeds. The new snapshot needs 50 MB and temporary journal space needs 10 MB. The device has 55 MB free beyond the old baseline. How much additional space does this plan require?

    Show answer and explanation
    1. 60 MB
    2. 10 MB
    3. 50 MB
    4. 40 MB

    Answer: 60 MB

    The specified additional requirement is 50+10=60 MB. With 55 MB free, the plan is short by 5 MB; looking only at final snapshot size misses temporary space.

  63. 63.A new local baseline is installed page by page while screens treat the partially replaced data as a complete generation. What boundary should replacement establish?

    Show answer and explanation
    1. The assumption that a mixed old/new database is always a complete snapshot
    2. A rule deleting the old baseline before validating any replacement
    3. Only the arrival of the first new page
    4. A defined coherent installation or staging transition

    Answer: A defined coherent installation or staging transition

    Baseline replacement has visibility and recovery semantics. Use suitable staging, transactions, or another explicit model so readers and pending-intent reconciliation know which coherent state they are using.

  64. 64.A replay contract binds an operation ID to exact payload bytes. After an uncertain attempt, an upgrade reserializes equal JSON with different bytes under that ID. What must compatibility preserve?

    Show answer and explanation
    1. The defined replay representation or an approved translation path
    2. A fresh ID issued blindly for a possibly committed action
    3. The assumption that semantic JSON equality satisfies every byte-based contract
    4. Only equality of the displayed field values

    Answer: The defined replay representation or an approved translation path

    Follow the actual identity and representation contract. Preserve the required original request or use a supported migration/reconciliation mechanism rather than silently change a possibly recorded replay fingerprint.

  65. 65.A local transaction callback may retry. It rereads mutable screen fields each time, so one accepted operation ID can acquire a different meaning during retry. What should be captured?

    Show answer and explanation
    1. Only the screen's current value on the final attempt
    2. A rule assigning one operation ID to whatever input exists later
    3. The assumption that retrying storage code creates a new user request automatically
    4. A stable accepted intent and relevant context for the retried operation

    Answer: A stable accepted intent and relevant context for the retried operation

    A retry should execute the intended operation under the defined transaction model. Capture stable input and context rather than let unrelated UI changes redefine an already accepted intent.

  66. 66.A local store uses snapshot read transactions. One long-lived read transaction continues showing old data after sync commits newer rows. What is needed to observe the new committed snapshot?

    Show answer and explanation
    1. Treat the old snapshot as proof that every write failed.
    2. Download the same rows repeatedly into the same committed state.
    3. End or refresh the read transaction according to the store's model.
    4. Increase the network timeout for the already completed download.

    Answer: End or refresh the read transaction according to the store's model.

    A snapshot is intentionally stable within its defined lifetime. To see later commits, establish the appropriate new read boundary; more remote writes do not change the meaning of the existing snapshot.

  67. 67.An unsynced attachment is corrupted locally and no other copy exists. A recovery plan claims a server refresh will restore its original bytes. What limitation must it acknowledge?

    Show answer and explanation
    1. The successful download of other records proves this source is recoverable.
    2. Every attachment can be regenerated from its filename.
    3. The server never received the missing source data.
    4. A fresh cursor can reconstruct arbitrary lost file content.

    Answer: The server never received the missing source data.

    Synchronization cannot fetch data the server never had. Preserve realistic recovery limits and any available evidence rather than promise reconstruction from unrelated metadata.

  68. 68.An app keeps accepting durable offline edits, then silently deletes the oldest unsent edits when its queue reaches a quota. What must the acceptance contract address?

    Show answer and explanation
    1. A rule treating silent loss as successful synchronization
    2. The assumption that every accepted edit fits indefinitely on any device
    3. Only the queue's visual ordering
    4. Capacity and retention before promising preservation of accepted work

    Answer: Capacity and retention before promising preservation of accepted work

    Bounded devices need explicit capacity and retention behavior. Apply suitable admission, warning, export, or recovery options rather than silently contradict an earlier durability promise.

  69. 69.An export promises all accepted local work, but queries only the confirmed server-base table. Pending edits and required unsynced attachments are omitted. What scope is missing?

    Show answer and explanation
    1. A rule defining pending work as nonexistent because it is not yet remote
    2. The assumption that one synchronized table always contains the complete user workspace
    3. The accepted local work represented outside the confirmed base
    4. Only the latest server cursor

    Answer: The accepted local work represented outside the confirmed base

    A recovery or export promise must match the local data model. Include or explicitly account for relevant drafts, intents, dependencies, and provenance instead of exporting only one layer of state.

  70. 70.An encrypted local store is temporarily unavailable under the app's key-access conditions. Sync interprets the failed read as an empty dataset and advances progress. What state distinction is required?

    Show answer and explanation
    1. A rule converting every storage error into successful deletion
    2. Unavailable local storage versus an authoritative empty result
    3. Only whether the server responded recently
    4. The assumption that an unreadable database contains zero accepted edits

    Answer: Unavailable local storage versus an authoritative empty result

    An error is not data. Preserve progress and recover access according to policy rather than treat inability to read as evidence that nothing needs applying or retaining.

  71. 71.A pending +2 operation was applied remotely, but its acknowledgment was lost. A fetch returns count=12 including that operation; the client adds the pending +2 again in its view. What evidence helps reconcile the overlap?

    Show answer and explanation
    1. A rule adding every pending operation to every fetched state forever
    2. The assumption that two equal totals prove identical operation histories
    3. Only whether the number 12 looks plausible
    4. Which local operation IDs the confirmed base already incorporates

    Answer: Which local operation IDs the confirmed base already incorporates

    Server replay safety does not automatically reconcile a local optimistic overlay. Use suitable causal receipts or equivalent protocol evidence to avoid projecting an already incorporated intent twice.

  72. 72.The client knows base revision 10. A delayed acknowledgment for operation X contains revision 9 but validly confirms X. What facts should it handle separately?

    Show answer and explanation
    1. The assumption that confirming one operation requires rolling the entire base backward
    2. Confirming X and deciding whether its older base should replace revision 10
    3. A rule ignoring every useful fact in any older-version response
    4. Only the response's arrival time

    Answer: Confirming X and deciding whether its older base should replace revision 10

    A receipt and a base snapshot carry different information. Confirm the relevant operation without regressing newer known state or erasing unrelated later intent.

  73. 73.A user selects 'discard this local draft.' The app implements it by writing the old cached base back to the server, overwriting newer remote work. What semantic boundary was crossed?

    Show answer and explanation
    1. Discarding local intent is not automatically a remote restore command.
    2. The oldest cached base is always the latest authoritative state.
    3. A local cleanup control authorizes changes to all remote revisions.
    4. Every discarded draft must create a global rollback.

    Answer: Discarding local intent is not automatically a remote restore command.

    Define the action's scope honestly. Removing a local pending change should not silently become an upstream write that restores stale state over other users' work.

  74. 74.A replay model has base=2, then a local assignment to 5, then an increment by 1. Its undo rule removes the chosen intent and replays the remaining intent. If the assignment is undone, what value follows?

    Show answer and explanation
    1. 6
    2. 5
    3. 3
    4. 1

    Answer: 3

    After removing the assignment, the remaining increment applies to base 2, producing 3. The result follows from the explicitly supplied undo-and-replay rule, not from keeping the old rendered value.

  75. 75.An outbox orders noncommuting operations by their random UUID strings rather than their accepted causal sequence. What should ordering preserve?

    Show answer and explanation
    1. The assumption that stable sorting makes every order semantically valid
    2. The required causal or domain order, not opaque-ID lexical order
    3. Only alphabetical sorting of the IDs
    4. A guarantee that random uniqueness implies temporal order

    Answer: The required causal or domain order, not opaque-ID lexical order

    Unique identity and ordering are different properties. Persist and enforce the relevant dependencies or sequence instead of inventing causality from an opaque identifier's spelling.

  76. 76.A merge procedure requires the original common base, but that base is unavailable. The client substitutes the newest server object as both base and remote, making every local difference look uncontested. What is missing?

    Show answer and explanation
    1. The assumption that a convenient base proves the server did not change
    2. The actual comparison evidence or an explicit fallback reconciliation policy
    3. Only another fetch of the same current object
    4. A rule redefining current state as historical state

    Answer: The actual comparison evidence or an explicit fallback reconciliation policy

    Three-way reasoning depends on the real shared base or equivalent evidence. Do not manufacture history to suppress conflicts; use the protocol's supported recovery or resolution path.

  77. 77.A 'sync now' action waits for the entire outbox to become empty. Continuous new edits keep arriving, so it never confirms the work present when the user requested sync. What boundary could make that promise precise?

    Show answer and explanation
    1. A rule declaring all future edits confirmed at once
    2. The assumption that an active editing session must eventually have an empty queue
    3. Waiting for all future edits as part of the original target
    4. A defined target frontier for the requested synchronization barrier

    Answer: A defined target frontier for the requested synchronization barrier

    A barrier can refer to a captured set or frontier of accepted work. Distinguish completion of that target from unrelated work accepted later, while retaining the actual sync semantics.

  78. 78.One large attachment blocks unrelated small metadata operations in a single FIFO queue. Some metadata operations do depend on that attachment, while others do not. What should scheduling respect?

    Show answer and explanation
    1. The assumption that skipping unfinished dependencies preserves every invariant
    2. Useful concurrency or prioritization subject to real dependencies
    3. A guarantee that all operations must wait for any large file
    4. A rule running every dependent operation before its attachment exists

    Answer: Useful concurrency or prioritization subject to real dependencies

    Use the actual dependency graph and appropriate resource bounds. Independent work need not inherit one large transfer's delay, while dependent effects still need their required prerequisites.

  79. 79.The account API is reachable, but the upload service is unavailable. A global isOnline flag marks every upload complete after the account check. What should the state model reflect?

    Show answer and explanation
    1. Only one successful request to any host
    2. Reachability and outcomes for the relevant operation paths
    3. A rule equating network presence with completion of queued work
    4. The assumption that separate dependencies always share one availability state

    Answer: Reachability and outcomes for the relevant operation paths

    Connectivity is not one universal outcome. Track the evidence needed for each path and preserve pending work when its own dependency has not accepted it.

  80. 80.Bulk transfer is allowed only on an unmetered path. A worker checks once, then the active path becomes metered. What should execution consider?

    Show answer and explanation
    1. A guarantee that a scheduler's first check fixes all later path properties
    2. The current applicable transfer constraints during the work
    3. A rule ignoring user transfer policy after the first byte is sent
    4. Only the network label seen at startup

    Answer: The current applicable transfer constraints during the work

    Conditions can change while work runs. Use appropriate constraint enforcement and recovery for the stated policy rather than assume a past observation remains true throughout a long transfer.

  81. 81.An operation allows at most three attempts in total. Each network-path change resets its local counter, and three path periods each use three attempts. What boundary was lost?

    Show answer and explanation
    1. Nine attempts satisfy a total limit of three.
    2. The attempt budget belongs to the logical operation across those periods.
    3. The limit applies only while one progress screen stays visible.
    4. Each network path creates a new user intent automatically.

    Answer: The attempt budget belongs to the logical operation across those periods.

    The execution lifecycle can outlast a connection or screen. Retain the appropriate operation-scoped budget rather than silently renew it at unrelated path transitions.

  82. 82.A model permits reserving an attempt budget durably before starting a network call. A crash happens after reservation but before the client knows whether the call started. What must recovery avoid claiming without evidence?

    Show answer and explanation
    1. That the operation still needs reconciliation
    2. That the reserved attempt was definitely unused
    3. That an uncertainty window exists
    4. That a conservative policy may consume the reservation

    Answer: That the reserved attempt was definitely unused

    A crash can leave uncertainty about the call boundary. Follow the stated budget and reconciliation policy rather than automatically return a reservation as though nonexecution had been proved.

  83. 83.Every screen visit replaces an existing retry's eligibility time with 'now plus delay.' Frequent visits keep pushing it away. What liveness property should scheduling preserve?

    Show answer and explanation
    1. Unrelated UI activity must not indefinitely postpone eligible accepted work.
    2. The newest screen timestamp proves the operation is synchronized.
    3. Every visit should erase the previous attempt history.
    4. Repeated postponement guarantees a retry eventually runs.

    Answer: Unrelated UI activity must not indefinitely postpone eligible accepted work.

    Define retry eligibility from the operation's actual state and policy. Reinitializing its schedule on unrelated events can prevent progress even while the user actively uses the app.

  84. 84.An app marks a document available offline after downloading only its catalog entry. Its required body and attachments still need the network. What should readiness verify?

    Show answer and explanation
    1. A rule treating every metadata row as a complete document
    2. Only the presence of a title in a list
    3. The resources needed for the promised offline task
    4. The assumption that a download label creates missing content

    Answer: The resources needed for the promised offline task

    Offline readiness is about completing the stated task with the retained data. Verify its required resources and versions rather than infer full availability from catalog metadata alone.

  85. 85.A team tests airplane mode only after a fully seeded installation, then claims first launch works offline with no prior data. What state is missing from the evidence?

    Show answer and explanation
    1. The uninitialized installation and bootstrap path
    2. Only another refresh of the seeded cache
    3. The assumption that test success populates other users' devices
    4. A guarantee that a warm local database proves every cold-install behavior

    Answer: The uninitialized installation and bootstrap path

    Offline behavior depends on available local state. Test the relevant initialization and data-availability conditions instead of generalizing from one already prepared installation.

  86. 86.A sync test covers one healthy upload but never interrupts the client at persistence or acknowledgment boundaries. What evidence would better test recoverability?

    Show answer and explanation
    1. A guarantee that one successful upload exercises all crash states
    2. Only a second run with a stronger network signal
    3. The number of times a test button was tapped
    4. Faults at relevant transitions followed by restart and invariant checks

    Answer: Faults at relevant transitions followed by restart and invariant checks

    Recoverability concerns interrupted transitions, not only the happy path. Exercise relevant crash windows and verify accepted intent, confirmed effects, and local state after recovery.

  87. 87.A protocol says replaying an already applied page must not change the domain view again. Which property should a test check?

    Show answer and explanation
    1. Repeated application preserves the same domain result.
    2. Each replay must add one more copy of every record.
    3. A replay is correct whenever the network call succeeds.
    4. A second application must always be rejected as a new conflict.

    Answer: Repeated application preserves the same domain result.

    The stated property is idempotence of the relevant application step. Test the domain result, while allowing separately defined bookkeeping that does not alter that result.

  88. 88.A state-merge contract requires the same result for merge(A,B) and merge(B,A). Tests exercise only the first order. Which comparison directly tests the stated requirement?

    Show answer and explanation
    1. Compare merge(A,A) with A instead.
    2. Check only that merge(A,B) finishes within one second.
    3. Compare the encoded byte lengths of A and B.
    4. Compare merge(A,B) with merge(B,A).

    Answer: Compare merge(A,B) with merge(B,A).

    The stated equality is commutativity. Reversing the operands tests it directly; repeated-operand equality is idempotence, while byte length and runtime bounds address different properties.

  89. 89.An operation-based protocol explicitly requires causal delivery. A test arbitrarily reverses dependent operations and treats failure as proof the promised valid-path behavior is wrong. What should test interpretation respect?

    Show answer and explanation
    1. A requirement to discard all testing of malformed or reordered input
    2. The assumption that state-merge and operation-delivery models are identical
    3. A rule assuming every protocol permits every event permutation
    4. The protocol's delivery assumptions and separate invalid-path requirements

    Answer: The protocol's delivery assumptions and separate invalid-path requirements

    Distinguish behavior required for valid histories from robustness under histories outside the contract. Test both as appropriate, without misrepresenting which property a counterexample addresses.

  90. 90.A replica remains disconnected forever. A team says eventual convergence requires it to match every later remote edit anyway. What assumption is missing?

    Show answer and explanation
    1. The communication or delivery needed by the convergence claim
    2. A rule that local storage reconstructs arbitrary future remote changes
    3. A guarantee that waiting alone transfers missing information
    4. Only a faster device clock

    Answer: The communication or delivery needed by the convergence claim

    Convergence claims have model assumptions. A replica cannot learn indefinitely unavailable changes merely through elapsed time; state the needed delivery and progress conditions honestly.

  91. 91.A user reports one lost offline edit. Logs say only 'sync succeeded,' with no operation identity, base revision, or acknowledgment evidence. What diagnostic record would help?

    Show answer and explanation
    1. Only a screenshot of the success icon
    2. Relevant state transitions and identities without unnecessary user content
    3. The full text of every private document regardless of need
    4. A rule that one success string proves the edit was confirmed

    Answer: Relevant state transitions and identities without unnecessary user content

    Diagnose the actual operation and state transitions. Suitable structured provenance can distinguish accepted, pending, applied, and reconciled work while avoiding unnecessary sensitive payload logging.

  92. 92.A local view combines editable content, computed unread counts, and lastSyncedAt. The sync serializer sends the entire view as a business update. What should the outgoing model represent?

    Show answer and explanation
    1. The assumption that a rendered view is always a valid mutation payload
    2. Every displayed or computed field as an authoritative write
    3. A rule making local bookkeeping fields server-owned content
    4. The intended domain changes allowed by the API contract

    Answer: The intended domain changes allowed by the API contract

    A presentation or read model is not automatically a write contract. Preserve field ownership and the user's actual intent instead of echoing derived and synchronization metadata as business changes.

  93. 93.A user chooses 'duplicate project' to create independent new records. The import retains original entity IDs, so later edits alter the original project. What identity distinction is needed?

    Show answer and explanation
    1. Copying into new entities versus restoring the same entities
    2. A rule that identical source content must always reuse identity
    3. The assumption that all imports are genuine replays of old operations
    4. Only a new display title

    Answer: Copying into new entities versus restoring the same entities

    A copy and a restore have different identity semantics. Create appropriate new identities and remap relationships for the intended duplication rather than accidentally reconnect it to the original entities.

  94. 94.A scoped cache deliberately omits some parent objects. A downloaded child can validly refer to one of them. The app deletes the child because that parent is absent locally. What must it distinguish?

    Show answer and explanation
    1. The assumption that a missing cached parent proves a server-side orphan
    2. A rule assuming every server relationship must be fully materialized on every phone
    3. Partial local knowledge from authoritative invalidity
    4. Only the child's position in the current list

    Answer: Partial local knowledge from authoritative invalidity

    A partial replica is not the complete server dataset. Represent or resolve out-of-scope dependencies according to the protocol rather than enforce a false completeness assumption.

  95. 95.An edit and outbox row commit, but the process stops before registering a wake-up with the scheduler. What should restore progress at a suitable later opportunity?

    Show answer and explanation
    1. Reconcile the durable pending store rather than rely solely on that one lost trigger.
    2. Create a second unrelated operation ID for the same accepted effect.
    3. Delete the accepted edit because the scheduler did not acknowledge it.
    4. Assume the missing scheduler call means no work exists.

    Answer: Reconcile the durable pending store rather than rely solely on that one lost trigger.

    Durable work and a request to run a worker are different facts. Make pending work discoverable and arrange appropriate recovery opportunities without promising scheduling guarantees the environment does not provide.

  96. 96.A scheduler's success result describes completion of one worker invocation. The app still has blocked and delayed outbox entries. What conclusion follows?

    Show answer and explanation
    1. The scheduler's result replaces every per-operation outcome.
    2. All blocked entries should be deleted as scheduler-complete.
    3. Invocation success does not establish confirmation of all user work.
    4. Every pending entry is now remotely applied.

    Answer: Invocation success does not establish confirmation of all user work.

    Interpret completion at the layer where it is defined. A worker invocation can finish appropriately while application-level work remains pending under its own state and recovery rules.

  97. 97.A local store has committed changes still present only in its write-ahead log. A backup copies the main database file alone and claims to contain every committed edit. What must backup design preserve?

    Show answer and explanation
    1. Only the main file's recent modification time
    2. The store's complete consistent committed state through a suitable backup mechanism
    3. A guarantee that a commit immediately checkpoints every page into the main file
    4. A rule deleting the log before copying to make the backup smaller

    Answer: The store's complete consistent committed state through a suitable backup mechanism

    Committed state can include the write-ahead log. Use a supported consistent backup procedure; copying one file while ignoring relevant committed journal state need not capture the promised data.

  98. 98.A long-lived reader prevents checkpoint progress while writes keep extending the local store's log. Cleanup proposes deleting the active log as cache. What should diagnosis examine?

    Show answer and explanation
    1. A rule treating every journal as disposable because the main file exists
    2. Read-transaction lifetime and safe checkpoint/storage behavior
    3. Only whether application writes were acknowledged
    4. A guarantee that deleting active journal state preserves every committed edit

    Answer: Read-transaction lifetime and safe checkpoint/storage behavior

    A journal can be part of committed state and recovery. Address the reader and storage lifecycle through the store's supported mechanisms rather than remove necessary state blindly.

  99. 99.A merge test computes both the expected result and the actual result by calling the same implementation. What evidence is missing?

    Show answer and explanation
    1. An independent oracle or independently justified properties and traces
    2. A guarantee that identical outputs prove the intended semantics
    3. A rule treating test coverage percentage as a substitute for correctness
    4. Only a larger number of calls to that same implementation

    Answer: An independent oracle or independently justified properties and traces

    A shared defect can produce matching expected and actual values. Use suitable independent reasoning, reference models, or invariants to assess the promised behavior.

  100. 100.One phone synchronizes correctly in isolation. The team claims this proves two-device edits and delete races are safe. What should verification add?

    Show answer and explanation
    1. Relevant multi-replica schedules and lifecycle invariants
    2. A rule excluding concurrent edits from a product that promises to support them
    3. Only more isolated repeats with one unchanged record
    4. A guarantee that single-client success establishes conflict behavior

    Answer: Relevant multi-replica schedules and lifecycle invariants

    Concurrency and lifecycle interactions require their own evidence. Exercise the histories the product supports and verify the defined results rather than extrapolate from one uncontended path.

  101. 101.A change lowers reported conflict rate by silently dropping pending edits before comparison. What invariant should evaluation preserve?

    Show answer and explanation
    1. Deleting difficult work is equivalent to resolving it correctly.
    2. Every accepted intent must have a valid, explainable outcome.
    3. Only the number of successful HTTP requests matters.
    4. A zero conflict counter proves no data was lost.

    Answer: Every accepted intent must have a valid, explainable outcome.

    A favorable metric can hide lost work. Account for accepted intents through confirmed application, retained pending state, or explicit policy-consistent resolution rather than make them disappear to improve the counter.