Courseiva

CCNA Observability Concepts Questions

61 questions · Observability Concepts · All types, answers revealed

1
MCQmedium

What is the primary benefit of using a pull-based model for monitoring?

A.It supports higher data throughput.
B.The Prometheus server can detect target failure.
C.It is easier to configure for firewalls.
D.It avoids network security issues.
AnswerB

In a pull model Prometheus initiates each scrape, so a failed connection or timeout directly signals that the target is down. This lets the server detect target failure itself, rather than waiting for the target to push data, satisfying the scenario's requirement for the primary pull-based benefit.

Why this answer

The primary benefit of a pull-based model for monitoring is that the Prometheus server can detect target failure. In a pull model, the monitoring server periodically scrapes metrics from targets; if a target fails to respond, the server can immediately detect that failure and trigger alerts. This is a key advantage over push-based models where the absence of data might not be noticed as quickly.

Exam trap

PCA often tests the trade-offs between pull and push models; candidates might think pull is easier for firewalls, but it's actually the opposite because the server must initiate connections.

How to eliminate wrong answers

Option A is wrong because pull-based models do not inherently support higher data throughput; throughput depends on the server's capacity and scrape intervals, and push models can sometimes handle higher throughput with less overhead. Option C is wrong because pull-based models can be more difficult to configure for firewalls, as the monitoring server must initiate connections to targets, which may require opening ports. Option D is wrong because pull-based models do not avoid network security issues; they still require network access and can be subject to security constraints.

2
MCQeasy

What is the purpose of 'labels' in Prometheus?

A.To store the actual data values.
B.To define the scrape interval.
C.To identify unique time series.
D.To set the alert threshold.
AnswerC

Labels are key-value pairs attached to a metric name; the full set of label values uniquely identifies each time series within Prometheus's TSDB. This satisfies the stem's purpose, distinguishing individual series that share the same metric name.

Why this answer

Labels provide metadata to metrics, allowing for multi-dimensional querying and filtering (e.g., job='web', instance='1.2.3.4').

3
MCQeasy

Which of these is NOT a Golden Signal?

A.Latency
B.Storage
C.Saturation
D.Errors
AnswerB

Storage is a resource metric, not one of the four Golden Signals: latency, traffic, errors and saturation. Those four, from Google's SRE guidance, describe user-facing service health, whereas storage capacity is an underlying infrastructure concern.

Why this answer

The Four Golden Signals are Latency, Traffic, Errors, and Saturation. 'Storage' is not one of them.

4
MCQhard

You are deploying Prometheus in a cluster with highly dynamic ephemeral pods. Which concern is the most significant regarding cardinality?

A.The network bandwidth used by the pushgateway.
B.The disk space used by WAL logs.
C.The number of targets being scraped.
D.The memory overhead of storing time series with unique label sets.
AnswerD

Each unique label combination creates a distinct time series held in memory, so ephemeral pods with churning names, IDs or hashes generate vast numbers of short-lived series. This memory overhead, not scrape volume, is the dominant cardinality constraint in dynamic clusters.

Why this answer

Cardinality in Prometheus is driven by the number of unique label combinations, and each unique time series consumes memory in the head block (in-memory TSDB) regardless of scrape frequency. Ephemeral pods with dynamic labels (pod UID, container ID, ephemeral IPs) create a churn of new series that accumulate in memory, causing OOM kills and slow queries. This memory overhead is the dominant concern.

Exam trap

PCA often tests whether candidates confuse target count with cardinality — more targets is not the same as more series, and memory (not disk or bandwidth) is the first resource to fail under cardinality explosion.

How to eliminate wrong answers

Option A is wrong because Pushgateway bandwidth is only relevant for push-based short-lived jobs and is not the primary cardinality concern for scrape-based ephemeral pods. Option B is wrong because WAL disk usage scales with sample ingestion rate and retention, not directly with cardinality; memory pressure hits first. Option C is wrong because the number of targets affects scrape load and CPU, but cardinality (unique label sets per target) is what explodes memory — 1000 targets with 10 series each is fine, 10 targets with 100k series each is fatal.

5
MCQmedium

A system is experiencing high latency. You need to identify if the latency is caused by external dependencies. Which of the Four Golden Signals is most relevant for this discovery?

A.Latency
B.Errors
C.Saturation
D.Traffic
AnswerA

Latency as a Golden Signal distinguishes successful-request duration from error duration, so you can break down response time by dependency. If external calls dominate the slow percentile, the latency originates outside the service, directly satisfying the need to isolate external-dependency causation.

Why this answer

Latency, one of the Four Golden Signals, measures the time it takes to service a request, and it is the signal explicitly designed to reveal slow responses. By breaking latency down by dependency (e.g., downstream API, database, third-party service), you can determine whether external dependencies are the source of the slowdown. This makes Latency the most relevant signal for diagnosing high-latency issues.

Exam trap

PCA often tests whether candidates can map a symptom to the correct Golden Signal — the trap is choosing Saturation or Traffic when the question is specifically about time spent per request, which belongs to Latency.

How to eliminate wrong answers

Option B is wrong because Errors track the rate of failed requests (e.g., HTTP 5xx, exceptions), which indicates correctness problems rather than slowness. Option C is wrong because Saturation measures how full a resource is (CPU, memory, queue depth), which points to capacity limits rather than external dependency delays. Option D is wrong because Traffic measures demand volume (requests per second), which explains load but not the per-request time attributed to external calls.

6
MCQmedium

When designing a monitoring strategy, why should you avoid monitoring 'everything'?

A.Logs are always better for everything.
B.The network will be saturated.
C.Prometheus cannot handle many metrics.
D.It leads to signal noise and high resource costs.
AnswerD

Collecting every available metric floods dashboards and alerts with low-value data, obscuring genuine incidents. It also inflates storage, scrape load and licensing costs. Avoiding this preserves signal clarity and controls resource expenditure, satisfying the stem's rationale.

Why this answer

Excessive metric collection leads to high storage costs, increased query latency, and signal-to-noise ratio degradation (alert fatigue).

7
MCQmedium

Which metric type would best capture the distribution of request latencies?

A.Summary
B.Gauge
C.Counter
D.Histogram
AnswerD

Histograms bucket observations into configurable ranges and expose cumulative counts plus a sum, letting you calculate quantiles such as p95 latency across aggregated series. That distributional view is what latency analysis needs, unlike a gauge or counter, satisfying the requirement to capture request latency distribution.

Why this answer

A Histogram is the correct metric type for capturing the distribution of request latencies because it buckets observations into configurable ranges and exposes cumulative counters per bucket, allowing calculation of percentiles (e.g., p50, p95, p99) via histogram_quantile() in PromQL. Latency is inherently a distribution, not a single value, so bucketing is required to observe spread and tail behaviour. Histograms are also aggregatable across instances, which is essential for fleet-wide latency SLOs.

Exam trap

The trap is the Summary-versus-Histogram distinction: candidates pick Summary because it 'reports percentiles,' forgetting that only Histograms can aggregate distributions across instances.

How to eliminate wrong answers

Option A is wrong because a Summary computes quantiles client-side and, while it can report latency percentiles, those quantiles cannot be aggregated across multiple instances, making it unsuitable for fleet-wide distribution analysis. Option B is wrong because a Gauge represents a value that can go up or down (like temperature or queue depth) and does not capture a distribution of observations. Option C is wrong because a Counter only monotonically increases and cannot represent latency values or their spread.

8
MCQmedium

You are monitoring a legacy batch processing job that runs for only 30 seconds once every 24 hours. Which Prometheus component is necessary to collect these metrics?

A.Prometheus Exporter
B.Prometheus Federation
C.Prometheus Pushgateway
D.Prometheus Alertmanager
AnswerC

Prometheus Pushgateway lets the short-lived batch job push its metrics before exiting, since Prometheus's pull model cannot scrape a process that only exists for 30 seconds every 24 hours. The Pushgateway holds those metrics until Prometheus scrapes it, satisfying the ephemeral-job constraint.

Why this answer

Since the job is short-lived, Prometheus's standard scrape interval will likely miss it. The Pushgateway allows the job to push metrics before exiting.

9
MCQhard

What is the primary function of the 'scrape_timeout' configuration?

A.It limits the duration of the HTTP connection.
B.It determines how long to keep metrics in memory.
C.It sets the interval between scrapes.
D.It restricts the size of the metric payload.
AnswerA

It is the deadline for the scrape response.

Why this answer

It defines how long Prometheus waits for a response from the target before considering the scrape a failure.

10
Multi-Selectmedium

Which THREE of these represent the Four Golden Signals?

Select 3 answers
A.Memory Usage
B.Errors
C.Traffic
D.Availability
E.Latency
AnswersB, C, E

Errors counts failed requests, satisfying the Golden Signals requirement to track request failures. Unlike latency, which measures duration, errors quantify unsuccessful outcomes, whether explicit (HTTP 500s), implicit (malformed responses), or policy-based rejections. Google's SRE guidance names errors alongside latency, traffic, and saturation as the four signals, so this option belongs in the correct set.

Why this answer

The Four Golden Signals, as defined in Google's SRE guidance, are Latency, Traffic, Errors, and Saturation, so option E (Latency) is correct because it measures the time taken to serve requests, typically distinguishing successful-request latency from failed-request latency. Option C (Traffic) is correct because it quantifies demand on the system, such as HTTP requests per second or network I/O rate. Option B (Errors) is correct because it captures the rate of failed requests, including explicit failures like HTTP 5xx responses and implicit failures such as wrong content returned with a 200 status.

The remaining options do not belong: Memory Usage (A) is only one possible component of saturation rather than a golden signal itself, and Availability (D) is a broader service-level objective concept, not one of the four signals.

11
MCQeasy

Which of these is considered a 'counter' in Prometheus?

A.Temperature of a server room.
B.Average latency over 5 minutes.
C.Current memory usage of a process.
D.Total number of HTTP requests processed.
AnswerD

A counter is a cumulative metric that only increases (or resets to zero on restart), and total HTTP requests processed fits this exactly. It monotonically accumulates, so rate() can compute requests per second over time.

Why this answer

A counter in Prometheus is a cumulative metric that only increases (or resets to zero on process restart), and 'total number of HTTP requests processed' is the canonical example — it monotonically grows and is typically queried with rate() or increase(). Counters are used to compute rates of events over time.

Exam trap

PCA often tests whether candidates recognize that a counter must be monotonically increasing — values that fluctuate (temperature, memory, latency) are gauges, and averages are derived, not stored as counters.

How to eliminate wrong answers

Option A is wrong because temperature fluctuates up and down, making it a gauge, not a counter. Option B is wrong because an average latency is a computed/derived value (and latencies are gauges or histograms), not a monotonically increasing counter. Option C is wrong because current memory usage rises and falls, which is the definition of a gauge.

12
Multi-Selecthard

Which TWO are true about Prometheus alerting rules?

Select 2 answers
A.They use PromQL expressions for evaluation.
B.They are evaluated by the Prometheus server.
C.They always trigger a system restart.
D.They are sent to the exporter.
E.They require a separate database.
AnswersA, B

Alerting rules contain PromQL expressions evaluated against the time series database; when the expression returns results for the specified duration, the alert fires. This satisfies the requirement that rules are defined using PromQL rather than a separate query language.

Why this answer

Option A is correct because Prometheus alerting rules are defined with PromQL expressions in the rule file, and the configured expression is evaluated against time-series data to determine whether an alert should fire. Option B is correct because the Prometheus server itself evaluates alerting rules as part of its rule evaluation cycle, then sends firing alerts to Alertmanager for notification handling. Option C is incorrect because alerting rules only produce alert states such as pending or firing; they do not trigger a system restart.

Option D is incorrect because exporters expose metrics for Prometheus to scrape, and alerts are not sent to exporters. Option E is incorrect because Prometheus stores its own time-series data locally and does not require a separate database for alerting rules.

13
MCQhard

You are seeing 'Too many active series' in your Prometheus logs. Which action should be your first priority to address this?

A.Switch to a different monitoring tool.
B.Disable all alerting rules.
C.Analyze the number of active series per label name.
D.Increase Prometheus memory limits.
AnswerC

'Too many active series' indicates cardinality growth, so identifying which label names contribute the most series pinpoints the offending metric before any dropping or relabelling. This diagnostic step precedes remediation such as label dropping or metric relabelling.

Why this answer

Identifying which labels are causing the high cardinality is the standard first step to prevent OOM (Out Of Memory) crashes.

14
MCQmedium

Why might you use an 'exporter' in Prometheus?

A.To bridge non-Prometheus metrics to Prometheus format.
B.To increase the scrape interval.
C.To secure the Prometheus server.
D.To push logs to Prometheus.
AnswerA

Exporters run alongside systems that natively expose no Prometheus metrics, translating their proprietary telemetry into the Prometheus text exposition format on an HTTP endpoint. Prometheus then scrapes that endpoint like any other target, bridging the format gap without altering the monitored application.

Why this answer

An exporter in Prometheus is a component that exposes metrics from a system that does not natively speak the Prometheus exposition format, translating them into Prometheus-compatible metrics on an HTTP endpoint. Prometheus then scrapes that endpoint, allowing monitoring of databases, hardware, message queues, and other third-party systems that lack native /metrics support.

Exam trap

PCA often tests the pull-model nature of Prometheus and the role of exporters as format translators, so candidates who see 'exporter' and assume it pushes data or secures the server pick the wrong option instead of the format-bridging answer.

How to eliminate wrong answers

Option B is wrong because the scrape interval is configured in the Prometheus scrape_config (scrape_interval) and is unrelated to exporters; exporters do not change how often Prometheus scrapes. Option C is wrong because securing the Prometheus server is handled by TLS, authentication, and network policies, not by exporters, which are metric sources rather than security components. Option D is wrong because Prometheus is a metrics system, not a log store; logs are handled by Loki or the ELK stack, and exporters expose metrics, not logs.

15
MCQmedium

A legacy batch job runs once per day and finishes in seconds. Why is a standard Prometheus pull model inadequate here?

A.The data is too large for memory.
B.Pull model is insecure.
C.Prometheus cannot scrape batch jobs.
D.The job is too fast for HTTP polling.
AnswerD

A short-lived batch job may exit before Prometheus's next scrape interval, so its metrics endpoint disappears and the samples are never collected. This directly satisfies the stem's constraint: the job finishes in seconds, far quicker than typical polling, requiring a push gateway or similar mechanism instead.

Why this answer

Prometheus pull intervals are typically set to seconds or minutes; a job that finishes quickly might never be 'up' when Prometheus scrapes it.

16
Multi-Selecteasy

Which TWO of the following are primary components of the Prometheus monitoring architecture?

Select 2 answers
A.Fluentd
B.Alertmanager
C.Zipkin
D.Prometheus Server
E.Kibana
AnswersB, D

Alertmanager is a distinct Prometheus architecture component: it receives firing alerts from the Prometheus server, then deduplicates, groups, silences and routes them to receivers such as email or PagerDuty. This matches the stem's request for a primary component.

Why this answer

The Prometheus Server (D) is the core component of the Prometheus architecture: it scrapes metrics from instrumented targets over HTTP, stores them in its local time-series database (TSDB), and evaluates PromQL recording and alerting rules. Alertmanager (B) is the other primary component, receiving alerts fired by the Prometheus Server and handling deduplication, grouping, silencing, inhibition, and routing them to receivers such as email, Slack, or PagerDuty. Fluentd (A) is a log collection and forwarding tool, not part of Prometheus's metric-based monitoring pipeline.

Zipkin (C) is a distributed tracing system, and Kibana (E) is a visualization front end for Elasticsearch logs, neither of which are Prometheus components.

17
MCQmedium

Which of the following describes the 'pull' model's benefit regarding service discovery?

A.Prometheus is always the first to start.
B.Targets push data when they are ready.
C.It reduces network traffic.
D.Targets don't need to know where Prometheus is.
AnswerD

Targets expose metrics passively, so Prometheus discovers and scrapes them without any target-side configuration naming the server. This satisfies the stem's service-discovery constraint: targets remain unaware of Prometheus's location, unlike push models where each target must know the gateway endpoint.

Why this answer

Prometheus can dynamically discover targets (via Kubernetes API, Consul, etc.) and automatically start scraping, removing the need to register every new pod.

18
MCQhard

When configuring Service Discovery in Kubernetes, why might you use relabeling?

A.To encrypt metric traffic.
B.To increase scrape frequency.
C.To store logs in Prometheus.
D.To reduce cardinality by dropping high-variance labels.
AnswerD

Relabeling rewrites label sets during service discovery, so a drop action on high-variance labels removes them before ingestion. This directly lowers series cardinality, satisfying the stem's constraint of reducing the label combinations Prometheus must store and index.

Why this answer

Relabeling in Prometheus service discovery lets you rewrite the label set of discovered targets before scraping, and a common use is dropping or aggregating high-variance labels (e.g., pod UID, ephemeral instance IDs) that would explode cardinality. Since every unique label combination creates a new time series, dropping noisy labels keeps the TSDB manageable and queries fast. This is done with `relabel_configs` using actions like `labeldrop`, `labelkeep`, `replace`, or `drop`.

Exam trap

The trap is conflating relabeling with scrape configuration tuning — candidates who see 'service discovery' and 'relabeling' often jump to scrape frequency or encryption, missing that relabeling's primary operational purpose is cardinality control.

How to eliminate wrong answers

Option A is wrong because relabeling operates on target metadata labels, not on the wire — it cannot encrypt metric traffic; TLS for scraping is configured via `scheme: https` and `tls_config`. Option B is wrong because scrape frequency is controlled by `scrape_interval` in the scrape config, not by relabeling. Option C is wrong because Prometheus is a metrics system and does not store logs at all — that is the domain of Loki, Elasticsearch, or similar; relabeling has nothing to do with log ingestion.

19
Multi-Selecteasy

Which THREE of the following are considered part of the 'Four Golden Signals' of monitoring?

Select 3 answers
A.Disk Space
B.Errors
C.Up-time
D.Traffic
E.Latency
AnswersB, D, E

Errors counts failed requests, whether explicit failures, wrong content or policy rejections. It is a Golden Signal because it directly exposes reliability degradation, letting SRE teams alert on failure rates rather than waiting for user reports.

Why this answer

The four golden signals are Latency, Traffic, Errors, and Saturation.

20
MCQhard

A dashboard shows a latency spike that doesn't correlate with CPU usage. What should you investigate next?

A.Increase the number of replicas.
B.Disk I/O and network saturation.
C.Check the memory limit.
D.Delete old metrics.
AnswerB

Latency without CPU correlation points to resource contention outside the processor: storage throughput, IOPS limits, or network bandwidth and packet loss. Examining disk I/O and network saturation metrics identifies whether the bottleneck sits in I/O waits or transport, which CPU graphs cannot reveal.

Why this answer

Latency that is decoupled from CPU utilization points to a bottleneck outside of compute processing, most commonly I/O wait or network congestion. Disk I/O saturation (high await, queue depth) and network saturation (packet drops, retransmits, bandwidth limits) can both inflate request latency while CPU sits idle waiting on data. In a Prometheus/Grafana context, you would inspect node_disk_io_time_seconds_total, node_network_transmit_drop_total, or container network metrics to confirm.

This is why B is the correct next investigation step.

Exam trap

PCA often tests the misconception that latency always correlates with CPU, so candidates instinctively pick compute-scaling or memory-limit answers instead of recognizing I/O and network as independent latency sources.

How to eliminate wrong answers

Option A is wrong because adding replicas addresses capacity/throughput limits, not a latency spike that is uncorrelated with CPU — if the bottleneck is disk or network, more replicas can worsen contention. Option C is wrong because memory limits cause OOM kills or GC pressure, which typically manifest alongside CPU or restart events, not an isolated latency spike with flat CPU. Option D is wrong because deleting old metrics is a retention/storage housekeeping action and has no causal relationship to a live latency spike; it would also destroy the historical data needed for diagnosis.

21
MCQmedium

What is the purpose of a Gauge metric?

A.To track request rates.
B.To track job start times.
C.To track request durations.
D.To track values that fluctuate up and down.
AnswerD

A Gauge records an instantaneous value that can rise or fall over time, such as memory usage or queue depth, unlike counters that only increase. This matches the stem's requirement to track values that fluctuate up and down.

Why this answer

A gauge represents a single numerical value that can arbitrarily go up and down, such as temperature or memory usage.

22
MCQmedium

Which monitoring philosophy is core to the Prometheus architecture?

A.Agent-less log aggregation.
B.Push-based data ingestion.
C.Centralized pull-based scraping.
D.Event-driven architecture.
AnswerC

Prometheus pulls metrics from targets at controlled intervals.

Why this answer

Prometheus favors the pull model, where the server controls the scrape rate and frequency, providing better control over the load on the monitoring system.

23
MCQmedium

What is the primary drawback of using the Pushgateway for long-running services?

A.It requires manual restarts.
B.It lacks metric persistence.
C.Prometheus cannot query the Pushgateway.
D.It bypasses Prometheus's liveness check for the source.
AnswerD

Pushgateway accepts pushed metrics without verifying that the source service is still running, so Prometheus scrapes stale values indefinitely. This directly satisfies the stem's constraint: long-running services lose Prometheus's liveness detection, since the target's up metric reflects the gateway, not the actual service instance.

Why this answer

Pushgateway exists for short-lived batch jobs that cannot be scraped before they exit. When a long-running service pushes metrics to Pushgateway, Prometheus scrapes Pushgateway rather than the service itself, so Prometheus's normal up/health metric reflects Pushgateway's availability, not the actual service. If the service dies, Pushgateway keeps serving the last pushed values, masking the outage — this is the liveness-check bypass described in option D.

Exam trap

The trap is confusing Pushgateway's persistence with reliability — candidates assume 'it stores metrics' means 'it's safe for long-running services,' but the real issue is that it decouples Prometheus's health check from the actual service, hiding failures.

How to eliminate wrong answers

Option A is wrong because Pushgateway does not require manual restarts; it runs as a persistent service and accepts pushes continuously. Option B is wrong because Pushgateway does persist metrics — it stores the last pushed values in memory (and optionally on disk) until they are deleted or overwritten, which is precisely why stale metrics are a problem. Option C is wrong because Prometheus absolutely can query Pushgateway; in fact, Prometheus scrapes Pushgateway as a target, and the pushed metrics appear in PromQL queries normally.

24
MCQeasy

What is the primary goal of observability?

A.To store as many logs as possible.
B.To automate code deployments.
C.To understand system state from external outputs.
D.To replace testing.
AnswerC

Observability infers internal system state purely from emitted outputs such as logs, metrics and traces, without inspecting internals directly. This lets operators answer novel questions about behaviour the system was never explicitly instrumented to report.

Why this answer

Observability aims to answer 'why' a system is in its current state by understanding its internal state through outputs (metrics, logs, traces).

25
MCQmedium

You are designing a monitoring architecture for an ephemeral, auto-scaling microservices environment. Why is the Prometheus 'pull' model generally preferred over a 'push' model in this scenario?

A.Pull models enable automatic service discovery and health management via the Prometheus server.
B.Pull models eliminate the need for firewall configuration.
C.Pull models reduce network latency on the monitored targets.
D.Push models require a Prometheus Pushgateway for every single target.
AnswerA

The Prometheus server discovers targets through service discovery, then scrapes each instance and marks it down when unreachable. This suits ephemeral, auto-scaling microservices because target health and liveness are managed centrally without instances needing to know the server's address.

Why this answer

Prometheus's pull model lets the server discover targets dynamically (via Kubernetes SD, Consul, EC2 SD, etc.) and scrape them on a schedule, so ephemeral pods that appear and disappear are picked up automatically. It also gives the server a built-in health signal: if a target fails to respond to a scrape, Prometheus marks it down via the 'up' metric, providing liveness monitoring for free.

Exam trap

The trap is conflating 'pull' with 'no firewall needed' or 'lower latency,' when the real advantage is service discovery plus free up/down health signaling for ephemeral targets.

How to eliminate wrong answers

Option B is wrong because pull does not eliminate firewall configuration — the Prometheus server still needs network reachability to each target's /metrics endpoint, which often requires firewall or security-group rules. Option C is wrong because pull does not inherently reduce network latency on targets; latency is a function of network topology, not scrape direction. Option D is wrong because Pushgateway is only needed for short-lived batch jobs that cannot be scraped, not for every target — long-running services are scraped directly.

26
MCQhard

When evaluating the 'Traffic' golden signal, what is the best metric to watch for a web service?

A.CPU usage percentage.
B.Requests per second.
C.HTTP error count.
D.Response latency.
AnswerB

Requests per second measures demand volume hitting the web service, making it the most direct indicator of the Traffic golden signal. It reveals load changes and saturation trends that latency or error-rate metrics alone would not expose for a request-driven service.

Why this answer

Request rate (requests per second) is the standard way to measure traffic volume.

27
MCQeasy

Your team is defining Service Level Objectives (SLOs) for a web application. Which metric is most indicative of the 'Traffic' golden signal?

A.Number of requests per second
B.Database connection pool size
C.Total disk I/O wait
D.Number of active error logs
E.Average CPU utilization percentage
AnswerA

Traffic measures demand on the system, so requests per second directly quantifies the volume of incoming work. Latency, errors and saturation describe other golden signals, but only request rate satisfies the Traffic SLO requirement in the stem.

Why this answer

Traffic is a measure of demand on the system, typically represented by request rate per second.

28
MCQhard

How does the 'stale marker' work in Prometheus?

A.It prevents the graph from showing data after the target goes down.
B.It restarts the scrape job.
C.It sends an alert.
D.It deletes the metric data.
AnswerA

When a target disappears, Prometheus writes a stale marker into the TSDB, causing queries to stop returning that series' last sample immediately after the lookback delta. This prevents graphs from displaying flat-lined or misleading data once the target is genuinely down.

Why this answer

When a target stops responding, Prometheus writes a stale marker to the TSDB so that graphs stop at the last known value rather than showing an infinite line or incorrect data.

29
MCQmedium

Which tool would you pair with Prometheus to visualize the collected data?

A.Grafana
B.Kibana
C.PromQL
D.Alertmanager
AnswerA

Grafana queries Prometheus as a data source and renders its time series as dashboards, graphs and alerts. Prometheus itself offers only a basic expression browser, so pairing it with Grafana provides the visualisation layer the scenario requires for exploring collected metrics.

Why this answer

Grafana is the standard visualization tool paired with Prometheus. It connects to Prometheus as a data source and allows users to create dashboards, graphs, and alerts based on Prometheus metrics. Grafana's native support for PromQL and its rich visualization capabilities make it the go-to choice for visualizing Prometheus data.

Exam trap

PCA often tests the distinction between data collection, querying, visualization, and alerting tools; candidates might confuse PromQL as a visualization tool or Kibana as compatible with Prometheus, but the key is to identify Grafana as the dedicated visualization layer.

How to eliminate wrong answers

Option B is wrong because Kibana is designed for visualizing Elasticsearch data, not Prometheus metrics; it is part of the ELK stack and does not natively support PromQL. Option C is wrong because PromQL is Prometheus's query language, not a visualization tool; it is used to retrieve and manipulate data but does not provide dashboards or graphs. Option D is wrong because Alertmanager handles alerts sent by Prometheus, including deduplication, grouping, and routing, but it does not visualize data.

30
MCQeasy

What is the primary difference between a metric and a log?

A.Metrics are for debugging; logs are for alerting.
B.Logs are cheaper to store.
C.Logs are always real-time.
D.Metrics represent snapshots of state; logs represent discrete events.
AnswerD

Metrics are numeric samples recording state at a point in time, aggregated and cheap to store. Logs are timestamped records of discrete events with full context. This axis — sampled state versus discrete event — is the fundamental distinction between the two telemetry types.

Why this answer

Metrics are numeric time-series measurements (counters, gauges, histograms) sampled at intervals, so each data point is a snapshot of a value at a moment in time. Logs are timestamped, discrete event records — text or structured payloads emitted when something happens (a request, an error, a state change). This distinction drives everything downstream: metrics are aggregated and cheap to query at scale, while logs preserve per-event detail for forensics.

Exam trap

The trap here is the false dichotomy that metrics and logs serve mutually exclusive purposes (debugging vs. alerting) — candidates who memorise 'logs = debugging' pick A, missing that the real axis of difference is snapshot-of-state vs. discrete-event.

How to eliminate wrong answers

Option A is wrong because it inverts the actual roles — metrics are the primary alerting signal (threshold/rate-based alerts in Prometheus, CloudWatch, etc.), while logs are the go-to for debugging individual failures. Option B is wrong because logs are generally far more expensive to store and index than metrics; metrics are compact numeric samples, whereas logs carry full payloads and high cardinality. Option C is wrong because logs are not inherently real-time — they are written after an event occurs and may be batched, buffered, or shipped asynchronously, whereas metrics are typically scraped/pushed on a fixed interval.

31
MCQeasy

Which golden signal would you monitor to detect if a specific API endpoint is returning 404s?

A.Traffic
B.Saturation
C.Errors
D.Latency
AnswerC

Errors is the golden signal tracking failed requests, and HTTP 404 responses count as errors for a specific endpoint. Monitoring error rate per endpoint reveals whether clients are requesting nonexistent resources, satisfying the detection requirement.

Why this answer

Errors is the golden signal that measures the rate of requests that fail — including HTTP 5xx, 4xx, and application-level failures. A 404 response from an API endpoint is a client error (4xx) and falls under the Errors signal. Monitoring error rates per endpoint lets you detect misrouted requests, broken links, or misconfigured clients.

The four golden signals from Google SRE are Latency, Traffic, Errors, and Saturation.

Exam trap

PCA often tests the four golden signals by presenting a specific failure (like 404s) and expecting candidates to map it to Errors rather than Traffic or Latency, which sound plausible but measure different dimensions.

How to eliminate wrong answers

Option A is wrong because Traffic measures demand on the system (e.g., requests per second, network I/O) and does not distinguish successful from failed requests. Option B is wrong because Saturation measures how 'full' a resource is (CPU, memory, queue depth) — it indicates capacity pressure, not request failures. Option D is wrong because Latency measures the time to service a request; a 404 can be fast, so latency would not flag it.

32
MCQeasy

A team is transitioning from a traditional logging system to a metrics-based monitoring approach. Which category of observability data should the team prioritize to specifically identify the 'Latency' golden signal?

A.Infrastructure events
B.Structured application logs
C.Time-series metrics
D.Distributed traces
AnswerC

Latency is a duration measured repeatedly over time, so time-series metrics capture request durations as timestamped samples, enabling percentile and histogram analysis. This satisfies the stem's requirement, unlike logs, which record discrete events without native aggregation.

Why this answer

The 'Latency' golden signal is one of the four golden signals (latency, traffic, errors, saturation) defined in Google's SRE book. Latency is fundamentally a time-based measurement—how long a request takes to complete. Time-series metrics are specifically designed to capture numeric values over time, making them the ideal data category for tracking latency percentiles (e.g., p50, p95, p99) and alerting on thresholds.

Metrics allow efficient aggregation and long-term trend analysis, which is essential for monitoring latency as a key performance indicator.

Exam trap

PCA often tests the distinction between the four golden signals and the data types used to measure them, and candidates frequently confuse distributed traces (which show per-request latency) with time-series metrics (which aggregate latency over time for monitoring).

How to eliminate wrong answers

Option A is wrong because infrastructure events (e.g., server reboots, network interface changes) provide discrete state changes, not continuous latency measurements. Option B is wrong because structured application logs record discrete events with context, but they are not optimized for numeric time-series analysis and would require parsing to extract latency values, making aggregation and alerting inefficient. Option D is wrong because distributed traces capture the full call graph and timing of individual requests, which is powerful for debugging but not for continuous monitoring of latency as a golden signal; traces are typically sampled and not aggregated into time-series metrics for alerting.

33
Multi-Selectmedium

Which TWO are true about the 'Summary' metric type?

Select 2 answers
A.They only support counts.
B.They are easily aggregatable across instances.
C.They provide client-side quantiles.
D.They have a fixed overhead.
E.They are identical to Histograms.
AnswersC, D

Client-side quantiles are computed within the instrumented application before export, so the Summary metric type satisfies the stem's requirement for locally calculated quantiles rather than server-side aggregation. This distinguishes it from histogram-based types, where quantiles are derived later from bucketed data in the backend.

Why this answer

Option C is correct because a Summary metric type computes quantiles (e.g., 0.5, 0.9, 0.99) on the client side, meaning the application itself calculates the quantile values before exposing them, unlike Histograms which expose buckets for server-side quantile estimation. Option D is correct because Summaries have a fixed overhead: the number of quantiles and their sliding time window are configured in advance, so the memory and CPU cost per Summary is predetermined and does not grow with the number of observed values or label combinations. Option A is wrong because Summaries support observations of values (they track sum, count, and quantiles), not only counts.

Option B is wrong because client-side quantiles from Summaries cannot be meaningfully aggregated across instances — you cannot average or sum quantiles to get a correct global quantile. Option E is wrong because Summaries and Histograms differ fundamentally: Summaries compute quantiles client-side with fixed overhead, while Histograms expose configurable buckets and allow server-side aggregation and quantile calculation.

34
Multi-Selectmedium

Which TWO of these are true about the 'Pull' model?

Select 2 answers
A.The load on the server is unpredictable.
B.Targets must run a push-client.
C.Prometheus initiates the scrape request.
D.Prometheus can detect when a target is down.
E.It is limited to local metrics.
AnswersC, D

In the pull model Prometheus actively initiates each scrape over HTTP against configured targets, rather than passively receiving pushed data. This satisfies the stem's requirement by naming the direction of initiation, the defining axis separating pull from push architectures.

Why this answer

Option C is correct because in the Pull model Prometheus itself initiates the HTTP scrape request to each target's /metrics endpoint on a schedule, rather than waiting for targets to send data. Option D is correct because, since Prometheus controls the scrape cycle, it can evaluate the `up` metric after each scrape and mark a target as down when the scrape fails or times out, enabling alerting on target availability. Option A is not correct because the pull model's load is predictable and driven by Prometheus's configured scrape intervals and target list, not by unpredictable target behavior.

Option B is not correct because targets only need to expose an HTTP metrics endpoint; a push-client is required in push-based models, not in the pull model. Option E is not correct because Prometheus can scrape remote targets over the network, not just local metrics.

35
Multi-Selectmedium

Which THREE items are standard techniques to reduce metric cardinality?

Select 3 answers
A.Aggregating raw metrics into broader categories.
B.Increasing the scrape interval.
C.Dropping unused labels via relabeling.
D.Using histograms with fewer buckets.
E.Adding unique IDs to every label.
AnswersA, C, D

Aggregating raw metrics into broader categories directly reduces cardinality by collapsing many distinct label combinations into fewer series. For example, grouping individual HTTP status codes into 2xx, 4xx and 5xx classes cuts the number of unique time series Prometheus must track, satisfying the stem's requirement for a standard cardinality-reduction technique.

Why this answer

Option A is correct because aggregating raw metrics into broader categories (for example, rolling per-endpoint series up to a per-service or per-method level) collapses many distinct label combinations into fewer time series, directly lowering cardinality. Option C is correct because dropping unused labels via relabeling (e.g., Prometheus metric_relabel_configs with action: labeldrop) removes high-variation or unnecessary label dimensions before ingestion, which is a standard cardinality-reduction technique. Option D is correct because histograms with fewer buckets reduce the number of derived series per histogram, since each bucket becomes its own time series with a le label, so cutting buckets directly cuts cardinality.

Option B does not belong because increasing the scrape interval only changes sampling frequency, not the number of distinct label sets, so cardinality is unchanged. Option E does not belong because adding unique IDs to every label does the opposite: it creates a unique series per ID and explodes cardinality.

36
MCQhard

You need to measure the P99 latency of your service. Which PromQL function do you use on a Histogram?

A.histogram_quantile()
B.avg()
C.sum()
D.rate()
AnswerA

histogram_quantile() calculates a quantile from histogram buckets, interpolating within the bucket containing the requested rank. Applied to a histogram's le-labelled bucket counters with rate(), it returns the P99 latency estimate, which no counter or summary function provides directly.

Why this answer

histogram_quantile() is the correct PromQL function to compute quantiles (like P99) from a histogram metric. It takes a φ (phi) value between 0 and 1 and a histogram bucket series, then interpolates the quantile from the cumulative bucket counts. For P99, you would use histogram_quantile(0.99, ...).

This function is specifically designed for Prometheus histograms, which expose _bucket time series with an le label.

Exam trap

PCA often tests the confusion between aggregation functions like avg() and sum() versus quantile estimation, and candidates may mistakenly think rate() can be used directly on histograms to get percentiles, ignoring that histogram_quantile() is the only function designed for this purpose.

How to eliminate wrong answers

Option B is wrong because avg() computes the arithmetic mean of a set of instant vectors, which gives the average value, not a percentile; it cannot derive P99 from histogram buckets. Option C is wrong because sum() aggregates values by addition, which is used for total counts or sums, not for quantile estimation. Option D is wrong because rate() calculates the per-second average rate of increase for counters, which is useful for request rates but does not compute percentiles from histograms.

37
Multi-Selecteasy

Which TWO of the following are examples of metric data?

Select 2 answers
A.A full database SQL query statement.
B.Current CPU usage percentage.
C.A line of text in an access log file.
D.Total number of completed HTTP requests.
E.The stack trace of an application error.
AnswersB, D

CPU usage percentage is a numeric measurement sampled over time, which is exactly what Prometheus stores as a time series. It satisfies the stem's requirement for metric data, unlike logs or traces, because its value is quantifiable and aggregatable.

Why this answer

Metric data consists of numeric measurements captured over time, typically aggregated as counters, gauges, or histograms. Option B (Current CPU usage percentage) is correct because it is a numeric gauge value representing resource utilization at a point in time, exactly the kind of time-series measurement monitoring systems collect. Option D (Total number of completed HTTP requests) is correct because it is a numeric counter that monotonically increases as requests are served, a canonical metric used for rate and throughput calculations.

Option A (a full database SQL query statement) is not metric data; it is a text/string artifact more suited to logs or traces. Option C (a line of text in an access log file) is log data, not a numeric measurement. Option E (the stack trace of an application error) is diagnostic trace/log data, not metric data.

38
MCQeasy

Which component is responsible for executing queries written in PromQL?

A.Exporter
B.Alertmanager
C.Prometheus Server
D.Grafana
AnswerC

Prometheus Server executes PromQL queries directly against its time-series database, retrieving and aggregating metric samples on demand. This satisfies the stem's requirement precisely: PromQL is Prometheus's native query language, evaluated by the server's query engine rather than by exporters, Alertmanager, or client libraries.

Why this answer

The Prometheus server itself contains the query engine that processes PromQL expressions.

39
Multi-Selecthard

Which TWO of these are potential side effects of high-cardinality metrics?

Select 2 answers
A.High memory consumption on the Prometheus server.
B.Reduced CPU usage on target.
C.Faster alert evaluation.
D.Slow PromQL query execution times.
E.Decreased network bandwidth.
AnswersA, D

Every distinct label combination creates a separate time series, so high cardinality multiplies the series Prometheus must track. Each series consumes memory in the head block and index, driving up RAM usage on the server.

Why this answer

Memory exhaustion (OOM) and slow query performance are the direct results of high cardinality.

40
MCQhard

An application is emitting logs that contain '5xx' status codes when a service is unavailable. If you want to create an alert that triggers based on the rate of these errors, what is the best practice for observability?

A.Expose a metric incrementing on every 5xx error and alert on the rate of that metric.
B.Alert directly on the log stream using a log aggregator.
C.Use Prometheus to scrape the log file directly.
D.Increase log verbosity to trace the request until the error is resolved.
AnswerA

Emitting a counter metric per 5xx error lets Prometheus apply rate() over the series, so alerting rules fire on error frequency rather than raw log volume. This satisfies the requirement to trigger on the rate of errors, which log-based alerting cannot express directly.

Why this answer

Logs are useful for root cause analysis, but for alerting on rates, you should convert the error occurrence into a metric increment, as metrics are more efficient for long-term calculation and alerting.

41
MCQmedium

Why are 'logs' essential for debugging, even with perfect metrics?

A.Metrics are too slow.
B.Logs contain detailed context about specific events.
C.Logs are free to store.
D.Metrics cannot be used for debugging.
AnswerB

Logs capture discrete, timestamped events with full contextual detail — error messages, stack traces, request identifiers and variable values — that aggregated metrics cannot retain. Metrics reveal that a failure occurred; logs explain why, satisfying the need to diagnose specific incidents rather than merely detect anomalies.

Why this answer

Logs provide the granular, detailed context (like specific error messages or stack traces) that metrics cannot provide.

42
MCQmedium

A developer asks why they should use Distributed Traces instead of simply using high-cardinality metrics to debug a slow request. What is the primary advantage of traces?

A.Traces are natively generated by Prometheus.
B.Traces provide end-to-end request context across microservices.
C.Traces have lower storage requirements.
D.Metrics cannot be used for alerting.
AnswerB

Traces capture the full causal path of a single request as it propagates across microservices, preserving parent-child span relationships and per-hop timings. High-cardinality metrics aggregate values and cannot reconstruct that request-scoped journey, so traces uniquely satisfy the need for end-to-end context when debugging one slow request.

Why this answer

Distributed traces capture the full causal chain of a request as it flows through multiple microservices, including parent-child span relationships, timing, and metadata. This end-to-end context lets you pinpoint which service or span in a call graph introduced latency, which high-cardinality metrics alone cannot do because metrics aggregate and lose per-request causality.

Exam trap

PCA often tests whether candidates understand that traces provide per-request causality and context, while metrics are aggregated — the trap is picking 'lower storage' or 'Prometheus-native' answers that misrepresent how tracing works.

How to eliminate wrong answers

Option A is wrong because Prometheus does not natively generate traces — it is a metrics system; tracing requires OpenTelemetry, Jaeger, Tempo, or similar. Option C is wrong because traces typically have higher storage requirements than metrics due to per-request span data and sampling overhead. Option D is wrong because metrics are in fact the primary alerting signal in most observability stacks (e.g., Prometheus alerting rules).

43
Multi-Selecthard

Which THREE factors contribute to a 'high cardinality' problem in a Prometheus environment?

Select 3 answers
A.Adding high-variance values like email addresses to labels.
B.Including a unique request ID in a label.
C.Adding full URL paths as labels including query parameters.
D.Using a low scrape interval.
E.Using too many scrape targets.
AnswersA, B, C

Email addresses are effectively unique per user, so each distinct value spawns its own time series. That unbounded label-value growth multiplies active series and index size, which is precisely the high-cardinality condition the stem asks about.

Why this answer

Options A, B, and C are correct because high cardinality in Prometheus is driven by labels whose value sets grow without bound, creating a distinct time series for every unique combination. A is right because high-variance values like email addresses produce a new series per user, exploding the index and memory footprint. B is right because a unique request ID makes essentially every request its own series, which is the classic cardinality anti-pattern.

C is right because full URL paths with query parameters multiply series by every distinct path and parameter combination, again unbounded growth. D is not correct because a low scrape interval only increases sample ingestion frequency and storage volume, not the number of distinct series. E is not correct because more scrape targets raise overall series count linearly, but cardinality problems come from high-variance label values, not merely from target quantity.

44
MCQeasy

In the context of the Four Golden Signals, what does 'Saturation' measure?

A.The number of 5xx errors.
B.The amount of queued work.
C.The speed of the network.
D.The number of successful requests.
AnswerB

Saturation quantifies how full a resource is, typically expressed as queued work awaiting service, such as requests in a queue or threads waiting. It signals impending degradation before latency or errors appear, matching the Four Golden Signals definition the stem requests.

Why this answer

Saturation is one of the Four Golden Signals (latency, traffic, errors, saturation) and measures how 'full' a resource is — the portion of a resource's capacity being consumed, with queued work being the classic indicator. High queue depth signals the resource (CPU, memory, disk I/O, network) is approaching its limit and will soon degrade latency or drop requests.

Exam trap

The trap is conflating Saturation with Errors or Traffic — candidates often pick '5xx errors' because both feel like 'something is wrong,' but errors are a separate golden signal.

How to eliminate wrong answers

Option A is wrong because 5xx errors map to the 'Errors' signal, not Saturation. Option C is wrong because network speed is a capacity attribute, not a saturation measurement; saturation would be measured as bandwidth utilization relative to link capacity. Option D is wrong because successful request count is the 'Traffic' signal (requests per second), not saturation.

45
MCQhard

You notice that your Prometheus instance memory usage is growing linearly despite constant traffic. What is the most likely cause?

A.CPU throttling.
B.Network latency.
C.Increasing metric cardinality.
D.Too many alert rules.
AnswerC

Each distinct label combination creates a separate time series held in memory. With constant traffic but rising cardinality, new series accumulate faster than stale ones are garbage-collected, so memory grows linearly. This directly explains the symptom described in the stem.

Why this answer

If cardinality (unique label combinations) increases over time, the number of active time series keeps growing, increasing RAM usage.

46
Multi-Selectmedium

Which TWO statements accurately describe the differences between logs and metrics?

Select 2 answers
A.Logs are stored as numerical counters.
B.Metrics are better suited for full-text search.
C.Metrics have higher storage costs per data point.
D.Metrics are best for tracking aggregate trends over time.
E.Logs are ideal for debugging specific, individual request failures.
AnswersD, E

Metrics are numeric, aggregated and cheap to store, making them suited to dashboards and trend analysis over time. Logs capture individual discrete events with rich context, better for debugging specific incidents. This aggregate-versus-event axis is the defining difference.

Why this answer

Option D is correct because metrics are numeric time-series values (counters, gauges, histograms) that are aggregated and sampled at intervals, making them ideal for dashboards and alerting on aggregate trends over time, such as average latency or request rate. Option E is correct because logs capture discrete, detailed event records with full context (timestamps, error messages, stack traces, request IDs), which is exactly what you need to debug a specific individual request failure. Option A is wrong because logs are stored as text or structured event records, not numerical counters; numerical counters are the domain of metrics.

Option B is wrong because full-text search is a log-oriented capability, whereas metrics are numeric and queried by aggregation functions rather than text search. Option C is wrong because metrics are typically far cheaper to store per data point than logs, since metrics are compact numeric samples while logs contain verbose text payloads.

Exam trap

PCA often tests whether candidates can distinguish the strengths of logs vs. metrics — particularly that metrics are for aggregate trends and logs for individual event debugging — and whether they mistakenly attribute full-text search or low storage cost to metrics.

47
Multi-Selecthard

Which TWO are common causes of high-cardinality in Kubernetes environments?

Select 2 answers
A.Using a deployment name label.
B.Using a unique transaction ID as a label.
C.Using the pod name in a metric label.
D.Using a cluster region label.
E.Using a service name label.
AnswersB, C

A unique transaction ID label creates a new time series for every transaction, so cardinality grows without bound as traffic increases. This directly satisfies the stem's high-cardinality cause, since Prometheus indexes each distinct label combination separately in its TSDB.

Why this answer

High cardinality occurs when a metric label takes on a very large number of distinct values, multiplying the number of time series. Option B is correct because a unique transaction ID as a label creates a new series for every transaction, producing unbounded cardinality. Option C is correct because the pod name in a metric label changes with every pod restart or rollout, generating a new series per pod instance and causing cardinality to grow continuously.

Options A, D, and E are not common causes of high cardinality: deployment names, cluster regions, and service names are relatively stable, low-cardinality dimensions with a limited set of values.

48
MCQeasy

What is 'Monitoring Philosophy' regarding alerts?

A.Alert on every CPU spike.
B.Alert on symptoms, not causes.
C.Only alert during business hours.
D.Alert on every error log.
AnswerB

Alerting on causes (CPU, disk) fires on conditions users may never feel. Symptom-based alerts target observable service degradation, such as elevated error rates or latency, so pages reflect actual user impact and reduce noise from transient internal fluctuations.

Why this answer

The 'Monitoring Philosophy' in Google Cloud's operations suite (formerly Stackdriver) emphasizes alerting on symptoms—user-visible issues like high latency or error rates—rather than on causes such as CPU spikes or disk I/O. This approach reduces alert noise and focuses on what actually impacts users, aligning with SRE principles. By alerting on symptoms, you avoid false positives from normal fluctuations and ensure that alerts are actionable and tied to service level objectives (SLOs).

Exam trap

PCA often tests the distinction between symptom-based and cause-based alerting, and candidates may mistakenly choose to alert on every CPU spike or error log because they confuse monitoring data with actionable alerts.

How to eliminate wrong answers

Option A is wrong because alerting on every CPU spike generates excessive noise and often flags normal, transient behavior that doesn't affect users, leading to alert fatigue. Option C is wrong because restricting alerts to business hours ignores critical issues that can occur at any time and contradicts the need for continuous monitoring in cloud environments. Option D is wrong because alerting on every error log is impractical; many errors are benign or expected, and this would overwhelm operators with non-actionable notifications.

49
MCQhard

Why does the 'rate()' function in PromQL behave unexpectedly on counter resets?

A.It returns an error.
B.It requires a manual offset.
C.It detects the reset and ignores the wrap-around.
D.It stops recording the metric.
AnswerC

Counters reset to zero on restart, so raw deltas go negative. PromQL's rate() detects the reset and treats the drop as a wrap-around, extrapolating the increase across the interval rather than reporting a spurious negative slope, which would otherwise distort the per-second average.

Why this answer

PromQL's rate() function is specifically designed to handle counter resets: when a counter decreases (indicating a process restart or counter wrap), rate() treats the drop as a reset and extrapolates the increase across the interval, effectively ignoring the wrap-around. This is why rate() is the recommended way to compute per-second rates on counters, rather than using deriv() or manual subtraction. The function assumes the counter only increases between resets and compensates accordingly.

Exam trap

PCA often tests the misconception that rate() fails or errors on counter resets, when in fact reset handling is its core design feature — candidates confuse rate() with raw subtraction or deriv().

How to eliminate wrong answers

Option A is wrong because rate() does not return an error on counter resets — it is explicitly built to handle them gracefully. Option B is wrong because no manual offset is required; rate() automatically accounts for resets within the lookback window. Option D is wrong because a counter reset does not stop Prometheus from recording the metric — the exporter continues exposing the counter, and Prometheus continues scraping it; only the value drops to zero or a lower number.

50
Multi-Selecteasy

Which THREE features are provided by Grafana when used with Prometheus?

Select 3 answers
A.Customizable dashboard visualization.
B.Integration with alert notification channels.
C.Dashboard templating with variables.
D.Long-term storage of metrics.
E.Automatic code deployment.
AnswersA, B, C

Grafana supplies the visualisation layer Prometheus lacks natively, rendering its time-series data into configurable panels, graphs and dashboards. This satisfies the stem's requirement for a dashboarding feature, since Prometheus itself offers only basic expression-browser graphing rather than persistent, shareable, customisable dashboards.

Why this answer

Grafana provides customizable dashboard visualization (A), letting you build panels with graphs, gauges, tables, and heatmaps that query Prometheus via its data source and PromQL. It also provides integration with alert notification channels (B), where Grafana alert rules (or Prometheus Alertmanager routed into Grafana) can send notifications through channels such as email, Slack, PagerDuty, or webhooks. Dashboard templating with variables (C) is another Grafana feature, enabling reusable dashboards where variables like $instance or $job dynamically filter PromQL queries across panels.

Long-term storage of metrics (D) is not provided by Grafana; that is Prometheus's role (with remote storage or Thanos/Cortex for extended retention), while Grafana is only a visualization/alerting front end. Automatic code deployment (E) is unrelated to Grafana, being the domain of CI/CD tools such as Jenkins, GitLab CI, or Argo CD.

51
Multi-Selecteasy

Which THREE of these are common Prometheus data sources?

Select 3 answers
A.Static configuration files.
B.Consul Service Discovery
C.Kubernetes API Service Discovery
D.User manual entry in the UI.
E.Direct SQL database connections.
AnswersA, B, C

Static configuration files let Prometheus scrape targets listed explicitly in prometheus.yml, without any external registry. This satisfies the scenario's need for a file-based service discovery mechanism, one of the standard target sources alongside Consul and Kubernetes API discovery.

Why this answer

Kubernetes service discovery, static file configs, and Consul are standard discovery methods.

52
MCQmedium

If you have a metric `http_requests_total` and want the increase over 5 minutes, what is the best PromQL syntax?

A.increase(http_requests_total[5m])
B.delta(http_requests_total[5m])
C.rate(http_requests_total[5m])
D.sum(http_requests_total[5m])
AnswerA

`increase()` extrapolates the counter's growth across the 5-minute range vector, automatically handling counter resets and scaling to the window boundaries. This satisfies the stem's requirement for the rise in `http_requests_total` over exactly 5 minutes, unlike `delta()`, which ignores resets and suits gauges rather than counters.

Why this answer

The `increase()` function is specifically designed to calculate the increase of counter values over a specified range.

53
Multi-Selecteasy

Which TWO are common types of Prometheus exporters?

Select 2 answers
A.Node Exporter
B.Log Exporter
C.Push Exporter
D.Blackbox Exporter
E.Trace Exporter
AnswersA, D

Node Exporter runs on Linux hosts and exposes hardware and kernel metrics such as CPU, memory, disk and network statistics in Prometheus format. It is one of the most widely deployed official exporters, making it a common exporter type.

Why this answer

Node Exporter (A) is a canonical Prometheus exporter that runs on a host and exposes hardware and OS metrics such as CPU, memory, disk, filesystem, and network statistics on /metrics for Prometheus to scrape. Blackbox Exporter (D) is also a standard Prometheus exporter, but it probes external endpoints over HTTP, HTTPS, DNS, TCP, and ICMP and converts the results into Prometheus metrics, making it ideal for availability and latency monitoring. The other options are not established Prometheus exporter types: there is no standard "Log Exporter" (B) since logs are handled by Loki/Promtail rather than Prometheus, "Push Exporter" (C) is not a real exporter type because Prometheus uses the Pushgateway for push-based metrics rather than a push exporter, and "Trace Exporter" (E) relates to distributed tracing systems like OpenTelemetry/Jaeger, not Prometheus metrics collection.

Exam trap

PCA often tests the ability to distinguish official Prometheus exporters (Node, Blackbox) from non-existent or unrelated tools (Log, Push, Trace Exporters) that sound plausible but are not part of the Prometheus ecosystem.

54
MCQhard

An engineer observes a massive spike in Prometheus memory usage after introducing a new custom label that includes a unique user ID. Which observability concept is being violated?

A.Data retention policy
B.Metric saturation
C.Service discovery limits
D.High cardinality
AnswerD

Each unique user ID creates a separate time series, so memory grows with user count rather than staying bounded. Label values must have low cardinality; unbounded values like user IDs explode the index and memory footprint, which is exactly the spike observed.

Why this answer

High cardinality occurs when a label has a large number of unique values, such as a unique user ID, which creates a massive number of time series. This leads to increased memory usage, slower queries, and potential instability in Prometheus. The spike in memory usage directly indicates that the cardinality of the metric has exploded due to the new label.

Exam trap

PCA often tests the confusion between high cardinality and other observability concepts like retention or saturation, but the key giveaway is a label with unique values (e.g., user ID) causing memory spikes.

How to eliminate wrong answers

Option A is wrong because data retention policy governs how long data is stored, not the number of unique time series; it does not cause memory spikes from new labels. Option B is wrong because metric saturation refers to a metric reaching a maximum value or limit, not the proliferation of time series. Option C is wrong because service discovery limits pertain to the number of targets discovered, not the cardinality of labels within metrics.

55
MCQhard

A developer adds a 'user_id' label to an HTTP request counter. What is the operational risk?

A.High cardinality will consume excessive memory.
B.The query speed will increase.
C.Prometheus will reject the metric.
D.The metric will stop recording.
AnswerA

Labelling a counter by 'user_id' creates one time series per distinct user, so cardinality scales with your user base. Prometheus holds every active series in memory, and each unique label combination multiplies storage and index overhead, exhausting RAM and degrading queries. This directly satisfies the stem's operational risk: unbounded cardinality from a high-churn identifier.

Why this answer

Adding a 'user_id' label to an HTTP request counter creates a label with unbounded, per-user values. Each unique combination of label values produces a distinct time series in Prometheus, so a user_id label can generate thousands or millions of series. Prometheus holds all active series in memory (head block), so this high cardinality rapidly consumes RAM and can destabilize or crash the server.

Exam trap

The trap here is confusing high cardinality with metric rejection — candidates assume Prometheus enforces a cardinality limit and drops the metric, when in reality it accepts the data and silently consumes memory until the server fails.

How to eliminate wrong answers

Option B is wrong because high cardinality increases the number of series that must be indexed and scanned, which typically degrades query speed rather than improving it. Option C is wrong because Prometheus does not reject metrics based on cardinality; it accepts them and simply suffers the memory consequences. Option D is wrong because the metric continues to be recorded — the risk is resource exhaustion, not cessation of scraping.

56
Multi-Selectmedium

Which THREE of these are recommended practices for an observability strategy?

Select 3 answers
A.Maintain logs for granular incident analysis.
B.Alert on symptoms instead of causes.
C.Always set alert thresholds to zero.
D.Use metrics for everything.
E.Monitor the Four Golden Signals.
AnswersA, B, E

Retaining logs gives responders the granular, timestamped detail needed to reconstruct an incident's sequence and root cause. This satisfies the requirement for recommended observability practise by ensuring sufficient telemetry depth exists before an incident occurs, enabling precise analysis instead of relying on aggregated metrics alone.

Why this answer

Option A is correct because logs provide the high-cardinality, event-level detail needed for granular incident analysis and root-cause investigation, complementing the aggregate view from metrics and traces. Option B is correct because alerting on symptoms (user-visible impact such as latency or error rate) rather than internal causes reduces noise and false pages, since causes can vary while the symptom reliably indicates user pain. Option E is correct because the Four Golden Signals — latency, traffic, errors, and saturation — are a widely recommended Google SRE framework for monitoring request-driven systems and catching the most important failure modes.

Option C is not recommended because a zero threshold would fire alerts constantly on any nonzero value, producing alert fatigue rather than meaningful signal. Option D is not recommended because metrics are cheap and aggregatable but lose per-event context; logs and traces are still required for detailed debugging, so 'metrics for everything' is an overreach.

57
MCQmedium

What is the benefit of the 'service discovery' feature in Prometheus?

A.It improves query performance.
B.It simplifies management in dynamic environments.
C.It encrypts the data.
D.It reduces the storage size.
AnswerB

Prometheus service discovery queries platform APIs to automatically detect scrape targets as containers and instances appear or disappear, so configuration stays accurate without manual edits. This satisfies the stem's dynamic-environment requirement, where static target lists become stale immediately after scaling events.

Why this answer

Prometheus service discovery automatically detects and updates scrape targets from dynamic sources such as Kubernetes, EC2, Consul, or DNS. In environments where instances are constantly created and destroyed, this eliminates manual target configuration and keeps monitoring in sync with the actual infrastructure. The primary benefit is simplified management in dynamic environments.

Exam trap

The trap is conflating service discovery with performance or security benefits — candidates may pick query performance or encryption, but service discovery is purely about automating target detection and management in dynamic environments.

How to eliminate wrong answers

Option A is wrong because service discovery affects target identification and scraping, not query execution performance — query speed depends on storage, indexing, and query patterns. Option C is wrong because service discovery does not encrypt data; encryption is handled at the transport layer (TLS) or storage layer, not by discovery mechanisms. Option D is wrong because service discovery does not reduce storage size; it only determines which targets are scraped, and storage size depends on retention and series cardinality.

58
MCQmedium

Why are traces considered distinct from metrics in observability?

A.Traces are always numeric.
B.Traces track individual request lifecycles through services.
C.Traces are only for frontend applications.
D.Metrics replace traces.
AnswerB

Traces record the full path of a single request as it crosses service boundaries, capturing per-span timing, parent-child relationships and errors. This satisfies the stem's distinction from metrics, which are aggregated numeric measurements over time rather than individual request lifecycles.

Why this answer

Traces provide context on a single request's path through a distributed system, whereas metrics provide aggregated health status.

59
MCQeasy

An SRE team is transitioning from traditional logs to metrics for performance monitoring. Which scenario best justifies using metrics over logs?

A.Auditing user access attempts for compliance.
B.Tracking the request rate per second on a web server.
C.Storing the payload of a failed transaction for later inspection.
D.Recording the stack trace of a Java application crash.
AnswerB

Metrics are numeric time-series suited to aggregation and rate calculations, so request rate per second is computed cheaply and stored at low cardinality. Logs would require parsing each entry to derive the same count, making metrics the efficient choice for this high-volume, continuously changing measurement.

Why this answer

Metrics are numerical representations of data measured over time, making them efficient for time-series analysis and alerting, whereas logs are better for debugging specific events.

60
MCQeasy

What is the primary role of the 'Alertmanager'?

A.To manage and route alerts generated by Prometheus.
B.To store long-term metric data.
C.To scrape metrics from targets.
D.To visualize metrics in dashboards.
AnswerA

Alertmanager receives alerts pushed from Prometheus and handles deduplication, grouping, silencing and routing to receivers such as email or Slack. It satisfies the stem's routing requirement, sitting downstream of Prometheus rather than performing the metric evaluation itself.

Why this answer

Alertmanager is responsible for grouping, silencing, and routing alerts to external systems like PagerDuty or email.

61
Multi-Selecthard

Which THREE are true regarding the Prometheus TSDB?

Select 3 answers
A.It uses an inverted index for fast searching.
B.It stores data in blocks of time.
C.It uses a B-tree for all queries.
D.It is a relational database.
E.It maintains a Write Ahead Log (WAL).
AnswersA, B, E

Prometheus TSDB maintains an inverted index mapping label pairs to posting lists of series IDs, enabling rapid label-based lookups without scanning every series. This satisfies the requirement for fast searching across high-cardinality metrics, as queries resolve matching series directly from the index before reading chunks.

Why this answer

It uses blocks, WAL, and index files, and it is optimized for time-series data.

Ready to test yourself?

Try a timed practice session using only Observability Concepts questions.