Courseiva

Prometheus Certified Associate (PCA, CNCF/Linux Foundation) (PCA) (PCA) — Questions 226300

304 questions total · 5pages · All types, answers revealed

Page 3

Page 4 of 5

Page 5
226
Multi-Selecthard

Which THREE of the following are required to expose a new metric in an application?

Select 3 answers
A.Enable remote write
B.Configure Alertmanager
C.Register the metric
D.Expose an /metrics endpoint
E.Define a metric
AnswersC, D, E

Essential step.

Why this answer

To expose metrics, you need to define a collector, register it with a registry, and serve it via an HTTP endpoint.

227
Multi-Selectmedium

Which THREE of the following are valid metric types in Prometheus?

Select 3 answers
A.Gauge
B.Set
C.Counter
D.Histogram
E.Queue
AnswersA, C, D

Correct.

Why this answer

The four main metric types supported by Prometheus are Counter, Gauge, Histogram, and Summary.

228
Multi-Selectmedium

Which TWO of the following are valid ways to prevent alert flapping?

Select 2 answers
A.keep_firing_for
B.group_wait
C.alert_limit
D.for
E.group_interval
AnswersA, D

Extends the firing state to buffer against noise.

Why this answer

The 'for' duration and 'keep_firing_for' are both mechanisms to prevent alerts from toggling state too quickly.

229
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

Prometheus handles monotonic counter resets automatically.

Why this answer

A counter reset (going to 0) would produce a massive negative number if not handled. 'rate()' automatically accounts for this by assuming a reset occurred.

230
MCQhard

You want to monitor the status of a specific SSL certificate via blackbox_exporter. Which module is designed for this?

A.tcp_connect
B.ssl_check
C.http_2xx
D.cert_monitor
AnswerC

The http_2xx module is used to probe TLS certificates.

Why this answer

The http_2xx module, when configured with TLS settings, can check certificate expiry via the probe_ssl_earliest_cert_expiry metric.

231
MCQeasy

Which tool allows you to visualize Prometheus alerts directly in a web UI?

A.Node Exporter
B.Alertmanager UI
C.Pushgateway
D.Prometheus CLI
AnswerB

The Alertmanager UI specifically lists firing and inhibited alerts.

Why this answer

The Prometheus built-in web UI provides an 'Alerts' tab to view current alert statuses.

232
MCQeasy

Which regular expression matcher selects all time series where the status label begins with the digit 5?

A.http_requests_total{status=@"5*"}
B.http_requests_total{status=~"^5.*"}
C.http_requests_total{status=^"5"}
D.http_requests_total{status=~"5$"}
AnswerB

Correct. The regex ^5.* matches any string starting with 5.

Why this answer

The =~ operator combined with a regular expression starting with ^5 matches labels beginning with 5.

233
Multi-Selectmedium

Which TWO of the following statements about 'rate' vs 'irate' are correct?

Select 2 answers
A.irate() returns the average over the whole window.
B.rate() is better for alerting on slow-moving counters.
C.irate() is better for long-term trends.
D.irate() calculates the rate based on the last two points.
E.rate() only works on gauges.
AnswersB, D

rate() provides a smoother average over time.

Why this answer

rate is better for smooth graphs, irate is for high-precision local spikes.

234
MCQhard

How does Prometheus handle subqueries embedded within an instant query, such as rate(http_requests_total[5m])[30m:1m]?

A.It caches the inner query results in memory for 30 minutes.
B.It increases the global scrape interval to 1 minute for the next 30 minutes.
C.It runs the inner instant query at multiple evaluation timestamps over the specified range at the given resolution, returning a range vector.
D.It converts the range vector into a scalar through statistical interpolation.
AnswerC

Correct. Subqueries allow range vector functions to be applied over historical evaluated points.

Why this answer

A subquery evaluates an instant query expression over a given range with a specified resolution at multiple points in time, returning a range vector.

235
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

Primary function.

Why this answer

Visualization, dashboard templating, and alert integration are core Grafana features.

236
Multi-Selecthard

Which THREE built-in functions in PromQL are designed specifically to analyze changes over time for gauge metrics? (Choose three)

Select 3 answers
A.delta()
B.rate()
C.deriv()
D.increase()
E.predict_linear()
AnswersA, C, E

delta() calculates the difference between the first and last value of a gauge in a range vector.

Why this answer

Functions like delta(), deriv(), and predict_linear() (as well as idelta) operate on gauges over range vectors.

237
Multi-Selecthard

Which TWO of the following statements regarding PromQL subqueries are correct? (Choose two)

Select 2 answers
A.Subqueries execute faster than standard instant queries because they bypass the storage engine.
B.Subqueries allow instant vector queries to be passed as range vector inputs to functions like max_over_time().
C.Subqueries have syntax in the form 'expression[range:resolution]'.
D.Subqueries can only be executed against range vectors, never instant vectors.
E.The resolution parameter in a subquery is mandatory.
AnswersB, C

Subqueries bridge the gap by allowing instant query results to be fed into range functions like max_over_time().

Why this answer

Subqueries allow running an instant vector query over a historical time range with a specified resolution and lookback delta.

238
Multi-Selecthard

Which THREE actions are commonly performed during the 'relabeling' phase in Prometheus?

Select 3 answers
A.Mapping multiple labels into one.
B.Configuring the storage retention policy.
C.Dropping a metric based on a label value.
D.Replacing a label value with a regex match.
E.Increasing the memory of the Prometheus instance.
AnswersA, C, D

Used for normalization.

Why this answer

Replacing labels, dropping series, and mapping labels are standard relabeling actions.

239
MCQeasy

Which metric type is most appropriate for tracking the current total number of active user sessions?

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

Gauges track fluctuating values like current sessions.

Why this answer

Since the count of active sessions can rise and fall, a gauge is the correct metric type.

240
MCQmedium

You have a recording rule named 'job:node_cpu:avg_rate_5m'. Where is this metric stored once the rule is executed?

A.In the Prometheus TSDB
B.In the Alertmanager memory
C.In the Grafana database
D.In a local flat file
AnswerA

Recording rules result in new metrics being stored in the TSDB.

Why this answer

Recording rules store the result of the expression as a new time series in the Prometheus TSDB.

241
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

Common for fixed targets.

Why this answer

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

242
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

This returns the count increase.

Why this answer

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

243
MCQeasy

Which function would you use to find the maximum value of a gauge metric 'node_cpu_load' over the past 30 minutes?

A.rate(node_cpu_load[30m])
B.max(node_cpu_load[30m])
C.topk(1, node_cpu_load[30m])
D.max_over_time(node_cpu_load[30m])
AnswerD

max_over_time() correctly computes the maximum value over the specified range vector for each time series.

Why this answer

The max_over_time() function calculates the maximum value of all data points in the specified range vector for each time series.

244
Multi-Selecteasy

Which THREE of the following are common use cases for the node_exporter?

Select 3 answers
A.Tracking memory consumption.
B.Scraping application-specific business logic.
C.Monitoring CPU utilization.
D.Checking filesystem mount points and usage.
E.Executing SQL queries on a database.
AnswersA, C, D

node_exporter collects memory usage stats.

Why this answer

node_exporter is designed to expose hardware and OS-level metrics such as CPU usage, memory usage, and filesystem occupancy.

245
MCQmedium

A batch job runs for only 30 seconds every hour. How should you expose these metrics to Prometheus?

A.Use the Pushgateway
B.Use an exporter sidecar
C.Increase scrape interval to 1 hour
D.Add a scrape_config for the batch job
AnswerA

The Pushgateway allows transient jobs to push metrics to a persistent location.

Why this answer

The Pushgateway is designed specifically for short-lived jobs that cannot be scraped directly.

246
MCQmedium

You need to calculate the 99th percentile HTTP request latency from a Prometheus histogram named http_request_duration_seconds. Which function is correct?

A.rate(histogram_quantile(0.99, http_request_duration_seconds_bucket)[5m])
B.quantile_over_time(0.99, http_request_duration_seconds[5m])
C.histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))
D.histogram_quantile(http_request_duration_seconds_bucket[5m], 0.99)
AnswerC

Correct. It takes the quantile, a rate of the bucket metric, and computes the value.

Why this answer

The histogram_quantile() function calculates the $\phi$-quantile from bucket time series of a histogram.

247
MCQmedium

You are seeing 'Alerting rule evaluation error' in your logs. What is the most likely cause?

A.Alertmanager is down
B.Too many dashboards
C.Invalid PromQL in the expression
D.Prometheus is out of disk space
AnswerC

Syntax errors in the query expression prevent the rule from evaluating.

Why this answer

Syntactic errors in the PromQL query within an alerting rule will cause evaluation failures.

248
MCQeasy

What is the purpose of the instant vector selector syntax http_requests_total{job="api-server"}?

A.It aggregates all API server requests into a single sum.
B.It triggers an alert if the job is down.
C.It selects historical data points spanning the last hour for the matching series.
D.It selects current values of time series matching the metric name and label filter.
AnswerD

Correct. It filters instant samples based on metric name and label matchers.

Why this answer

It selects the current value of all time series for the metric http_requests_total that have the label job set to api-server.

249
MCQmedium

Which function is best suited for identifying the 'top 5' instances with the highest value for a specific metric?

A.sort_desc()
B.max_over_time()
C.topk(5, metric)
D.limit_rate(5, metric)
AnswerC

topk returns the top N elements.

Why this answer

topk() is the designated function for returning the N largest samples from an input vector.

250
MCQmedium

What is the impact of naming a metric starting with an underscore?

A.Automatic aggregation
B.Reserved for internal use
C.Performance loss
D.Syntax error
AnswerB

These names are reserved by the system.

Why this answer

Metric names starting with underscores are reserved for internal use by Prometheus and should be avoided for user-defined metrics.

251
MCQeasy

Which operator has higher precedence in PromQL: exponential (^), multiplication (*), or addition (+)?

A.Addition (+)
B.All arithmetic operators share equal precedence.
C.Multiplication (*)
D.Exponentiation (^)
AnswerD

Correct. Exponentiation has the highest operator precedence.

Why this answer

Exponentiation has the highest precedence in PromQL, followed by multiplication/division, and then addition/subtraction.

252
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

Standard host monitoring.

Why this answer

Node Exporter and Blackbox Exporter are the most common official ones.

253
MCQhard

An operator needs to find the rate of change of a counter using deriv(). Why is this considered a bad practice in Prometheus?

A.deriv() does not account for counter resets, causing massive negative drops when counters reset.
B.deriv() automatically multiplies output by an undocumented scaling factor.
C.deriv() requires native histograms, which are incompatible with standard counters.
D.deriv() only works with scalar values and rejects time series vectors.
AnswerA

Correct. deriv() treats counters as gauges and fails on resets.

Why this answer

deriv() is designed for linear regression on gauge metrics over range vectors and does not handle counter resets, leading to incorrect downward spikes when counters reset.

254
MCQmedium

Which component allows Prometheus to be scaled horizontally for high availability?

A.Using a Load Balancer
B.Pushgateway
C.Prometheus Operator
D.Running identical instances in parallel
AnswerD

Running multiple identical Prometheus servers is the standard way to achieve HA.

Why this answer

Prometheus instances are typically run in parallel to provide HA; there is no single 'scaling' component.

255
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

Including highly unique values like user IDs in labels creates excessive time series, causing high memory usage.

Why this answer

High cardinality occurs when a metric label has an unbounded number of unique values, which causes Prometheus to create a unique time series for every combination, leading to memory exhaustion.

256
MCQmedium

When instrumenting an application, why is it recommended to use a fixed set of label names?

A.To increase resolution
B.For better formatting
C.To avoid cardinality explosion
D.To simplify coding
AnswerC

Label names should be static to keep the number of series manageable.

Why this answer

Dynamically changing label names creates new time series, which can lead to cardinality explosion and storage issues.

257
MCQmedium

A developer wants to expose a metric that represents the current memory usage of a process. Which type is most appropriate?

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

Gauges are perfect for values that fluctuate over time.

Why this answer

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

258
MCQhard

You observe data gaps in your Prometheus graph after increasing the scrape interval. What is the most likely cause?

A.TSDB block corruption
B.Stale markers not being processed
C.The scrape_timeout is shorter than the time taken to fetch metrics
D.Too many labels on the metric
AnswerC

If the scrape takes longer than the timeout, the scrape fails, resulting in gaps.

Why this answer

If the scrape interval is too long, the 'scrape_duration' may exceed the interval or cause stale data handling issues.

259
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

Each user_id will create a separate time series.

Why this answer

Adding a high-cardinality dimension like 'user_id' can explode the number of time series created, crashing the TSDB.

260
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

Logs provide the 'why'.

Why this answer

Alerting on symptoms, monitoring the Golden Signals, and keeping logs for detailed debugging are best practices.

261
MCQmedium

Which action should be avoided when creating labels for custom metrics?

A.Using static labels
B.Adding job labels
C.Adding instance labels
D.Using high-cardinality labels
AnswerD

High-cardinality labels cause excessive memory usage and performance degradation.

Why this answer

Adding high-cardinality data (like user IDs or unique request IDs) to labels causes an explosion in the number of time series, which can crash Prometheus.

262
Multi-Selectmedium

Which TWO of the following are valid data types in Prometheus?

Select 2 answers
A.List
B.Gauge
C.Counter
D.Set
E.Boolean
AnswersB, C

Standard type.

Why this answer

Prometheus supports Gauges and Counters as primary metric types.

263
MCQmedium

Why would you choose to create a recording rule for a complex PromQL query?

A.To increase metric resolution
B.To bypass authentication
C.To reduce dashboard query latency
D.To enable cross-server alerting
AnswerC

Recording rules improve performance for expensive queries.

Why this answer

Recording rules pre-calculate complex queries, making dashboards load faster by querying the pre-computed series instead of re-calculating the entire expression.

264
Multi-Selectmedium

Which TWO of the following can be configured globally?

Select 2 answers
A.alertmanager_host
B.storage_path
C.scrape_interval
D.evaluation_interval
E.target_labels
AnswersC, D

Global default.

Why this answer

Global configuration includes scrape interval and evaluation interval.

265
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

Auto-scaling environments require dynamic discovery.

Why this answer

It automatically updates the list of targets to scrape, eliminating manual updates when infrastructure scales.

266
MCQmedium

You need to expose metrics from a legacy application that only logs to a file. What should you do?

A.Use the node_exporter textfile collector
B.None of the above
C.Use a blackbox exporter
D.Use Pushgateway
E.Use a custom exporter
AnswerA

This collector reads metrics from files on disk.

Why this answer

The node_exporter textfile collector is designed to read metrics from a specific directory where you can drop files containing Prometheus-formatted data.

267
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

This is the fundamental definition of distributed tracing.

Why this answer

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

268
MCQeasy

A developer wants to track the total number of requests received by a web service. Which metric type is most appropriate for this requirement?

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

Counters are the correct metric type for tracking total increments like request counts.

Why this answer

Counters are cumulative metrics that represent a single monotonically increasing counter whose value can only increase or be reset to zero on restart. This is ideal for request counts.

269
MCQmedium

When using the Pushgateway, what happens if you push a metric with the same name and labels as an existing one?

A.It overwrites the old value
B.It creates a new series
C.It rejects the push
D.It adds to the existing value
AnswerA

Pushgateway updates the metric group based on the provided set.

Why this answer

The Pushgateway overwrites the existing metric with the new value provided in the push request.

270
Multi-Selectmedium

Which THREE of the following are valid approaches to instrumenting an application?

Select 3 answers
A.Directly writing to Prometheus storage
B.Implementing a custom HTTP exporter
C.Using SQL queries to generate metrics
D.Using Prometheus client libraries
E.Using Pushgateway for short-lived jobs
AnswersB, D, E

Correct.

Why this answer

Common approaches are using official libraries, custom HTTP exporters, or batch job pushing.

271
MCQmedium

Which operator has the highest precedence in PromQL?

A.Logical OR (or)
B.Addition (+)
C.Equality (==)
D.Exponentiation (^)
AnswerD

Exponentiation is the highest precedence operator in PromQL.

Why this answer

PromQL operator precedence follows standard mathematical rules: ^ > *, /, %, +, -.

272
MCQmedium

You are creating a recording rule to calculate the rate of requests over 5 minutes. Why would you prefer a recording rule over a direct dashboard query?

A.To reduce query latency on dashboards
B.To bypass the retention settings of Prometheus
C.To increase the resolution of the data
D.To automatically send alerts to PagerDuty
AnswerA

Precomputing expensive queries improves dashboard performance significantly.

Why this answer

Recording rules precompute expensive queries, reducing the load on Prometheus and speeding up dashboard loading times.

273
MCQeasy

What is the default port used by node_exporter?

A.9115
B.9090
C.8080
D.9100
AnswerD

9100 is the registered default port for node_exporter.

Why this answer

The standard Prometheus convention for node_exporter is port 9100.

274
MCQmedium

When configuring Alertmanager to send notifications to Slack, which block defines the routing tree?

A.receivers
B.inhibit_rules
C.route
D.global
AnswerC

The route block is the root of the alerting decision tree.

Why this answer

The 'route' block defines the top-level tree for incoming alerts.

275
MCQhard

You have a metric that is a gauge and fluctuates. What happens if you use the 'rate()' function on a gauge?

A.It throws an error during query evaluation
B.It calculates the average change
C.It works normally
D.It calculates the derivative
AnswerA

The rate() function requires a counter and will error on gauges.

Why this answer

rate() is specifically designed for counters; it will not behave as expected on gauges and usually returns an error or empty result.

276
MCQeasy

An operator needs to query the current, un-extrapolated rate of increase per second over the last 5 minutes for a counter metric named http_requests_total. Which function should they use?

A.increase(http_requests_total[5m])
B.irate(http_requests_total[5m])
C.rate(http_requests_total[5m])
D.delta(http_requests_total[5m])
AnswerB

Correct because irate calculates the per-second instant rate based on the last two points.

Why this answer

The irate() function calculates the per-second rate of increase of a time series based on the last two data points in the specified range window, making it ideal for volatile, high-frequency counters.

277
MCQmedium

Why are metric names required to follow a specific character set (e.g., alphanumeric and colons)?

A.For compatibility with PromQL
B.For faster scraping
C.To save disk space
D.To prevent duplicate metrics
AnswerA

The language syntax requires strictly formatted names.

Why this answer

Prometheus metric names must match a regex to ensure they are compatible with the query language and internal storage format.

278
MCQmedium

What is the purpose of the 'keep_firing_for' field in an alerting rule?

A.To delay the initial alert
B.To repeat the alert every X minutes
C.To log the alert to disk
D.To prevent alert flapping
AnswerD

It extends the firing state to smooth out minor fluctuations.

Why this answer

It keeps an alert in the firing state for a specified duration after the underlying expression is no longer true, which helps prevent flapping.

279
Multi-Selecthard

Which THREE factors influence Prometheus memory usage?

Select 3 answers
A.Number of alerts
B.Number of dashboards
C.WAL size
D.Number of active time series
E.Scrape interval
AnswersA, C, D

Alert evaluation consumes memory.

Why this answer

Memory is consumed by the number of series, the size of the WAL, and the number of active alerts.

280
MCQeasy

Which file format does Prometheus use for its main configuration?

A.XML
B.JSON
C.TOML
D.YAML
AnswerD

Prometheus uses YAML for its primary configuration file.

Why this answer

Prometheus configuration is strictly defined in YAML format.

281
MCQmedium

Which metric type is best for reporting the number of requests received by a service?

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

Counters track cumulative events.

Why this answer

Counters are monotonic; they only go up, which is perfect for request counts.

282
MCQeasy

What is the result of applying a range selector like [5m] to a gauge metric?

A.A scalar value representing the sum.
B.A range vector containing all data points from the last 5 minutes.
C.An instant vector of the average over 5 minutes.
D.An error, because gauges are not time-series.
AnswerB

Range vectors capture the history of samples for each series.

Why this answer

A range selector converts an instant vector into a range vector, containing all samples in that window.

283
Multi-Selecthard

Which THREE labels are often considered part of the default Prometheus ecosystem metrics?

Select 3 answers
A.group
B.le
C.owner
D.job
E.instance
AnswersB, D, E

Standard for histograms.

Why this answer

While 'job' and 'instance' are standard, 'group' is not a standard automatic label.

284
MCQmedium

An operator writes the query sum(rate(http_requests_total[5m])) without any aggregation clauses. What is the output format?

A.A range vector spanning 5 minutes.
B.An instant vector containing a single element with no labels.
C.An instant vector preserving all original metric labels.
D.A scalar value representing the exact floating-point result.
AnswerB

Correct. Global aggregation drops all labels and returns a single time series.

Why this answer

Aggregations without a by or without clause aggregate all time series into a single global vector with no labels.

285
MCQmedium

When performing a vector-to-vector binary operation between two instant vectors of different label sets, which modifier allows matching on a subset of common labels?

A.group_left(...)
B.ignoring(...)
C.matching(...)
D.on(...)
AnswerD

Correct. The 'on' modifier restricts matching to the listed labels.

Why this answer

The on modifier restricts vector matching to a specified list of labels.

286
MCQeasy

Which annotation is commonly used to provide a human-readable description in an alert?

A.description
B.severity
C.instance
D.job
AnswerA

The 'description' annotation is used to provide details about the alert.

Why this answer

The 'summary' or 'description' annotations are standard practices for providing context in alert notifications.

287
Multi-Selecthard

Which THREE of the following are components of a Prometheus alert state?

Select 3 answers
A.muted
B.inactive
C.firing
D.pending
E.sleeping
AnswersB, C, D

Normal state.

Why this answer

Alerts transition through inactive, pending, and firing states.

288
MCQmedium

You need to ensure that an alert remains 'firing' for 5 minutes before the Alertmanager is notified. Which field in the Prometheus alerting rule should you configure?

A.pending_duration
B.for
C.delay
D.hold_time
AnswerB

The 'for' field allows a duration to be specified before an alert is considered firing.

Why this answer

The 'for' field in a Prometheus alerting rule specifies the duration for which a condition must be true before the alert transitions from 'pending' to 'firing'.

289
MCQmedium

An engineer needs to determine the total absolute increase in disk space consumed over the last 3 hours using a gauge metric node_disk_bytes_used. Which function is appropriate?

A.deriv(node_disk_bytes_used[3h])
B.increase(node_disk_bytes_used[3h])
C.rate(node_disk_bytes_used[3h])
D.delta(node_disk_bytes_used[3h])
AnswerD

Correct. delta calculates the difference between start and end values of a range vector for gauges.

Why this answer

The increase() function is designed for counters, but delta() calculates the difference between the first and last value of a range vector, making it suitable for gauges.

290
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 designed for calculating rates and aggregates over time.

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.

291
Multi-Selecthard

Which THREE of the following are valid label matchers?

Select 3 answers
A.>>
B.==
C.!~
D.=~
E.!=
AnswersC, D, E

Regex not match matcher.

Why this answer

Prometheus supports =, !=, =~, and !~.

292
MCQhard

You need to prevent an alert from firing if a maintenance window is active. How should you approach this in Alertmanager?

A.Delete the alerting rule
B.Modify the routing tree
C.Use a Silence
D.Add a 'skip' label to the rule
AnswerC

Silences allow you to mute specific alerts based on label matchers for a set time.

Why this answer

Silences are the standard way to prevent specific alerts from firing during a known maintenance period.

293
Multi-Selecthard

Which THREE of the following are valid Prometheus TSDB file types?

Select 3 answers
A.chunks
B.sql
C.index
D.json
E.wal
AnswersA, C, E

Stores compressed time series data.

Why this answer

The TSDB architecture includes chunks, index, and WAL files.

294
MCQeasy

What is the purpose of the 'up' metric?

A.To show system uptime
B.To measure request latency
C.To track CPU usage
D.To indicate if a target is reachable
AnswerD

The 'up' metric reflects scrape success status.

Why this answer

The 'up' metric is 1 if the target was successfully scraped and 0 otherwise.

295
MCQmedium

You have a recording rule that references a metric that doesn't exist. What is the impact?

A.Prometheus logs a critical error
B.The rule evaluation results in no data
C.The entire server crashes
D.The rule is automatically disabled
AnswerB

If the expression finds no series, it simply does not create a new metric.

Why this answer

The recording rule will be evaluated, but because the expression returns no data, no new time series will be created for that rule.

296
MCQhard

When executing a subquery in PromQL, such as 'max_over_time(rate(http_request_total[5m])[30m:1m])', what does the resolution parameter ('1m') specify?

A.The smoothing factor applied to eliminate high-frequency noise.
B.The time-to-live for cached subquery results in Prometheus storage.
C.The evaluation step size at which the inner expression is run across the subquery window.
D.The minimum scrape interval of the target exporter.
AnswerC

The step parameter defines the resolution at which the inner expression is evaluated over the historical window.

Why this answer

The resolution inside subquery brackets specifies the evaluation step size at which the inner expression is evaluated within the subquery range.

297
MCQmedium

When implementing a custom exporter, what format must the output follow to be correctly scraped by Prometheus?

A.JSON
B.XML
C.Prometheus Text Format
D.Binary Protobuf
AnswerC

The Prometheus text exposition format is the standard for custom exporters.

Why this answer

Prometheus requires a text-based format where each metric is represented by lines, including name, labels, and values.

298
Multi-Selectmedium

Which TWO of the following are valid Alertmanager configuration blocks?

Select 2 answers
A.route
B.receivers
C.scrape_configs
D.targets
E.rules
AnswersA, B

Defines the alerting tree.

Why this answer

Alertmanager config includes global settings, route definitions, and receivers.

299
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 handles the alert lifecycle.

Why this answer

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

300
MCQmedium

You are monitoring server hardware metrics using node_exporter. You observe that the metrics are not showing up in Prometheus. Which initial troubleshooting step is most effective?

A.Verify node_exporter is listening on the expected port and accessible.
B.Increase the scrape interval in the Prometheus configuration.
C.Disable all collectors in node_exporter to reduce overhead.
D.Check if the Prometheus server is running in high availability mode.
AnswerA

Connectivity to the exporter endpoint is the first requirement for successful scraping.

Why this answer

The node_exporter must be running and listening on the expected port (9100 by default) for the Prometheus server to scrape it. Verifying the port ensures the endpoint is reachable.

Page 3

Page 4 of 5

Page 5

All pages