Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
DevOps for Python services
›
Module 1 · Docker & Containers
›
Logs at scale
quiz
10 / 104
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Nothing serious — swap `print` for `logging.info` and the existing message is fine for shipping to Datadog or Loki at scale
B
Two issues: (1) unstructured — can't filter or alert on fields. (2) Logs raw email (PII)
C
Missing the ISO-8601 timestamp prefix — once that is prepended the log line is ready to be ingested by any modern log aggregator without further changes
D
Inconsistent letter casing — switch the message to uppercase so log search queries match regardless of which engineer wrote the surrounding code that emits the line
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…