← All POC Flashcard Decks

Monitoring & Reporting Tools Flashcards

7 cards from real POC practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Monitoring & Reporting Tools flashcards as text
  1. Which Python library provides a `RotatingFileHandler` to automatically rotate log files when they reach a specified size?

    Answer: logging

    The built-in `logging` module includes `RotatingFileHandler` in `logging.handlers` to rotate files based on size.

  2. In Python's `logging` module, what numeric level corresponds to `WARNING`?

    Answer: 30

    WARNING maps to level 30; DEBUG=10, INFO=20, ERROR=40, CRITICAL=50.

  3. Which method of a `logging.Logger` object logs a message only if the logger's effective level is DEBUG or lower?

    Answer: logger.debug()

    `logger.debug()` emits a log record at level DEBUG (10), the lowest standard level.

  4. What does the `Prometheus` Python client library use to expose metrics by default?

    Answer: An HTTP /metrics endpoint

    The `prometheus_client` library starts an HTTP server exposing metrics at `/metrics`, which Prometheus scrapes.

  5. Which `logging.Formatter` directive inserts the logger's name into a log message?

    Answer: %(name)s

    `%(name)s` is replaced with the name passed to `logging.getLogger(name)`.

  6. When using `unittest` in Python, which method generates a test report showing pass/fail counts to stdout?

    Answer: unittest.TextTestRunner().run(suite)

    `TextTestRunner` prints a plain-text report including dots, errors, failures, and a summary count.

  7. Which Python package is commonly used to send application metrics and traces to Datadog?

    Answer: ddtrace

    `ddtrace` is the official Datadog APM Python library for tracing and metrics.