Advanced level · Module 11 of 12 · 13 guided hours
AI Application Testing and Observability
Testing generative AI applications properly: test layers, adversarial and safety testing, the OWASP LLM risks, tracing and logging of model calls, and dashboards for quality, cost and latency.
Learning objectives
- Design layered tests for generative AI applications
- Run adversarial and safety tests
- Implement tracing and observability
Topics
- unit, integration and evaluation tests
- adversarial and red-team testing
- OWASP LLM Top 10
- content safety testing
- tracing model calls
- quality, cost and latency dashboards
Lessons
-
Lesson 1 Layered Testing for Generative Applications
Learners combine unit tests (with the scripted model), integration tests (with real models) and evaluation suites, and decide what each layer checks.
unit testsintegration testsevaluation suitesscripted practice modelcontinuous testing
-
Lesson 2 Adversarial, Safety and Security Testing
Learners red-team their application against the OWASP LLM Top 10 (prompt injection, sensitive information disclosure, improper output handling, unbounded consumption and others) and content-safety risks.
red-teamingprompt injectionsensitive information disclosureimproper output handlingunbounded consumption
-
Lesson 3 Tracing and Observability
Learners log every model call with inputs, model version, tokens, latency and outcome (without sensitive data), and build a simple dashboard.
trace and spanmodel versiontoken and cost logginglatency percentilesprivacy in logs
Practical activity
Build the capstone's test layers, red-team report and observability: tracing, logging rules and a dashboard.
Expected outcomes
- Professional testing of generative AI applications
- Operational observability
Assessment
Tests and red-team report (60%) and observability (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.