Shipping an Online Exam System in 3 Hours: An AI-Assisted Development Retrospective

    This article walks through a real three-hour delivery of a usable online exam system, from turning a vague "make it work" request into an acceptance checklist, to choosing a cloud AI agent platform after a local offline tool fell short on interaction quality. It covers structuring a messy question bank, defining scoring and paper-assembly rules before writing code, using AI as a pair programmer with verification, and a final deployment checklist. Readers will find reusable engineering practices for short time-boxed projects.

    1. Background: A Typical “Extreme Delivery” Request

    At 8:00 a.m., an urgent request arrived: deliver a ready-to-use online exam system before 11:00 a.m., along with a question bank in a messy format. That left three hours for development, and the requester’s definition of “usable” was unclear—did it only need to let people answer questions, or did it also need automatic scoring, score aggregation, anti-cheating, and mobile support?

    Requests like this are common in real work: a last-minute event launch, filling in for a training assessment, or the night before a customer demo. The difficulty is not writing code, but high requirement uncertainty, an extremely short time box, and vague acceptance criteria. So the first move is not picking a tech stack, but translating “usable” into a verifiable checklist.

    2. Clarify Requirements First: Turn a Vague Goal into an Acceptance Checklist

    Under an extreme deadline, clarifying requirements pays off far more than coding. Five minutes is enough to do three things:

    1. Define scope: separate must-haves from optional items. Must-haves usually include question bank import, paper assembly, answering, automatic scoring, and score viewing; optional items include anti-cheating, time limits, random question selection, and certificate generation.
    2. Set acceptance criteria: for example, “50 questions, a mix of single-choice and multiple-choice, score shown immediately on submit, teachers can export scores.”
    3. Confirm constraints: concurrency scale, whether an account system is needed, data retention period, and whether on-premises deployment is mandatory.

    Write these into a one-page acceptance checklist. Every later technical decision revolves around it, which significantly reduces rework.

    3. Choosing a Technical Route: Lessons from a Failed Local Free Setup

    I first chose a locally deployed, offline open-source AI coding tool because it was free, controllable, and good for practice. Problems surfaced quickly: the bundled local model was limited in capability. It could generate basic answering and scoring logic, but the UI and interaction quality fell short of delivery standards—sluggish button feedback, messy state management, and an outdated page structure, far from “ready to use.”

    This experience highlights a commonly overlooked fact: “free” and “controllable” tooling cannot make up for a gap in model capability. In short-cycle delivery, interaction quality, exception handling, and deployment efficiency often matter more than licensing cost. I switched to a cloud AI agent development platform and rebuilt the application with visual orchestration plus model generation, delivering on time.

    Selection principles from an engineering standpoint:

    • Time box under one day: favor solutions that quickly generate frontend, backend, and a deployment path, minimizing environment setup cost.
    • Prioritize interaction quality: for delivery to real users, UI and state feedback must meet the bar.
    • Keep a fallback: retain a local or alternative route to avoid a single point of blockage.
    • Data compliance: when candidate data is involved, define storage location and access permissions.

    4. Question Bank Governance: Structuring Messy Data

    The messy source question bank was the project’s biggest hidden cost. A suggested process:

    1. Unified parsing: extract text into four-tuples of “stem—options—answer—explanation,” tolerating missing fields.
    2. Build a data model: each question should include at least type, difficulty, knowledge point, options, correct answer, and score.
    3. Validation and deduplication: flag questions with missing answers, duplicate options, or overly short stems for manual spot checks.
    4. Versioning: keep a trail of question bank changes for traceability and reproducibility.

    Sample data structure (pseudocode):

    1. {
    2. "id": "q_001",
    3. "type": "single_choice",
    4. "stem": "Question text",
    5. "options": ["A", "B", "C", "D"],
    6. "answer": ["A"],
    7. "score": 2,
    8. "knowledge_point": "Concept understanding"
    9. }

    5. Scoring and Paper Assembly: Rules First, Code Second

    Automatic scoring looks simple but is rule-dense. Define a rule table before implementing code:

    • Single choice: full score on an exact match.
    • Multiple choice: full score if all correct; partial credit by proportion for missed selections; no score for any wrong selection.
    • Subjective questions: recorded only for manual review, excluded from the automatic total.
    • Total score and passing line: configuration-driven, no hard-coding.

    Sample scoring logic (pseudocode):

    1. def grade(question, user_answer):
    2. if question["type"] == "single_choice":
    3. return question["score"] if user_answer == question["answer"] else 0
    4. if question["type"] == "multiple_choice":
    5. correct = set(question["answer"])
    6. picked = set(user_answer)
    7. if picked == correct:
    8. return question["score"]
    9. if picked.issubset(correct):
    10. return question["score"] * len(picked) / len(correct)
    11. return 0
    12. return 0 # Subjective questions go to manual review

    For paper assembly, use “stratified random selection by knowledge point and difficulty” to keep difficulty consistent across sessions and scores comparable.

    6. Using AI Correctly: Treat the Model as a “Pair Programmer”

    In extreme delivery, AI’s value concentrates in four task types:

    1. Scaffold generation: quickly produce page skeletons, routing, and form validation.
    2. Boilerplate code: repetitive logic such as pagination, export, and permission checks.
    3. Test cases: generate boundary cases from the acceptance checklist, covering an empty question bank, late submission, and duplicate submission.
    4. Refactoring and explanation: improve readability of legacy code and explain it section by section.

    AI output must pass runnability verification and rule checks, especially for scoring, permissions, and data-write logic. “Looks right” is not enough to ship.

    Sample prompt template:

    1. You are a senior backend engineer. Implement a scoring API based on this acceptance checklist:
    2. Input: a list of questions and user answers; Output: total score and per-question score.
    3. Constraints: partial credit by proportion for missed multiple-choice selections, zero for wrong selections; subjective questions are not scored; do not hard-code the passing line.
    4. First give the rule table, then the code and 3 boundary cases.

    7. Deployment and Operations: The Last Mile of a Three-Hour Delivery

    A pre-delivery checklist worth standardizing:

    • Data persistence: store questions and scores in a database to avoid loss on restart.
    • Logging and monitoring: record submissions and scoring anomalies for fast diagnosis.
    • Access control: separate teacher and candidate permissions.
    • Mobile adaptation: candidates mostly answer on phones, so verify small-screen interaction.
    • Rollback plan: keep the previous version for quick switching if something breaks.

    With cloud resources, a general category combination works: object storage for question bank files, a container platform to host the application, and logging plus monitoring/alerting services for observability. This shortens deployment time and eases later scaling.

    8. Retrospective: The Limits of AI Efficiency and Reusable Conclusions

    This engagement yields three reusable conclusions:

    1. Requirement clarification comes before tool selection; the acceptance checklist is the “archive” of extreme delivery.
    2. Model capability and interaction quality set the delivery floor; free local setups suit practice, not emergency delivery.
    3. AI is an accelerator, not a replacement; scoring rules, permissions, and data consistency still need human oversight.

    Turn the process into templates—acceptance checklist, question bank structure, scoring rule table, deployment checklist—and the next three-hour delivery relies not on luck but on repeatable engineering methods.