Back to all writing

My Exam Engine Had to Remember the Exact Exam

IPMAT Series•Part 46•4 min read•By Mikhil

My Exam Engine Had to Remember the Exact Exam

The score was correct. The result could be read back. The system knew which account the attempt belonged to. Yet an important exam test had failed.

The trouble appeared when requesting an already-issued examination again. The recovered session did not contain the complete original section structure.

It is an odd bug to encounter in an application whose job is to administer an exam. The questions and answers are important, obviously, but they are not the whole paper. The arrangement of the questions and the rules under which a student attempts them are part of what they sat.

An exam has a shape

I wrote about the first examination engine much earlier in this journal. Since then, exam practice has become a separate application in the ecosystem. The initial setup, build and end-to-end checks passed in late October. At that point the separate exam application still had local-first roots, and connecting the account and result behavior to the shared platform was its own piece of work. That gave the dedicated exam experience a starting point, not proof that every interaction between the exam and the shared platform was finished.

The difference between a sectional and a full mock is more than the number of questions. Depending on the paper, a student may have to deal with section limits, marking rules and navigation restrictions. A practice attempt can allow behavior that a strict examination should not. Even the same question might feel quite different under those two conditions.

It follows that recovering an attempt means recovering the relevant conditions as well as the answers. If an interrupted request changes the paper's structure, the student is no longer necessarily looking at the same exam they were issued.

The test that spoiled a good report

The November test used a disposable development environment. It issued synthetic examination content, checked submissions, compared the resulting score with the expected score and examined how the attempt could be retrieved. Nothing was being released to actual learners during that run.

Several of those checks succeeded. It would have been tempting to emphasize the successful grading and call the remaining problem an edge case. Instead, the examination acceptance run stopped with the incomplete recovery identified as a blocker.

The subsequent repair was tested against the same failure. Retrying the same session reconstructed its complete examination structure; the revised test also checked that it did not create an additional attempt or substitute a different question version. New exam issuance and the results path still had to work afterward.

That last part matters because a repair can make an old attempt recoverable by accidentally making new attempts inconsistent. The useful result was not merely that the troublesome request worked in isolation. It was that the original checks and the new recovery check could agree.

There were other interesting scenarios in that run. Withdrawing the availability of a test stopped new sessions from being issued while preserving the result of a completed attempt. This is what I would expect from the student's perspective. A paper being removed from the current catalogue should not make a past examination cease to exist.

The boundary of the result

The corrected isolated run passed. It used real application parsing and a disposable backend, rather than a screenshot of a successful result. That is stronger evidence than the first build alone.

It still did not establish that all the browser interactions, network interruptions or hosted release conditions had passed. Those need separate work. A successful reconstruction in an isolated test is not an excuse to advertise a public mock-test service as fully verified.

I quite like this bug as an illustration of what building the examination application has actually involved. Nobody would put “recovered section structure” on the front page of an exam-prep website. But if the paper ever has to be recovered, that unremarkable detail is suddenly the most important thing on the screen.