Multiple specialist agents need consistent request logging, authorization checks, and exception handling without duplicating boilerplate in every agent. What should you implement?
Select an answer to reveal the explanation.
Short Explanation
Correct answer: B. Middleware is the shared utility belt: one place for structured logs, authz, and clean exception handling so every specialist behaves the same under fire. Copy-paste logging is how correlation dies at 2 a.m.
Full Explanation
Development skills include designing middleware for reusable capabilities across the solution, including logging, authorization, and exception handling. Option B centralizes those concerns for consistency and maintainability.
Option A causes drift and weak incident response.
Option C is incorrect: edge authentication does not replace per-tool/per-agent authorization (confused deputy / lateral risk).
Option D harms security and UX by leaking internals.
Exam tip: Cross-cutting middleware for logging/authz/exceptions is an explicit AI-500 develop-domain topic.