Skip to main content
HS
HiSETSuccess
LeetCode Prep

AI & FDE Interview Room

Role paths, mocks, cost studio, chapters, cases, and staff-level depth.

Case study · FDE · 40 min

On-Prem LLM Deployment in Customer VPC

Deploy a self-hosted LLM stack inside a regulated customer's VPC with air-gapped constraints and GPU sizing.

FDEon-premGPU

Interview opener

Customer mandates on-prem LLM; air-gapped constraints.

  1. 1.GPU capacity is half of what you need — options?
  2. 2.How do you update models under change control?
  3. 3.Who owns uptime after you leave?

Strong signals

Hit 0/3

Weak signals (avoid)

  • Assume infinite GPUs
  • No support handoff

Requirements

  • Air-gapped option: no egress; models delivered via secure USB/object drop
  • Latency: p95 < 3s for 2K context; HA across 2 AZs if GPUs allow
  • Compliance: SOC2 evidence pack; CMEK; audit logs to customer SIEM
  • Throughput: 15 QPS sustained; burst 40

Back-of-envelope Estimation

MetricCalculationResult
Tokens/sec needed40 × 2,40096K tok/s peak
70B FP8 throughput~3–4K tok/s/H100rough
GPUs for peak96K / 3.5K~28 H100
Steady 15 QPS15/40 × 28~11 H100
Plus embed + rerank+2 A10retrieval side
Power/cooling28 × 700W~20 kW

API Design

EndpointMethodDescription
POST /v1/chat/completionsPOSTInternal only; mTLS
POST /v1/embeddingsPOSTBatch embed API
GET /v1/admin/licenseGETOffline license check

Data Model

EntityKey fieldsNotes
model_artifactsname, version, checksum, pathVerified at load
nodesgpu_id, model_loaded, healthScheduler state
audit_eventsts, principal, actionSIEM forward

High-level Design

VPC layout
Customer VPC
  Private subnet: API pods (no egress) → GPU inference pool
                  Embed/rerank CPUs → Vector DB (disk encrypted)
  Management: bastion + image registry mirror (approved)
  Logs: Fluent Bit → customer SIEM
  Secrets: customer KMS-backed vault
Airgap update: signed model bundle → checksum verify → rolling restart

Deep Dive: Model Delivery & Rollback

  • Sign artifacts; verify checksum + signature before load
  • Blue/green model dirs; flip router weight after smoke eval
  • Keep N-1 weights on disk for 14-day rollback
  • Document GPU driver/CUDA matrix compatible with customer OS image

Bottlenecks at Scale

  • GPU procurement lead time — size for steady + burst queue
  • Single-AZ GPU scarcity — degrade to smaller model on overflow
  • Disk I/O loading 70B — stream weights; pin hot layers

Failure Modes & Monitoring

SLOTargetAlert
p95 latency< 3sPage if > 5s
GPU util60–85%Warn if < 30% or > 95%
Queue depth< 50Autoscale / shed
Unsigned load attempts0Page security

Attempt the case aloud first. Then unlock a staff model answer outline.