Skip to main content

BlogSecurity & Integrity

Zero Answer-Key Leakage and Monotonic Sequence Autosaves in Browser Exams

Priya NairHead of Security Architecture
2 min read

Keeping Answer Keys Out of the Browser DOM and Network Tab

In a scored exam, TeachAI sends the browser enough information to display the questions and record selections. The server keeps the answer key, explanations, and authoritative inputs it will use to grade the attempt.

Monotonic Sequence Numbers Against Out-of-Order Retries

On high-latency mobile networks, an older autosave request (seq = 11) can arrive at the server after a newer one (seq = 12). Enforcing monotonic sequence checks ensures stale retries never overwrite a candidate's latest selection.

What candidates see when a connection drops

For example, a candidate changes their answer from B to C as Wi-Fi drops.

  1. Connection interrupted. The player keeps C on this device and shows that the change is saved locally. The exam timer keeps running during a timed exam.
  2. Connection restored. Autosave retries the pending change automatically with a newer save number. The player shows that the save is being retried.
  3. Save confirmed. Once the server acknowledges the latest selection and no edits are pending, the player shows All changes saved with the last save time on wider screens.

What candidates receive

The server grades a scored attempt when it is submitted. The configured release policy controls when candidates can see result details. They can become available immediately, after the exam window and remaining attempts end, or when staff release them.

Information shown before and after release
PhaseWhat the candidate sees
During the attemptQuestion text, option text, and the candidate’s selections. The answer key and authoritative grading inputs stay on the server.
After result releaseThe scorecard shows the score and question review with selected and correct answers, awarded marks, and any explanations.

Put these assessment practices to work in TeachAI