← 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 the `@app.route` decorator pattern AND built-in request logging when used with a WSGI server?

    Answer: Flask

    Flask uses `@app.route` for routing and automatically logs requests through Werkzeug's built-in logger.

  2. What is the correct way to load a logging configuration from a `.ini`-style file in Python?

    Answer: logging.config.fileConfig('logging.ini')

    `logging.config.fileConfig()` reads a ConfigParser-format file to configure loggers, handlers, and formatters.

  3. Which metric type in `prometheus_client` should you use to track the duration of HTTP request processing times?

    Answer: Histogram

    Histogram tracks observations (like latency) in configurable buckets and supports percentile queries via `histogram_quantile`.

  4. In Python's `logging` module, which propagation behavior is controlled by setting `logger.propagate = False`?

    Answer: Stops log records from being passed to ancestor loggers

    Setting `propagate = False` stops a logger from forwarding records up the hierarchy to parent/root loggers.

  5. Which `pytest` fixture scope causes a fixture to be set up once per test session rather than once per test function?

    Answer: scope='session'

    `scope='session'` creates the fixture once for the entire test run, shared across all tests and modules.

  6. Which Python package provides the `Sentry` SDK for capturing exceptions and performance data and reporting them to the Sentry.io platform?

    Answer: sentry-sdk

    The official package is `sentry-sdk`, installed via `pip install sentry-sdk` and initialized with `sentry_sdk.init()`.

  7. When using Python's `logging` with multiple loggers, what naming convention allows hierarchical level inheritance between parent and child loggers?

    Answer: Naming child loggers with dot-separated names like 'parent.child'

    Loggers named `app.module.submodule` automatically form a hierarchy where children inherit the effective level of their parents.