Observability, safe logging, and incident response
Contain a failing route and prove that recovery works.
In this lesson · P8 of 12
All lessons in this track →Progress for this track is saved in this browser only. No completion badge is issued. View your learning.
Start with the idea
Contain a failing route and prove that recovery works.
Protect the affected path before continuing the investigation. Preserve required evidence and its timing. After returning to the earlier release, called rollback, or making a repair, repeat both blocked-access and normal cases.
Incident response: The defined process for containing, investigating and recovering from a harmful system event.
See the example and check your understanding
A made-up teaching example
The training incident adds cross-tenant denial events and worse source support after a release. The operator pauses promotion, contains the route and verifies recovery after rollback.
Ask yourself
Does a service restart prove recovery?
Show the explanation
No. The original failure checks and normal behavior must pass again. Do not rewrite the incident record.
Start with these checks
- Contain the affected path.
- Preserve original evidence and timing.
- Add the failure to regression tests.
Use the different practice case below and check every requirement in its full instructions.
The video explains the main idea. Use the sources, instructions and checks below to complete the practice.
Captions appear here during playback.
Observability, safe logging, and incident response
Contain a failing route and prove that recovery works.
Video playback is unavailable. Read the descriptive transcript below, go directly to practice, or open the video file.
Source-based teaching example · Fictional data · Reviewed 2026-10-03. Microsoft Mark · locally synthesized. On a small screen, use fullscreen for diagram details or read the transcript.
Read the descriptive transcript
0:00 · What you will learn
Contain a failing route and prove that recovery works.
What appears on screen
Contain a failing route and prove that recovery works.
0:06 · The idea
Protect the affected path before continuing the investigation. Preserve required evidence and its timing. After returning to the earlier release, called rollback, or making a repair, repeat both blocked-access and normal cases.
What appears on screen
Protect the affected path before continuing the investigation. Preserve required evidence and its timing. After returning to the earlier release, called rollback, or making a repair, repeat both blocked-access and normal cases.
0:24 · One useful term
Incident response. The defined process for containing, investigating and recovering from a harmful system event.
What appears on screen
The defined process for containing, investigating and recovering from a harmful system event.
0:34 · A worked example
The training incident adds cross-tenant denial events and worse source support after a release. The operator pauses promotion, contains the route and verifies recovery after rollback.
What appears on screen
The training incident adds cross-tenant denial events and worse source support after a release. The operator pauses promotion, contains the route and verifies recovery after rollback.
0:49 · Your turn to think
Does a service restart prove recovery? Pause and decide before continuing.
What appears on screen
Does a service restart prove recovery? Pause the video if you need more time.
1:05 · Why this answer works
No. The original failure checks and normal behavior must pass again. Do not rewrite the incident record.
What appears on screen
No. The original failure checks and normal behavior must pass again. Do not rewrite the incident record.
1:15 · Check 1
Contain the affected path.
What appears on screen
Contain the affected path.
1:20 · Check 2
Preserve original evidence and timing.
What appears on screen
Preserve original evidence and timing.
1:25 · Check 3
Add the failure to regression tests.
What appears on screen
Add the failure to regression tests.
1:31 · Now try a different case
Open the lesson and try its different practice case. Use every check in the full task. Watching alone does not mark the lesson complete.
What appears on screen
Open the lesson Try the new case Check and revise The full task and its requirements are in the linked lesson.
Watching explains the example. Complete the lesson practice to check what you can do. Explore all visual lessons →
What you will be able to do
- Define signals across application, model, retrieval, and tools.
- Implement privacy-aware traces.
- Detect, contain, recover, communicate, and learn.
Prerequisites: Builder-level interface validation, Python, testing, metadata logging and state-transition tracing. Hardware benchmarks and model accounts are not required.
This curriculum runs self-study on VetsLearn. Where the text calls for an instructor, peer or formal review, use the stated acceptance criteria for self-review. Reflection questions support reflection; they do not replace independent assessment. A peer review is optional unless your actual organization requires it.
Part 1 Technical instruction
Observability connects symptoms to causes using metrics, logs, traces, and audit records. Signals should cover service health, model behavior, retrieval evidence, tool outcomes, safety events, and mission impact. Full content is exceptional; use identifiers, derived measures, sampling, and controlled diagnostic capture. An incident process protects people and systems, preserves evidence, assigns decision authority, contains spread, restores a known-good state, communicates to required parties, and converts the failure into regression evidence. A restart without cause and test evidence is not recovery.
Mechanism and implementation
Signals should diagnose readiness, queues, output states, support, denials and effects. Content capture is exceptional and scoped; incidents do not justify indefinite retention. Named owners choose containment and recovery, with artifact/data versions and post-restore checks.
Constructed offline example
Save as topic_example.py and run python topic_example.py with an installed Python 3.11+ interpreter. This standard-library construction uses synthetic values; its checks are not provider measurements.
events = [{"id": "e1", "kind": "denied", "version": "v3"},
{"id": "e2", "kind": "critical_disclosure", "version": "v3"}]
severity = "critical" if any(e["kind"] == "critical_disclosure" for e in events) else "review"
route_enabled = severity != "critical"
assert not route_enabled
preserved = [{k: e[k] for k in ("id", "kind", "version")} for e in events]
assert all("content" not in e for e in preserved)
print("route contained; metadata preserved")Engineering decisions
- Define severity and escalation triggers.
- Minimize telemetry while preserving diagnostic value.
- Choose containment before optimization.
Worked example
An incident inject raises cross-tenant denial events and a groundedness drop after release v3. The operator freezes promotion, disables the affected path, preserves metadata traces, rolls back, validates recovery, and opens a regression action.
Diagnose the failure
Contain the route first. A restart alone is not recovery: repeat the original negative-access and normal cases. Preserve original timing and never rewrite incident evidence.
Part 2 Guided practice
Distinguish healthy denials from disclosure. Trace detection, containment, evidence, rollback and verification. Independently set record-specific retention, access/deletion and any legitimate hold owner.
Answer criteria and feedback: Contain the route first. A restart alone is not recovery: repeat the original negative-access and normal cases. Preserve original timing and never rewrite incident evidence.
Continue with the downloadable pack below. If the pack or interpreter is unavailable, trace this self-contained example by hand in an input/expected-status/controlling-rule table and label execution unverified. Do not invent passing output. No account, credential, paid call, purchase or actual deployment is required.
Part 3 Remediation
Use the reset manifest to restore the simulator. Preserve the original incident events; never edit them to make the response appear faster. After repair, reassess with the alternate scenario in scenario_alt.json. A critical authorization, data-handling, evidence-integrity, or prohibited-action failure cannot be averaged into successful practice; it requires targeted remediation.
Part 4 Sources and currency
Use the workflow decision reference for model/deployment/harness distinctions and controlled comparisons. Source currency must be checked before each cohort. Provider/product behavior is illustrative where mocked; resolve current interfaces only from official documentation in an authorized environment.