Skip to content
fernando.catalan
All projects

WorkWeb · Backend · AI · Cloud

AI job interview practice platform

I rebuilt from scratch, as a serverless TypeScript monorepo on AWS, a prototype where students practice job interviews and get AI-generated feedback: Bedrock, Lambda, SQS, Aurora Serverless and CDK.

Role
Sole developer. Architecture, frontend, API, infrastructure and CI
Period
Sep 2026
Status
In QA
Team
Just me. The starting point was a prototype someone else had made with an app generator

Professional project: the name and client details are anonymized. The technical description is real.

Context

It is a platform where technical high school students practice job interviews: they upload their CV, answer in writing or by voice and get AI-generated scores and feedback.

It existed as a prototype, made by someone else with an app generator on top of Supabase and OpenAI. I received it, studied it and rebuilt it from scratch on AWS, keeping its features and business rules.

The problem

The prototype proved the idea but could not be operated: it had no version control or tests, PDF text extraction did not work, and the way it handled files and permissions was not fit for student data. The organization also wanted it on AWS.

The goal was to keep what it did and how it looked, but with reproducible infrastructure, security, tests and controlled cost.

What I built

  • A pnpm monorepo with five packages (web, API, shared schemas, database and infrastructure) in strict TypeScript. The zod schemas are shared by the frontend, the API and the AI output.

  • A serverless API: API Gateway with 32 routes and a JWT authorizer, and 11 Lambda functions on Node.js 22 running ARM64.

  • A model-agnostic AI layer on Amazon Bedrock: tool use with the schema derived from zod, output validation, retries with backoff and a deterministic fallback result. Each task's model is changed in Parameter Store, with no redeploy.

  • The voice mode end to end: the question is read aloud by Amazon Polly, the student records with the microphone, the audio goes straight to S3 and is transcribed by Amazon Transcribe.

  • Asynchronous processing with SQS queues and their DLQs, and EventBridge for transcription completion.

  • Google-only sign-in through federated Cognito, with a pure rule that decides access per institution and is applied both at sign-up and on every request.

  • All the infrastructure in AWS CDK: 7 stacks for two environments, with alarms, tracing, a dashboard and a monthly budget from day one.

  • A local server that mounts the same handlers with PostgreSQL in Docker and a fake AI, to develop and test with no AWS and no cost.

  • 73 Vitest test cases, 2 end-to-end Playwright specs and 8 architecture decisions documented as ADRs, plus a pending ADR on the production model choice.

Architecture

architecture.svgSwipe →

The interview moves on while each answer's analysis runs in the background. The Lambdas are not in the VPC: they reach the database through the RDS Data API.

  • Client
  • External system
  • Edge and network
  • Managed service
  • Compute
  • Data
  • Client:
    • Browser: React SPA
    • Google: OAuth
  • Edge:
    • CloudFront + S3: SPA · OAC
    • API Gateway: 32 routes · JWT
    • Cognito: federated with Google
  • Compute:
    • HTTP Lambdas: Node.js 22 · arm64
    • SQS + DLQ: CV · analysis
    • Workers: SQS · EventBridge
  • Data and AI:
    • Aurora Serverless v2: PostgreSQL · Data API
    • Amazon S3: CVs · audio
    • Amazon Bedrock: Nova · tool use
    • Transcribe · Polly: speech to text · TTS

Connections:

  • Browser → CloudFront + S3
  • Browser → API Gateway
  • Browser → Google
  • API Gateway → Cognito
  • API Gateway → HTTP Lambdas
  • HTTP Lambdas → SQS + DLQ (202)
  • SQS + DLQ → Workers
  • HTTP Lambdas → Aurora Serverless v2
  • HTTP Lambdas → Amazon S3
  • HTTP Lambdas → Amazon Bedrock
  • HTTP Lambdas → Transcribe · Polly
  • Workers → Aurora Serverless v2
  • Workers → Amazon Bedrock

Technical decisions

  1. Aurora Serverless with the Data API, no NAT Gateway

    The Lambdas stay outside the VPC and talk to the database through the RDS Data API. It avoids the fixed cost of a NAT Gateway in exchange for 10 to 20 ms per query and a 1 MB response limit. Outside production, the database pauses itself when idle.

  2. Everything slow goes through queues

    API Gateway cuts requests off at 30 seconds. The API enqueues and returns 202, the workers talk to Bedrock, and the frontend polls only while answers are still being processed.

  3. Measure before optimizing

    The lag between questions came from waiting for an analysis the next question did not need. Moving it to the background cut the wait from 5–7 seconds (13–16 in voice mode) down to about 1.

  4. Start with the cheapest model

    Every invocation records model, tokens, latency and estimated cost. That makes it possible to compare models on the same cases before picking the production one.

  5. Assume the model will fail

    Small models sometimes return values outside the enum. The strict schema is sent as the tool, the output is validated with a lenient variant and, if it fails three times, there is a deterministic fallback result.

Stack

Frontend
  • React 19
  • Vite
  • Tailwind CSS 4
  • React Router 7
  • TanStack Query
API
  • Node.js 22
  • TypeScript
  • AWS Lambda
  • API Gateway
  • zod
  • Powertools for AWS Lambda
AI and voice
  • Amazon Bedrock
  • Amazon Nova
  • Amazon Transcribe
  • Amazon Polly
Data and async
  • Aurora Serverless v2
  • RDS Data API
  • Drizzle ORM
  • Amazon SQS
  • EventBridge
  • Amazon S3
Infrastructure
  • AWS CDK
  • Amazon Cognito
  • CloudFront
  • CloudWatch
  • X-Ray
  • AWS Budgets
Quality
  • Vitest
  • Playwright
  • GitHub Actions
  • ESLint
  • commitlint

Outcome

  • Fully deployed to the QA AWS account. Production has not been deployed yet.

  • It took one week to go from receiving the prototype to having it rebuilt and deployed with Google sign-in.

  • The wait between questions dropped to about 1 second once the analysis moved to the background.

  • Continuous integration on GitHub Actions: lint, types, tests against PostgreSQL, build and cdk synth. Continuous deployment through OIDC is written but not working yet: deploys run from a two-phase script.

What I learned

  • The RDS Data API sends parameters as text: PostgreSQL enums fail, so the schema uses text with CHECK, and dates travel as ISO strings with an explicit cast.

  • Aurora Serverless with auto-pause answers the first query with a resuming error. The client has to retry, with bounded retries wherever there is a time limit.

  • Cognito does not allow changing a User Pool's standard attributes in place: it had to be replaced.

  • End-to-end tests cannot go through Google sign-in: they need their own test sessions.