Resolving Check In Sync Conflicts
Two student programmers are collaborating on a check-in feature for a school science fair. The application must satisfy three project constraints: (1) operate reliably when the venue network drops intermittently, (2) preserve the original timestamp of an attendee’s first badge scan without overwriting it on accidental repeat scans, and (3) use only built-in platform storage without purchasing third-party cloud add-ons.
Developer A proposes immediately sending each scan directly to a remote server endpoint, updating the attendee record with the most recent scan time. Developer B points out that this proposal fails when the connection drops and erases original entry times.
| Proposal | Storage Strategy | Handling Repeat Scans | Network Handling |
|---|---|---|---|
| Proposal Alpha | Local append-only file | Record only the first scan timestamp; ignore subsequent scans for that badge | Queue pending records locally; upload a batch copy when connectivity is restored |
| Proposal Beta | External cloud database | Overwrite the timestamp with the latest scan time | Retry transmission continuously until an active connection succeeds |
| Proposal Gamma | Local memory cache | Replace the existing timestamp with the latest scan time | Discard queued scans if an upload fails after two attempts |
| Proposal Delta | External paid database service | Retain only the first scan timestamp | Buffer records locally and sync once an internet connection is established |
Which proposal resolves the disagreement while satisfying all three project constraints?
Proposal Delta
Proposal Beta
Proposal Alpha
Proposal Gamma
Question Leaderboard
Not enough data yet to show leaderboard.
