Courseiva

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

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

Page 2

Page 3 of 5

Page 4
151
MCQeasy

What is the default value for the scrape interval?

A.1m
B.10s
C.30s
D.5m
AnswerA

The global default scrape interval is 1 minute.

Why this answer

The default scrape interval in Prometheus is 1 minute.

152
MCQmedium

You need to monitor the availability of a specific web endpoint from external locations using blackbox_exporter. What is the primary purpose of the 'module' configuration in blackbox_exporter?

A.To specify the IP address of the target server.
B.To manage the authentication credentials for the exporter process.
C.To define the protocol-specific behavior and parameters for the probe.
D.To automatically register the exporter with the Prometheus server.
AnswerC

Modules encapsulate configuration settings like timeouts and HTTP matchers for specific probes.

Why this answer

The module defines the protocol (e.g., http, tcp, dns) and specific parameters (e.g., timeout, valid status codes) for a probe.

153
Multi-Selecteasy

Which TWO of the following are valid components of an Alertmanager configuration file?

Select 2 answers
A.receivers
B.storage_path
C.global_variables
D.scrape_configs
E.route
AnswersA, E

Receivers define where alerts are sent.

Why this answer

A standard Alertmanager config file requires 'route' (the routing tree) and 'receivers' (the notification targets).

154
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

This is their key feature.

Why this answer

Summaries are pre-calculated at the client side and provide quantiles.

155
Multi-Selectmedium

Which TWO of the following are core responsibilities of the Prometheus server?

Select 2 answers
A.Sending SMS alerts
B.Hosting the dashboard UI
C.Evaluating rules
D.Managing user auth
E.Scraping metrics
AnswersC, E

The server processes recording and alerting rules.

Why this answer

Prometheus primarily scrapes metrics and evaluates rules.

156
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

That is the definition of pull.

Why this answer

Prometheus controls the scrape and can detect target downtime.

157
Multi-Selectmedium

Which THREE aggregation operators in PromQL support the 'by' and 'without' clause modifiers? (Choose three)

Select 3 answers
A.sum
B.histogram_quantile
C.avg
D.label_replace
E.count
AnswersA, C, E

sum supports grouping via 'by' and 'without'.

Why this answer

Most PromQL aggregators support grouping clauses. Examples include sum, avg, min, max, count, stddev, stdvar, bottomk, topk, quantile.

158
MCQmedium

What is the purpose of the 'instance' label in Prometheus?

A.To filter alerts
B.To identify the user
C.To identify the target
D.To identify the job
AnswerC

It uniquely identifies the source of the scrape.

Why this answer

It is an automatically added label that identifies the target (host:port) that the metric was scraped from.

159
MCQeasy

Which PromQL function is specifically designed to calculate the per-second average rate of increase of a time series over a given range vector?

A.deriv()
B.irate()
C.increase()
D.rate()
AnswerD

rate() calculates the per-second average rate of increase of counter time series.

Why this answer

The rate() function is designed for counters to calculate the per-second average rate of increase, handling counter resets automatically.

160
MCQeasy

Where do you define the scrape interval for a specific target?

A.global section
B.remote_write section
C.alerting section
D.scrape_configs section
AnswerD

scrape_configs allows per-job interval configuration.

Why this answer

The scrape_interval can be defined within the scrape_config for that specific job.

161
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

Reduces the number of individual series.

Why this answer

Dropping labels, aggregating metrics, and limiting metric frequency are standard ways to reduce cardinality.

162
MCQhard

When using 'irate', what is the impact of choosing a range vector that is too small (e.g., [10s])?

A.It captures high-frequency spikes but can be volatile.
B.It returns an error if no data points are found.
C.The result becomes a scalar.
D.The value is capped at 1.
AnswerA

irate is sensitive to small fluctuations between the two most recent points.

Why this answer

irate only looks at the last two data points in the range; if the range is too small, it might miss changes.

163
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

This is the correct function for quantiles.

Why this answer

The 'histogram_quantile' function is required to calculate quantiles from bucketed histogram data.

164
MCQmedium

Which TSDB component is responsible for ensuring data durability if the server crashes?

A.Tombstone file
B.WAL (Write-Ahead Log)
C.Head block
D.Index file
AnswerB

The WAL ensures that data in memory can be recovered after a crash.

Why this answer

The Write-Ahead Log (WAL) records incoming samples before they are committed to blocks.

165
MCQhard

When evaluating a rule with offset, such as http_requests_total offset 1h, what exact time does Prometheus query?

A.It fetches data starting 1 hour in the future.
B.It calculates the moving average over the past 1 hour.
C.It delays rule evaluation by 1 hour to wait for late-arriving data.
D.It evaluates the query at the evaluation timestamp minus 1 hour.
AnswerD

Correct. offset shifts the evaluation window into the past.

Why this answer

The offset modifier shifts the evaluation time backward by the specified duration relative to the evaluation timestamp.

166
MCQmedium

You have a Prometheus alerting rule that triggers too frequently during flapping states. Which feature should you use to prevent this without silencing the alert entirely?

A.The 'resolve_timeout' parameter
B.The 'for' field
C.The 'group_wait' parameter
D.The 'inhibit_rules' block
AnswerB

Setting a 'for' duration ensures the condition must persist before the alert fires.

Why this answer

The 'for' field in an alerting rule allows you to specify a duration before the alert transitions from 'pending' to 'firing', which filters out short-lived spikes.

167
Multi-Selectmedium

Which TWO of the following are valid ways to modify or add labels to time series in PromQL? (Choose two)

Select 2 answers
A.label_replace()
B.label_join()
C.label_update()
D.label_drop()
E.label_add()
AnswersA, B

label_replace allows matching and replacing regex patterns in label values.

Why this answer

PromQL provides label_replace and label_join to modify and construct labels dynamically.

168
MCQhard

You want to find the maximum value of a gauge metric across all instances over a 1-hour sliding window. Which function accomplishes this?

A.max(node_memory_usage_bytes[1h])
B.max_over_time(node_memory_usage_bytes[1h])
C.topk(1, node_memory_usage_bytes[1h])
D.max_with_range(node_memory_usage_bytes, 1h)
AnswerB

Correct. max_over_time finds the maximum value across the range vector.

Why this answer

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

169
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

Gauge metric.

Why this answer

CPU percentage and total request count are classic metrics.

170
MCQeasy

Which component is responsible for executing queries written in PromQL?

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

Prometheus parses and executes the query.

Why this answer

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

171
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

Each series takes memory.

Why this answer

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

172
MCQmedium

An administrator wants to aggregate CPU usage across all nodes, keeping the instance label while summing the values. Which aggregation clause should be used?

A.sum(node_cpu_seconds_total) keeping (instance)
B.sum by (instance) (node_cpu_seconds_total)
C.sum(node_cpu_seconds_total) group by (instance)
D.sum without (instance) (node_cpu_seconds_total)
AnswerB

Correct. The 'by' clause keeps the specified list of labels and drops all others.

Why this answer

The by clause specifies the labels that should be preserved in the aggregated result vector.

173
MCQmedium

You want to find the top 3 jobs with the highest CPU usage using the metric 'process_cpu_seconds_total'. Which PromQL query structure is correct?

A.topk(3, rate(process_cpu_seconds_total[5m]))
B.bottomk(3, rate(process_cpu_seconds_total[5m]))
C.topk(3, process_cpu_seconds_total[5m])
D.topk(rate(process_cpu_seconds_total[5m]), 3)
AnswerA

topk correctly takes k=3 and an instant vector derived from rate().

Why this answer

The topk() function takes an integer 'k' and an instant vector (typically wrapped in rate()), returning the top k time series with the highest values.

174
MCQmedium

When evaluating a histogram metric, what does the special pseudo-label le represent in bucket time series?

A.The upper bound of the cumulative histogram bucket.
B.The linear extrapolation factor for summary metrics.
C.The logging event identifier for tracing.
D.The exact latency error margin of the measurement.
AnswerA

Correct. 'le' stands for less than or equal to, defining bucket boundaries.

Why this answer

The le (less than or equal to) label represents the upper bound of a histogram bucket.

175
MCQmedium

Which aggregation operator would you use to calculate the total sum of a metric across all instances?

A.sum()
B.avg_over_time()
C.total()
D.count()
AnswerA

sum() aggregates values across all series.

Why this answer

sum() is the standard operator for calculating totals across dimensions.

176
MCQeasy

What is the purpose of the 'offset' modifier in a PromQL query?

A.To remove specific label dimensions.
B.To filter out noise from the last 5 minutes.
C.To change the time range of a query to a point in the past.
D.To increase the precision of a rate calculation.
AnswerC

Offset shifts the time window for the instant or range vector.

Why this answer

The 'offset' modifier allows querying data from the past relative to the current time.

177
MCQeasy

Which PromQL aggregator should be used to count the total number of active time series matching a selector?

A.count(up)
B.sum(up)
C.len(up)
D.total(up)
AnswerA

Correct. count returns the number of series in the vector.

Why this answer

The count operator counts the number of time series in an instant vector.

178
MCQhard

What is the difference between a Histogram and a Summary?

A.Histograms use buckets for quantile estimation
B.Histograms are computed on the client
C.Summaries are computed on the server
D.Summaries cannot be aggregated
AnswerA

Histograms aggregate counts into predefined buckets.

Why this answer

Histograms provide aggregated quantiles on the server side via buckets, while Summaries calculate quantiles on the client side.

179
MCQhard

You have a recording rule that fails to evaluate because of a 'labels conflict'. What is the most likely cause?

A.The aggregation results in duplicate label sets
B.The rule file has invalid YAML indentation
C.The evaluation interval is too low
D.The metric name is already in use
AnswerA

Prometheus requires unique labels for each time series; conflicts occur if the result isn't unique.

Why this answer

A label conflict occurs when the recording rule tries to create a metric with labels that are already present or restricted, or when the aggregation produces duplicate label sets.

180
MCQhard

When setting up Alertmanager, what happens if you have no route defined for an alert?

A.The alert triggers an error
B.The alert is sent to the root route
C.The alert is sent to all receivers
D.The alert is dropped
AnswerB

The root route acts as the default catch-all.

Why this answer

If an alert matches no specific route, it will fall back to the root route of the configuration tree.

181
MCQhard

When calculating the 95th percentile from a histogram, why is histogram_quantile(0.95, sum(rate(http_duration_seconds_bucket[5m])) by (le)) the recommended pattern?

A.The 0.95 argument requires the 'le' label to be removed.
B.Aggregating by 'le' keeps the bucket boundaries intact for the quantile calculation.
C.The rate function cannot be used inside histogram_quantile.
D.It is faster than calculating the quantile per instance.
AnswerB

Summing by the 'le' label merges distributions while preserving the necessary bucket structure.

Why this answer

Aggregation must occur before the quantile calculation to ensure all buckets are summed across labels.

182
MCQhard

What is the purpose of the 'le' label in a Histogram?

A.Latency estimate
B.Less than or equal to
C.Logarithmic exponent
D.Last entry
AnswerB

It represents the bucket threshold.

Why this answer

The 'le' label stands for 'less than or equal to' and defines the upper bound of the histogram bucket.

183
Multi-Selecthard

Which THREE of the following are valid Alertmanager grouping parameters?

Select 3 answers
A.alert_timeout
B.group_by
C.group_interval
D.group_wait
E.resolve_delay
AnswersB, C, D

Defines the labels to group by.

Why this answer

Alertmanager grouping is configured via 'group_by', 'group_wait', and 'group_interval'.

184
Multi-Selecthard

Which TWO of the following are necessary to successfully inhibit an alert in Alertmanager?

Select 2 answers
A.repeat_interval
B.target_matchers
C.group_wait
D.source_matchers
E.group_interval
AnswersB, D

Defines the alert to be suppressed.

Why this answer

Inhibition requires a 'target_matchers' (the alert to be silenced) and 'source_matchers' (the alert that triggers the silence), plus common labels to correlate the two.

185
MCQmedium

When writing a PromQL query involving a vector and a scalar, such as 'node_memory_free_bytes / (1024 * 1024)', how does Prometheus handle label matching?

A.The scalar operation is applied to every time series value in the vector independently, preserving all labels.
B.The operation is only applied to the first time series returned by the vector selector.
C.The scalar is matched against labels of the vector using exact label equality.
D.The query fails because scalars cannot be combined with vectors without an explicit 'on' clause.
AnswerA

A scalar operation applies to every time series in the instant vector without altering or matching labels.

Why this answer

Operations between an instant vector and a scalar are performed on each data point of the vector. Labels are unaffected.

186
MCQmedium

Which operator performs a set union in PromQL?

A.unless
B.join
C.or
D.and
AnswerC

or returns the union.

Why this answer

The 'or' operator returns the union of two vectors.

187
Multi-Selectmedium

Which TWO of the following are true regarding instant vectors?

Select 2 answers
A.They contain at most one sample per time series.
B.They do not support label filtering.
C.They contain data over a time range.
D.They can be passed directly to the rate() function.
E.They are the default result of a simple selector.
AnswersA, E

By definition, instant vectors are a single point in time.

Why this answer

Instant vectors contain a single sample per time series, typically the most recent.

188
Multi-Selecthard

Which TWO of the following conditions will cause the rate() function to return NaN or empty results? (Choose TWO)

Select 2 answers
A.The queried metric is a gauge rather than a counter, and samples do not follow monotonic rules.
B.The time series has no samples within the specified range window.
C.The query is executed with an instant vector instead of a range vector.
D.The counter experienced a reset during the window.
E.The range vector contains fewer than two data points.
AnswersB, E

Correct. Zero samples in the range window result in no output.

Why this answer

rate() requires range vectors with sufficient data points and valid counter metrics. Stale series or ranges with zero samples yield empty or NaN results.

189
MCQhard

What happens if a label set for a metric changes during its lifetime?

A.An error is logged
B.A new time series is created
C.The series is updated in-place
D.The metric is deleted
AnswerB

Prometheus treats different label sets as entirely different series.

Why this answer

Changing a label set creates a brand new time series in Prometheus.

190
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

Converting log events to metrics provides a reliable, performant signal for alerting.

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.

191
MCQmedium

You need to calculate the per-second rate of increase for a counter metric over the last 10 minutes. Which function is most appropriate?

A.rate(metric[10m])
B.increase(metric[10m])
C.irate(metric[10m])
D.delta(metric[10m])
AnswerA

rate() divides the total increase by the number of seconds in the range.

Why this answer

rate() is the standard function for calculating the per-second rate of increase over a range vector.

192
MCQmedium

When integrating Grafana with Prometheus, what is the standard authentication method if Prometheus is behind a reverse proxy?

A.Hardcoded IP address
B.Basic Auth
C.Public access only
D.SSH tunneling
AnswerB

Basic Auth is the built-in, recommended standard for securing the data source connection.

Why this answer

Grafana supports various authentication methods; using a Basic Auth header or a proxy header is the standard way to securely connect to a protected Prometheus instance.

193
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 allow drill-down into specific failures.

Why this answer

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

194
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 follow the lifecycle of a request, revealing exactly where bottlenecks exist in complex architectures.

Why this answer

Distributed traces provide the full execution path and context of a single request across multiple services, which metrics cannot do.

195
MCQhard

You are performing a 'label_replace' operation. What is the correct syntax for a regex capture group?

A.\1
B.{1}
C.%1
D.$1
AnswerD

Prometheus uses $1 for the first captured group in replacement strings.

Why this answer

Prometheus uses standard RE2 regex syntax, where capture groups are accessed via $1, $2, etc.

196
MCQhard

You are implementing a custom exporter for a legacy database. The database provides a single value representing the number of active connections. Which metric type should you use to best represent this data?

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

Gauges are designed for values that can fluctuate arbitrarily, such as active connections.

Why this answer

Because active connections fluctuate up and down as users connect and disconnect, a Gauge is the appropriate metric type for representing a snapshot of the current state.

197
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

These values are unique per user, leading to massive series growth.

Why this answer

High cardinality is caused by labels with many unique values, like timestamps, user IDs, or un-normalized request paths.

198
Multi-Selecteasy

Which THREE of the following are standard ways to send notifications from Alertmanager?

Select 3 answers
A.FTP
B.Webhook
C.SSH
D.Email
E.PagerDuty
AnswersB, D, E

Standard programmatic integration.

Why this answer

Webhook, Email, and PagerDuty are built-in, widely used receiver types.

199
MCQmedium

You are troubleshooting high cardinality in your metrics. What is a common cause for this in a custom exporter?

A.Using too many different metrics.
B.Scraping the exporter too frequently.
C.Using the wrong metric type for a simple count.
D.Including dynamic values like IDs or timestamps in label values.
AnswerD

Including unique identifiers as labels creates a new time series for every single value, leading to cardinality explosion.

Why this answer

High cardinality occurs when a label value has an unbounded number of unique values (like a request ID or a timestamp), causing a massive explosion in the number of unique time series.

200
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

Queued work indicates resource contention.

Why this answer

Saturation measures how 'full' a service is, typically defined by identifying the most constrained resource (e.g., CPU, RAM, or disk IO).

201
MCQeasy

Which of these is NOT a valid Alertmanager receiver type?

A.Webhook
B.Email
C.SQL
D.PagerDuty
AnswerC

SQL is not a native alerting receiver.

Why this answer

While Alertmanager supports many integrations (Webhook, Email, PagerDuty), 'SQL' is not a native built-in receiver type.

202
MCQeasy

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

A.To define the alert message body
B.To add metadata for routing and filtering
C.To select the target server
D.To set the alert severity level
AnswerB

Labels are the primary mechanism for routing and grouping in Alertmanager.

Why this answer

Labels allow you to attach metadata to the alert, which can then be used in Alertmanager for routing and grouping.

203
Multi-Selecthard

Which THREE of the following are valid ways to modify a binary operation join?

Select 3 answers
A.group_right
B.on
C.merge
D.include
E.ignoring
AnswersA, B, E

group_right is a valid join modifier.

Why this answer

on, ignoring, group_left, and group_right are the valid modifiers for binary joins.

204
MCQmedium

Which configuration parameter limits the number of series in the head block?

A.max_series
B.storage.tsdb.head-series-limit
C.series_limit
D.max_cardinality
AnswerB

This flag limits the active series in memory.

Why this answer

The 'storage.tsdb.head-series-limit' flag helps prevent OOM by capping series count.

205
MCQmedium

In the Prometheus data model, what is a 'sample'?

A.The metric name
B.A label key-value pair
C.A value and a timestamp
D.An alert rule
AnswerC

A sample consists of a float64 value and a millisecond-precision timestamp.

Why this answer

A sample is a value-timestamp pair associated with a specific series.

206
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

High label variance causes memory inflation.

Why this answer

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

207
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 highly efficient for time-series aggregation.

Why this answer

Metrics are numerical aggregations (efficient), whereas logs are event-based records (detailed).

208
MCQeasy

Which selector syntax correctly matches all time series where the environment label does NOT equal production?

A.http_requests_total{environment=~"^((?!production).)*$"}
B.http_requests_total{environment!="production"}
C.http_requests_total{environment!~"production"}
D.http_requests_total{environment!^"production"}
AnswerB

Correct. The != operator matches time series where the label does not match the given string.

Why this answer

The != operator is the standard negative equality matcher in PromQL label selectors.

209
MCQeasy

What is the default retention period for Prometheus data?

A.1 year
B.30 days
C.15 days
D.7 days
AnswerC

15 days is the default storage retention.

Why this answer

The default retention for local Prometheus storage is 15 days.

210
Multi-Selectmedium

Which THREE of the following functions are specifically designed to be used with range vectors? (Choose THREE)

Select 3 answers
A.delta
B.abs
C.rate
D.sum
E.increase
AnswersA, C, E

Correct. delta() takes a range vector.

Why this answer

Functions like rate(), increase(), and delta() require range vectors as arguments, whereas sum() and max() operate on instant vectors.

211
MCQmedium

What is the primary function of the 'blackbox_exporter' in a monitoring architecture?

A.Database performance
B.Endpoint probing
C.Log aggregation
D.Hardware monitoring
AnswerB

It monitors services from an external perspective.

Why this answer

It allows monitoring of endpoints from the outside (blackbox perspective) rather than the inside (whitebox instrumentation).

212
Multi-Selecteasy

Which TWO of the following are valid metric types natively supported by Prometheus? (Choose TWO)

Select 2 answers
A.Matrix
B.Gauge
C.Counter
D.Vector
E.Scalar
AnswersB, C

Correct. Gauge represents a single numerical value that can go up and down.

Why this answer

Prometheus natively supports four core metric types: Counter, Gauge, Histogram, and Summary.

213
Multi-Selectmedium

Which TWO of the following are true about the Pushgateway?

Select 2 answers
A.It is a drop-in for standard scraping
B.It stores metrics persistently
C.It automatically expires metrics
D.Metrics must be deleted manually
E.It is for batch jobs
AnswersD, E

Stale metrics persist until deleted.

Why this answer

Pushgateway is for batch jobs and requires manual deletion of metrics.

214
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

These are infinite in number.

Why this answer

Using pod names or unique request IDs as labels creates high cardinality.

215
Multi-Selectmedium

Which THREE of the following are valid metric types supported natively by Prometheus client libraries?

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

Histogram is a valid native metric type.

Why this answer

The four core metric types in Prometheus are Counter, Gauge, Histogram, and Summary.

216
MCQeasy

When using a Prometheus client library to instrument a Go application, which function call is typically used to register a new metric?

A.exporter.Start()
B.server.Listen()
C.client.InitMetric()
D.prometheus.MustRegister()
AnswerD

MustRegister is the standard way to register collectors with the default registry.

Why this answer

In client_golang, metrics are registered with a Registry object (often the DefaultRegistry) via the MustRegister or Register function.

217
MCQeasy

How does PromQL handle operator precedence between arithmetic operators like multiplication (*) and addition (+)?

A.Operators are evaluated strictly from left to right regardless of type.
B.Operators are evaluated strictly from right to left.
C.Multiplication has higher precedence than addition.
D.Addition has higher precedence than multiplication.
AnswerC

Correct. Multiplication evaluates before addition.

Why this answer

PromQL follows standard mathematical order of operations, where multiplication and division take precedence over addition and subtraction.

218
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 user-facing symptoms is best practice.

Why this answer

Effective alerting should be actionable, low-noise, and focus on symptoms (what the user sees) rather than causes.

219
MCQmedium

When using the 'scrape_timeout', what happens if the timeout is reached?

A.It automatically retries once
B.The previous value is kept indefinitely
C.The scrape continues silently
D.The scrape is marked as failed
AnswerD

A timeout results in a failed scrape event.

Why this answer

If the timeout is reached, the scrape is aborted, and a 'up{job=...} == 0' metric is recorded.

220
MCQhard

When using 'remote_write', how does Prometheus ensure data delivery?

A.It uses a retry mechanism with exponential backoff
B.It writes to the WAL first
C.It disables local storage
D.It requires manual intervention on failure
AnswerA

Remote write implements retries to handle temporary network issues.

Why this answer

Prometheus uses an internal queue and retry logic to ensure delivery to remote endpoints.

221
MCQmedium

Which function is used to convert a counter rate into a per-second rate over a time range?

A.rate()
B.delta()
C.increase()
D.sum()
AnswerA

rate() provides the per-second increase of a counter.

Why this answer

rate() is the standard function for per-second rates of counters.

222
Multi-Selecthard

Which THREE of the following are common issues that cause scraping failures?

Select 3 answers
A.Lack of data in the database
B.Network connectivity issues
C.Too many dashboards in Grafana
D.Exporter timing out
E.Invalid scrape configuration
AnswersB, D, E

Correct.

Why this answer

Common issues include network connectivity, incorrect scrape configurations, and exporter timeouts.

223
Multi-Selectmedium

Which THREE of the following are valid components within a Prometheus Alerting Rule file?

Select 3 answers
A.expr
B.receiver
C.groups
D.alert
E.routing_tree
AnswersA, C, D

The PromQL expression used to evaluate the condition.

Why this answer

Prometheus alerting rules contain a 'groups' array, which contains individual 'rules' (alerts or recordings), and each alert rule must have an 'alert' name and 'expr'.

224
MCQmedium

What is the recommended approach for metrics that only need to be exposed periodically?

A.Only export when changing
B.Expose consistently
C.Use Pushgateway
D.Delete the metric
AnswerB

Consistency is key to prevent gaps in time series data.

Why this answer

If metrics are not always available, they should still be exposed (perhaps with a null or default value) to ensure consistent scraping.

225
Multi-Selectmedium

Which THREE of the following are valid aggregation operators in PromQL? (Choose THREE)

Select 3 answers
A.median
B.average
C.stddev
D.sum
E.topk
AnswersC, D, E

Correct. stddev is a valid aggregator.

Why this answer

PromQL provides numerous aggregation operators including sum, min, max, avg, stddev, stdvar, count, count_values, bottomk, topk, and quantile.

Page 2

Page 3 of 5

Page 4

All pages