Here you can find all the free questions related with Linux Foundation Prometheus Certified Associate (PCA) exam. You can also find on this page links to recently updated premium files with which you can practice for actual Linux Foundation Prometheus Certified Associate Exam. These premium versions are provided as PCA exam practice tests, both as desktop software and browser based application, you can use whatever suits your style. Feel free to try the Prometheus Certified Associate Exam premium files for free, Good luck with your Linux Foundation Prometheus Certified Associate Exam.
Question No: 1
MultipleChoice
Given the metric prometheus_tsdb_lowest_timestamp_seconds, how do you know in which month the lowest timestamp of your Prometheus TSDB belongs?
Options
Answer DExplanation
The metric prometheus_tsdb_lowest_timestamp_seconds provides the oldest stored sample timestamp in Prometheus's local TSDB (in Unix epoch seconds). To determine the age or approximate date of this timestamp, you compare it with the current time (using time() in PromQL).
converts the difference between the current time and the oldest timestamp from seconds into days (1 day = 86,400 seconds). This gives the number of days since the earliest sample was stored, allowing you to infer the time range and approximate month manually.
The other options are invalid because PromQL does not support direct date formatting (format_date) or month() extraction functions.
Extracted and verified from Prometheus documentation -- TSDB Internal Metrics, Time Functions in PromQL, and Using time() for Relative Calculations.
Question No: 2
MultipleChoice
Which Prometheus component handles service discovery?
Options
Answer BExplanation
The Prometheus Server is responsible for service discovery, which identifies the list of targets to scrape. It integrates with multiple service discovery mechanisms such as Kubernetes, Consul, EC2, and static configurations.
This allows Prometheus to automatically adapt to dynamic environments without manual reconfiguration.
Question No: 3
MultipleChoice
When can you use the Grafana Heatmap panel?
Options
Answer BExplanation
The Grafana Heatmap panel is best suited for visualizing histogram metrics collected from Prometheus. Histograms provide bucketed data distributions (e.g., request durations, response sizes), and the heatmap effectively displays these as a two-dimensional density chart over time.
In Prometheus, histogram metrics are exposed as multiple time series with the _bucket suffix and the label le (less than or equal). Grafana interprets these buckets to create visual bands showing how frequently different value ranges occurred.
Counters, gauges, and info metrics do not have bucketed distributions, so a heatmap would not produce meaningful output for them.
Verified from Grafana documentation -- Heatmap Panel Overview, Visualizing Prometheus Histograms, and Prometheus documentation -- Understanding Histogram Buckets.
Question No: 4
MultipleChoice
Which of the following is an invalid @ modifier expression?
Options
Answer DExplanation
The @ modifier in PromQL allows querying data as it existed at a specific point in time rather than the evaluation time. It can be applied after a selector or an entire expression, but the syntax rules are strict.
go_goroutines @ start() Valid; queries value at the start of the evaluation range.
sum(http_requests_total{method='GET'}) @ 1609746000 Valid; applies the modifier after the full expression.
go_goroutines @ end() Valid; queries value at the end of the evaluation range.
sum(http_requests_total{method='GET'} @ 1609746000) Invalid, because the @ modifier cannot appear inside the selector braces; it must appear after the selector or aggregation expression.
This invalid placement violates PromQL's syntax grammar for subquery and modifier ordering.
Verified from Prometheus documentation -- PromQL @ Modifier Syntax, Evaluation Modifiers, and PromQL Expression Grammar sections.