Courseiva

KCNA Cloud Native Observability Practice Question

Which Prometheus metric type is best suited for counting the total number of HTTP requests received by a service?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Counter

A counter is a cumulative metric that only increases (or resets to zero). It is ideal for counting events like HTTP requests.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Summary

    Why it's wrong here

    A summary records observations and computes configurable quantiles client-side, suiting latency percentiles rather than request totals. Counting HTTP requests needs a monotonically increasing value that only ever rises; a summary's quantile streams and _sum/_count do not provide that simple cumulative total.

  • ✓

    Counter

    Why this is correct

    A Counter is a monotonically increasing metric that only goes up, making it ideal for cumulative totals such as HTTP requests received. Rate or increase functions applied to the counter yield per-second request rates, whereas Gauge and Histogram serve different measurement purposes.

  • ✗

    Gauge

    Why it's wrong here

    A gauge represents a value that can rise or fall, such as current memory usage or in-flight requests, so it is unsuitable for a cumulative request count that must only increase. Counting total HTTP requests requires a counter, which resets only on process restart and supports rate() and increase().

  • ✗

    Histogram

    Why it's wrong here

    A histogram buckets observations into cumulative ranges and produces a _sum and _count, so it can derive request totals, but its purpose is measuring value distributions such as latency. For a plain monotonic request counter, the counter type increments indefinitely and is queried directly with rate() or increase().

About these practice questions

Courseiva writes every KCNA question from scratch — 930 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This KCNA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCNA exam.