Python for AIIntermediate25 October 2026
A Python service logs complete prompts to diagnose errors, but prompts may contain personal data. What is the best adjustment?
Pick an answer to see the explanation.
Answer
Redact sensitive fields and log only necessary structured metadata
Logging should minimize and redact sensitive content while retaining identifiers, timings, statuses, and safe diagnostics. Full prompts should not become the default observability payload.
Learn more: Explore AI automation with Python →