Keep software engineering foundations
Use version control, code review, small changes, automated builds, unit tests, dependency scanning, infrastructure as code, environment separation, least privilege, and incident response. Model output variability does not excuse weak software delivery.
Define ownership across application, data, model, platform, security, and operations teams. A production issue may originate in code, prompt, retrieval, provider, tool, policy, or downstream service.
Treat prompts and configuration as release artifacts
Review and version system instructions, templates, model parameters, tool definitions, safety policies, retrieval settings, and routing. Link them to code and model deployment in a release manifest. Do not store secrets in prompt files or pipeline output.
Test prompt assembly deterministically. Validate required instructions, delimiters, context limits, localization, and fallback paths before model evaluation begins.
Layer deterministic and probabilistic tests
Run conventional unit, integration, contract, accessibility, performance, and security tests. Add schema tests for tool calls, authorization tests, retrieval-access tests, and citation checks. Then run representative AI evaluations.
Quality gates should include task success, safety, groundedness, latency, token cost, and tool correctness. Allow threshold exceptions only with documented risk and approval.
Release progressively
Promote the exact tested artifacts. Use feature flags, shadow traffic, offline replay, canary cohorts, and staged tool enablement according to risk. Compare quality and operational signals to a baseline.
Define rollback for code, prompts, model route, retrieval index, and tools. Provider-side model updates and deprecations need advance testing and an alternative path.
Observe user outcomes and dependencies
Trace the complete request across gateway, retrieval, model, agents, tools, and services while protecting sensitive data. Monitor availability, latency, rate limits, token cost, cache effectiveness, quality, refusal, safety, and user outcomes.
Create alerts for cost spikes, tool-call anomalies, degraded retrieval, increased harmful output, and provider failures. Correlate changes with releases so responders can identify regression quickly.
Use operational feedback responsibly
Convert incidents and reviewed user failures into regression cases. Keep approved evaluation data representative and protected. Do not silently change production prompts from raw feedback.
Run post-incident reviews that cover system design and process: missing test cases, unsafe permissions, poor observability, unclear ownership, or inadequate rollback. DevOps improvement remains sociotechnical even when AI is involved.
Related certification roadmaps
These roadmaps can structure adjacent learning, but a credential alone does not prove production capability. Confirm current exam details with the certification provider.
- GitHub Actions roadmap
- Azure DevOps Engineer roadmap
- AWS DevOps Professional roadmap
- Google Cloud DevOps Engineer roadmap
Production-readiness checklist
Before release, require a named business owner, technical owner, security contact, and operational responder. Document the user outcome, non-goals, data sources, model and provider, tool permissions, evaluation set, quality and safety thresholds, privacy decisions, retention, accessibility, cost budget, service objectives, rollback, incident response, user disclosure, feedback path, and retirement plan.
- Representative offline evaluation and adversarial cases pass approved thresholds.
- Authorization is enforced by trusted services with least-privilege workload identity.
- Consequential or irreversible actions require explicit human confirmation.
- Logs, traces, prompts, and evaluation data are redacted and access controlled.
- Latency, reliability, quality, safety, tool correctness, tokens, and cost are observable.
- Provider failure, throttling, bad retrieval, unsafe output, and tool failure degrade safely.
- Prompt, model, retrieval, tool, policy, and code versions can roll back independently.
- Users can identify AI involvement, understand important limitations, and report problems.
Run a tabletop exercise for one safety incident, one data-access incident, one provider outage, and one runaway-cost scenario. Record decisions and update the evaluation and runbooks before launch.
Related AI engineering guides
- Build AI Applications Responsibly
- AIOps Explained for Reliable Operations
- DevAIOps Lifecycle for Production AI
- AI for SecOps: Detection and Response
- AI Infrastructure Fundamentals
- Copilots and AI Agents
- Vibe Coding Safely
Official guidance
Frequently asked questions
Do AI apps still need unit tests?
Yes. Test deterministic code, prompt assembly, authorization, tool schemas, retrieval filters, error handling, and user interfaces before probabilistic evaluation.
What should trigger rollback?
Define thresholds for errors, latency, cost, safety, groundedness, tool failures, and user outcomes, with independent rollback for prompts, models, retrieval, tools, and code.
Should prompts be in source control?
Generally yes when policy allows. Version and review behavior-changing instructions, but never commit secrets or sensitive user data.