Free Prometheus Certified Associate (PCA) Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Prometheus Certified Associate (PCA) practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1What is the primary purpose of metrics as an observability signal?
- A. To provide aggregate statistical information about a system
- B. To preserve the text of each individual application event
- C. To reconstruct the sequence of spans for one request
- D. To capture the complete payload of each network exchange
Answer: A
Explanation: The documentation states, "metrics are intended to provide statistical information in aggregate." Metrics summarize system behavior; individual event records, request paths, and packet payloads serve different purposes.
Reference: Metrics | OpenTelemetry — Metric instruments and aggregation
2Which Prometheus component stores the samples collected from instrumented jobs?
- A. The Alertmanager notification service
- B. The main Prometheus server
- C. The application's client library
- D. The Grafana dashboard service
Answer: B
Explanation: The component list identifies "the main Prometheus server" as the component "which scrapes and stores time series data". Client libraries expose instrumentation, Alertmanager handles alerts, and Grafana visualizes data.
Reference: Overview | Prometheus — Components — main Prometheus server
3Which selector returns only http_requests_total series whose job is exactly api and whose environment is exactly prod?
- A. http_requests_total{job="api",environment!="prod"}
- B. http_requests_total{job=~"api|worker",environment="prod"}
- C. http_requests_total{environment="prod",job="api"}
- D. http_requests_total{environment=~"prod|staging",job="api"}
Answer: C
Explanation: The selector documentation defines equality as "Select labels that are exactly equal to the provided string." Comma-separated matchers must all pass. Requiring environment equal to prod and job equal to api implements the requested conjunction. The other selectors exclude prod or permit extra jobs or environments through regex alternatives.
Reference: Querying basics | Prometheus — Time series selectors — Instant vector selectors — label matching
4What capability does a language-matched Prometheus client library provide when instrumenting an application's code?
- A. Discover remote scrape targets and schedule their server-side scrapes
- B. Define metric types and expose internal metrics through an HTTP endpoint
- C. Evaluate PromQL against retained history and persist recording-rule results
- D. Group firing alerts and deliver notifications through receiver integrations
Answer: B
Explanation: The documentation says client libraries "implement the Prometheus metric types" and let you "define and expose internal metrics via an HTTP endpoint". This is application instrumentation. Server-side discovery, historical PromQL evaluation, and Alertmanager notification delivery are different ecosystem responsibilities.
Reference: Client libraries | Prometheus — Client libraries — introduction and language selection
5A Grafana dashboard will query an existing Prometheus server. Which service URL belongs in its Prometheus data source configuration?
- A. The Alertmanager service URL
- B. The Pushgateway service URL
- C. The Prometheus server URL
- D. The Node Exporter service URL
Answer: C
Explanation: The integration guide instructs, "Set the appropriate Prometheus server URL". Grafana queries Prometheus for stored metrics; the notification service, push intermediary, and host exporter are different components.
Reference: Grafana | Prometheus — Creating a Prometheus data source
6Which metric instrument represents a total that accumulates as new events occur, such as the number of requests processed?
- A. Gauge
- B. Histogram
- C. Counter
- D. UpDownCounter
Answer: C
Explanation: The instrument list describes "Counter: A value that accumulates over time". A counter records increasing totals; a gauge records a current value, a histogram aggregates distributions, and an UpDownCounter also allows decreases.
Reference: Metrics | OpenTelemetry — Metric instruments — Counter
7A dashboard repeatedly executes an expensive PromQL expression. Which Prometheus mechanism can precompute the expression and store its result as new time series?
- A. A service-discovery configuration
- B. An Alertmanager notification template
- C. A target label-rewriting rule
- D. A recording rule
Answer: D
Explanation: The documentation states, "Recording rules allow you to precompute frequently needed or computationally expensive expressions and save their result as a new set of time series." Discovery and relabeling configure targets; notification templates format alerts rather than storing query results.
Reference: Defining recording rules | Prometheus — Recording rules
8Which environment label value matches the PromQL matcher environment=~"prod"?
- A. prod
- B. production
- C. preprod
- D. prod-east
9When Prometheus scrapes an application's client-library HTTP endpoint, what does the library send?
- A. The current state of the tracked metrics
- B. Only metric increments since the previous scrape
- C. A chronological log of every instrumented event
- D. Only metrics that exceeded an alert threshold
10In the Grafana Prometheus query editor's Custom legend field, which template substitutes each returned series' method and status label values?
- A. {{method}} - {{status}}
- B. ${method:raw} - ${status:raw}
- C. {{ $labels.method }} - {{ $labels.status }}
- D. ${__field.labels.method} - ${__field.labels.status}
Answer: A
Explanation: The Grafana query editor documentation states, "{{hostname}} is replaced with the value of the hostname label." The same Custom legend syntax substitutes method and status. The raw format applies to dashboard-variable interpolation, $labels is the Prometheus alert-template namespace, and __field.labels expressions belong to a panel field's Display name option rather than this query editor legend field.
Reference: Prometheus query editor | Grafana documentation — Query options — Legend — Custom
Topics in this practice bank
These topics describe the available practice for Prometheus Certified Associate (PCA). Review the examination outline and its sources for scope and allocation details.
Observability Concepts
- Metrics
- Understand logs and events
- Tracing and Spans
- Push vs Pull
- Service Discovery
- Basics of SLOs, SLAs, and SLIs
Prometheus Fundamentals
- System Architecture
- Configuration and Scraping
- Understanding Prometheus Limitations
- Data Model and Labels
- Exposition Format
PromQL
- Selecting Data
- Rates and Derivatives
- Aggregating over time
- Aggregating over dimensions
- Binary operators
- Histograms
- Timestamp Metrics
Instrumentation and Exporters
- Client Libraries
- Instrumentation
- Exporters
- Structuring and naming metrics
Alerting & Dashboarding
- Dashboarding basics
- Configuring Alerting rules
- Understand and Use Alertmanager
- Alerting basics (when, what, and why)
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view Prometheus Certified Associate (PCA) details.