Python: In Python, which comparison about Logging is accurate?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

In Python, which comparison about Logging is accurate?

  1. There is no practical difference in behavior, performance, or maintainability when Logging is involved.
  2. The oldest option related to Logging is always the right production choice regardless of workload or context.
  3. Differences around Logging are mostly cosmetic, so correctness and debugging quality do not really change.
  4. Structured, leveled logging is stronger for long-running services, while ad hoc print statements may be acceptable only for the smallest local scripts.

Hint

Focus on the behavior or tradeoff, not just the keyword.

Answer and rationale

Correct answer: D. Structured, leveled logging is stronger for long-running services, while ad hoc print statements may be acceptable only for the smallest local scripts.

Structured, leveled logging is stronger for long-running services, while ad hoc print statements may be acceptable only for the smallest local scripts. This is the comparison that usually separates memorization from understanding.

Track: Python