Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation PCA Dumps 2026 with Free Practice Questions and Answers

Practise for the Prometheus Certified Associate exam with 15 original questions, each with an answer and explanation.

Topics: PromQL, Prometheus Fundamentals, Alerting & Dashboarding, Instrumentation And Exporters and 1 more.

Includes single answer, multiple answers, order list, drag and drop and dropdown. A new question is added every 15 days.

PCA Practice Set Details

Exam Code
PCA
Questions On This Page
15
Exam Topics Covered
5 of 5
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
60
Certification
Cloud & Containers Certifications
15 questions

Linux Foundation PCA Exam Questions and Answers by Topic

Observability Concepts

18% of the exam

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A financial service has a 99.9% monthly availability commitment in its customer SLA. The SRE team is defining an internal availability SLI and an error-budget policy. Requests returning approved business rejections should count as successful, while server errors and timeouts should count as unsuccessful. Which approach best aligns the SLI with the commitment?

Correct answer: B

A request-based SLI can encode the agreed eligibility and success rules, including approved business rejections, and its measurement window can be aligned with the commitment. The SLA is the external commitment; the SLO is the target used to manage service performance against it. Instance uptime can miss request-level failures, while treating every non-200 result as failure contradicts the stated business rule. Incident counts are not a proportion of successful eligible requests and cannot directly represent the percentage commitment.

Question 2

Added

Single Answer

A service team is deciding how to investigate intermittent latency across a request path that spans an API gateway, a payment service, and a database. Metrics show that latency is elevated but cannot identify which dependency contributed most. Logs are distributed across services, and the team can propagate a request context through the path. Which addition is most directly suited to locating the slow segment of an individual request?

Correct answer: A

Distributed traces represent a request as related spans across services and dependencies, allowing an engineer to see where an individual request spent time. A request ID label on metrics creates unbounded cardinality and still does not provide the detailed span timeline. Longer retention does not correlate separate logs without a shared identifier. Faster scraping samples aggregate metric state and cannot reconstruct the sequence or duration of operations within one request.

Prometheus Fundamentals

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 3

Added

Order List

An operations team is onboarding a new Prometheus scrape target in a restricted environment. The target exposes metrics on an approved endpoint, and the Prometheus server must scrape it using the existing configuration file. The team wants to make the change safely and verify collection before declaring the rollout complete. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Reload Prometheus so it applies the validated configuration.
  2. Check the target's state and scrape health in Prometheus.
  3. Validate the edited configuration with promtool check config.
  4. Add the target under the intended scrape job in the configuration.
Correct answer:
  1. Validate the edited configuration with promtool check config.
  2. Add the target under the intended scrape job in the configuration.
  3. Reload Prometheus so it applies the validated configuration.
  4. Check the target's state and scrape health in Prometheus.

The target must first be added to the appropriate scrape job. Validating the resulting file with promtool catches configuration errors before it is applied. Reloading makes Prometheus read the changed configuration, and checking the target state afterward confirms discovery and scraping are working. Reloading before validation risks applying a malformed configuration, while checking target health before the reload would only show the previous configuration's state.

Question 4

Added

Single Answer

A company scrapes short-lived batch workers that may finish in seconds. It cannot change the workers to remain running, and it wants successful jobs to be visible to Prometheus without opening inbound access to the worker network. The batch jobs are small and infrequent, and the team already operates a Pushgateway for this purpose. What is the best design?

Correct answer: C

The Pushgateway is intended for exposing metrics from short-lived batch jobs that cannot be scraped while running. Workers can push to it, and Prometheus continues to use its pull model by scraping the gateway. A shorter scrape interval cannot scrape a process that has already exited. Alertmanager handles alerts rather than metric ingestion or storage, and Prometheus does not provide a general-purpose remote write ingestion endpoint for workers to push samples into its local TSDB.

Question 5

Added

Single Answer

A Prometheus server is scraping a target that intermittently returns malformed metric data. The target remains reachable, but some scrapes fail, and operators need to distinguish target availability from ingestion failures while avoiding speculative changes to scrape intervals. Which Prometheus signal is the most direct first check for whether a scrape succeeded?

Correct answer: D

Prometheus sets up to 1 when the latest scrape of a target succeeds and to 0 when it fails, making it the direct per-target scrape-health signal. Scrape error details help distinguish malformed exposition from other failures. Prometheus process memory is not target-specific. An application counter may continue changing even when Prometheus cannot scrape it. TSDB samples appended is an aggregate ingestion signal and does not establish that every individual target was successfully scraped.

PromQL

28% of the exam

6 practice questions on this topicWhat this topic covers

Question 6

Added

Single Answer

A monitoring team operates a fleet of Prometheus servers that scrape a shared service. A dashboard needs to report the average CPU utilization across the fleet for each application, but each server may have a different number of instances. The metric `process_cpu_seconds_total` is a counter with `application`, `instance`, and `prometheus` labels. The team wants to avoid giving each Prometheus server equal weight and needs a query that reflects the mean utilization of individual instances over the last five minutes. Which query is best?

Correct answer: B

Averages the per-instance rates for each application, so every instance contributes equally regardless of which Prometheus server scraped it. The counter is converted to a per-second rate before aggregation, which also handles counter resets. Dividing a sum of rates by a count of raw counter series mixes rate and counter values and does not produce the requested mean. The `without (instance)` modifier is not valid in addition to `by (application)` on one aggregation expression. Grouping by both application and Prometheus produces separate results per server rather than one fleet-wide mean.

Question 7

Added

Single Answer

A payment service exposes `http_requests_total` with `service`, `route`, and `code` labels. A dashboard must show the per-second request rate for each service and route, combining all response codes. The service has low traffic, and the team wants a stable rate over a five-minute window. Which expression best meets the requirement while preserving the intended aggregation?

Correct answer: B

Applying rate to each counter series before aggregation handles counter resets correctly, and sum by (service, route) combines response codes while retaining the requested dimensions. Taking a rate after aggregating counters can hide individual resets. increase returns an estimated increase over the window, not a per-second rate. irate uses only the last two samples and is less stable for a low-traffic dashboard; without(code) may also retain other labels the requirement did not request.

Question 8

Added

Dropdown

A team needs the fraction of HTTP requests that returned 5xx responses over the last five minutes, grouped by service. Metrics are emitted only for response codes that have occurred, so the query must not accidentally discard a service with zero 5xx traffic when dividing. Select the correct value for each blank in the expression.

Choose the correct value for each blank.

sum by (service) (rate(http_requests_total{code=~"5.."}[5m])) / (rate(http_requests_total[5m]))
Correct answer:

sum by (service) (rate(http_requests_total{code=~"5.."}[5m])) / sum by (service) (rate(http_requests_total[5m]))

Summing numerator and denominator by service gives matching label sets for division and produces the per-service error fraction. Using sum without(service) removes the service dimension, so the result cannot represent a fraction for each service. max by(service) selects the largest individual series rather than counting all requests. For zero-error services to appear, the underlying metric data must provide a denominator series and the query's vector matching must preserve it; the numerator can be absent for a service, which PromQL does not automatically turn into zero.

Question 9

Added

Drag And Drop

A monitoring team is preparing queries for a dashboard and an alert. Match each requirement to the PromQL operation that directly meets it. Each operation is used once.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Convert a counter's samples into a per-second change over a range.
Find the largest value observed within a range for each series.
Combine series while retaining only the service label.
sum by (service)
max_over_time()
rate()
Correct answer:
  • Convert a counter's samples into a per-second change over a range. → rate()
  • Find the largest value observed within a range for each series. → max_over_time()
  • Combine series while retaining only the service label. → sum by (service)

rate() derives an average per-second increase from counter samples in a range. max_over_time() evaluates each series over the selected range and returns its maximum value. sum by (service) aggregates matching series and retains service as the grouping dimension. These operations serve different purposes: range aggregation does not replace counter-rate calculation, and dimensional aggregation does not compute changes over time.

Question 10

Added

Multiple Answers

An API exports a classic Prometheus histogram named `request_duration_seconds` with `le`, `service`, and `instance` labels. An SRE needs the 95th percentile latency per service over five minutes, combining observations from all instances. The team accepts the bucket-based estimate and must not average per-instance quantiles. Which two query properties are required? (Choose two.)

Correct answer: D, E

For a classic histogram, the bucket counters must be converted to rates over the requested window, then summed across instances while retaining service and le. Those aggregated bucket rates provide the cumulative distribution needed to estimate a quantile. Applying histogram_quantile to count series does not use bucket boundaries. Averaging instance quantiles is statistically invalid because quantiles are not additive. Although histogram_quantile is the required final operation, the two selected query properties establish the correct rate input and aggregation shape.

Question 11

Added

Order List

A query author is building a recording rule for a per-service request rate from a counter that may reset independently on different instances. The rule must aggregate instances while correctly handling resets. Arrange the query-building steps in the order that produces the required expression.

Drag the steps into the correct order, or use the arrows.

  1. Sum the resulting rates by service.
  2. Use the aggregated expression as the recording rule expression.
  3. Select the request counter series for the intended traffic.
  4. Apply rate over the chosen range to each series.
Correct answer:
  1. Select the request counter series for the intended traffic.
  2. Apply rate over the chosen range to each series.
  3. Sum the resulting rates by service.
  4. Use the aggregated expression as the recording rule expression.

The counter series must be selected first, then rate applied independently to each series so individual resets are detected. Aggregating the resulting rates by service combines instances without concealing a reset in one instance. The completed expression can then be placed in the recording rule. Summing counters before rate can mask independent resets, and recording the expression before defining its selection and operations would not produce the required result.

Instrumentation and Exporters

16% of the exam

2 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A Go service records the number of completed requests and the duration of each request. The library team wants to expose standard Prometheus metrics, avoid unbounded time series, and support aggregations across instances. Request paths can contain user IDs, so raw paths cannot be labels. Which instrumentation design is best?

Correct answer: A

A Counter represents a cumulative count of completed requests, while a Histogram exposes bucketed observations that can be aggregated across instances. Using the router's bounded route pattern avoids creating a time series for each user-specific URL. A Gauge is not the right representation for a monotonically accumulating completion count, and raw paths can cause cardinality growth. Summary quantiles generally cannot be meaningfully aggregated across instances. Request IDs create effectively unbounded label cardinality.

Question 13

Added

Single Answer

A legacy appliance cannot be modified to expose Prometheus metrics. It offers a vendor-supported status endpoint over HTTPS, and security policy forbids installing agents on the appliance. The monitoring team needs selected status values represented as Prometheus metrics, with the appliance remaining the data source and no changes to its software. Which approach is best?

Correct answer: C

An exporter bridges a system that does not natively expose Prometheus exposition data by collecting from its supported interface and presenting metrics for Prometheus to scrape. Direct scraping works only when the endpoint serves compatible metrics, which the scenario does not state. Adding instrumentation requires modifying the appliance, prohibited by the constraints. Alertmanager routes and groups alerts; it is not a collector or metrics translator.

Alerting & Dashboarding

18% of the exam

2 practice questions on this topicWhat this topic covers

Question 14

Added

Multiple Answers

A platform team routes alerts from several Prometheus servers through one Alertmanager cluster. During a database outage, each server fires a distinct alert for the same affected team and service; the on-call engineer receives a flood of nearly identical notifications. The team wants related alerts combined into one notification, while unrelated services must remain separately actionable. It also needs repeat notifications if an outage continues. Which two Alertmanager configuration choices best meet these requirements? (Choose two.)

Correct answer: C, D

Grouping by team and service combines alerts that share the operational ownership and affected service while keeping other services distinct. A nonzero repeat_interval controls reminders for a group that remains active. A zero group_wait sends immediately and can prevent related alerts arriving shortly afterward from joining the initial notification. The for field delays an alert becoming firing; it does not group alerts. Grouping by every label tends to split alerts rather than combine them.

Question 15

Added

Single Answer

A team has a Prometheus alert rule for high request latency. The rule fires briefly during deploys, but responders want notifications only when the condition remains true for ten minutes. They also need the alert to retain the measured service label for routing. What is the best configuration change?

Correct answer: C

The alert rule's for duration requires the expression to remain active for ten minutes before the alert transitions to firing. Retaining the service label allows Alertmanager routing and grouping to use it. group_wait delays a notification after an alert is already firing; it does not require the expression to stay true. A ten-minute scrape interval would reduce observation frequency rather than implement persistence. keep_firing_for controls how long an alert remains firing after its condition clears, not the initial pending period.

More Linux Foundation Practice Questions

Get the Full Linux Foundation PCA Dumps as PDF and Practice Test

15 questions are free on this page and the full set has 60. It comes as a PDF and an online practice test, with 90 days of free updates.