Courseiva

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

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

Page 1

Page 2 of 5

Page 3
76
MCQeasy

A user executes an instant query for a metric without providing a range vector. What type of vector is returned by default?

A.String
B.Range vector
C.Scalar
D.Instant vector
AnswerD

Correct. Queries without a range selector return instant vectors.

Why this answer

An instant vector evaluates to a single data point per time series at the current evaluation timestamp.

77
MCQhard

Your application has a short-lived batch job that finishes before the Prometheus server can scrape it. What architectural component should be used?

A.Prometheus API
B.Pushgateway
C.Alertmanager
D.node_exporter
AnswerB

Pushgateway provides an intermediary for short-lived jobs to push metrics.

Why this answer

The Pushgateway is designed to allow ephemeral and batch jobs to expose their metrics to Prometheus.

78
MCQhard

You want to ensure that if the Alertmanager cluster loses communication, alerts are still sent. Which configuration helps achieve this?

A.Disable grouping
B.Set repeat_interval to 0
C.Use a load balancer only
D.Use the --cluster.peer flag
AnswerD

Clustering ensures Alertmanager instances share state and suppress duplicate notifications.

Why this answer

High Availability (HA) for Alertmanager is achieved by running multiple instances and using the '--cluster.peer' flag to link them.

79
MCQhard

When configuring Service Discovery in Kubernetes, why might you use relabeling?

A.To encrypt metric traffic.
B.To increase scrape frequency.
C.To store logs in Prometheus.
D.To reduce cardinality by dropping high-variance labels.
AnswerD

Relabeling is the primary tool to strip labels to save TSDB memory.

Why this answer

Relabeling is used to modify, drop, or keep metrics based on label values, which is essential for managing cardinality and filtering unwanted data.

80
MCQhard

You have two alerts: 'InstanceDown' and 'HighErrorRate'. You want to inhibit 'HighErrorRate' if 'InstanceDown' is firing for the same instance. Where do you configure this logic?

A.In the Alertmanager 'inhibit_rules' configuration
B.In the Prometheus recording rules file
C.In the Grafana Alerting panel
D.In the Prometheus 'alerting' rule block
AnswerA

The Alertmanager config manages alert grouping, inhibition, and routing.

Why this answer

Inhibition rules are defined within the 'inhibit_rules' section of the Alertmanager configuration file.

81
MCQeasy

Which operator performs a logical 'not' on a comparison?

A.!
B.not
C.unless
D.none
AnswerC

unless provides set difference logic.

Why this answer

The 'unless' set operator is used to filter out series that match the right-hand side.

82
MCQhard

An engineer executes topk(3, http_requests_total). What happens if there are fewer than 3 time series matching the selector?

A.It returns all available time series without padding or error.
B.It pads the remaining slots with synthetic time series valued at 0.
C.It returns NaN for the missing slots.
D.It returns an evaluation error indicating insufficient time series.
AnswerA

Correct. topk returns up to k elements if fewer exist.

Why this answer

If an instant vector has fewer elements than $k$, topk returns all available elements in the vector without error.

83
MCQmedium

You are using the 'predict_linear()' function to forecast disk space exhaustion based on the metric 'node_filesystem_free_bytes'. What type of input data does predict_linear require?

A.An instant vector representing current disk space.
B.A range vector of gauge values and a time duration scalar.
C.Two instant vectors joined via an 'on' clause.
D.A counter range vector wrapped in a rate() function.
AnswerB

predict_linear takes a range vector (e.g., [1h]) and a scalar duration, requiring gauge inputs.

Why this answer

predict_linear predicts the value of a gauge metric 't' seconds into the future based on a range vector using linear regression.

84
Multi-Selectmedium

Which TWO of the following are valid aggregation operators in PromQL?

Select 2 answers
A.sum
B.stddev
C.multiply
D.filter
E.rate
AnswersA, B

sum is a built-in aggregation.

Why this answer

sum and stddev are standard aggregation operators for reducing vector dimensionality.

85
MCQeasy

Which tool would you use to monitor the availability of a website from various geographic locations?

A.node_exporter
B.blackbox_exporter
C.Pushgateway
D.Prometheus API
AnswerB

Blackbox exporter is designed for external probing.

Why this answer

The blackbox_exporter is the standard tool for probing the availability of HTTP, TCP, or DNS services.

86
MCQmedium

An operator writes a query to calculate error percentage: sum(rate(errors[5m])) / sum(rate(total[5m])) * 100. What happens if the denominator evaluates to zero or has no matching time series?

A.Prometheus throws a fatal query evaluation runtime exception.
B.The query returns NaN for all series.
C.The query automatically returns infinity.
D.The query returns an empty vector (no data points).
AnswerD

Correct. Division by zero or empty vectors results in an empty result in PromQL.

Why this answer

Division by zero or division by an empty vector in PromQL results in an empty vector output.

87
MCQmedium

You are monitoring a counter metric 'errors_total' and need to calculate the total number of errors that occurred over the last 1 hour. Which function is most appropriate?

A.rate(errors_total[1h])
B.sum(errors_total[1h])
C.delta(errors_total[1h])
D.increase(errors_total[1h])
AnswerD

increase() provides the total increase of the counter over the 1-hour window.

Why this answer

The increase() function returns the total increase in the time series over the specified range vector, properly accounting for counter resets.

88
MCQmedium

Which mechanism allows Prometheus to discover targets by reading a list from a file?

A.dns_sd_configs
B.static_configs
C.consul_sd_configs
D.file_sd_configs
AnswerD

file_sd_configs watches files for changes in target definitions.

Why this answer

file_sd_configs is designed to read target lists from JSON or YAML files.

89
MCQhard

You need to calculate the ratio of successful HTTP requests (status 200) to total HTTP requests. Both metrics are counters named 'http_requests_total'. How do you construct this query to ensure proper label matching between status='200' and total requests?

A.rate(http_requests_total{status="200"}[5m]) / rate(http_requests_total[5m]) ignoring(status)
B.http_requests_total{status="200"} / ignoring(status) http_requests_total
C.sum(http_requests_total{status="200"}) / sum(http_requests_total)
D.http_requests_total{status="200"} / http_requests_total
AnswerB

Using 'ignoring(status)' allows matching time series that differ only in the 'status' label, successfully computing the ratio.

Why this answer

To divide two vectors with different label sets (e.g., status='200' vs all statuses), you must use binary matching modifiers like 'ignoring(status)' or 'on'.

90
Multi-Selecteasy

Which THREE of the following are considered part of the 'Four Golden Signals' of monitoring?

Select 3 answers
A.Disk Space
B.Errors
C.Up-time
D.Traffic
E.Latency
AnswersB, D, E

A core golden signal.

Why this answer

The four golden signals are Latency, Traffic, Errors, and Saturation.

91
MCQmedium

What is the purpose of the 'rule_files' configuration?

A.To manage user authentication
B.To define static targets
C.To define alerting and recording rules
D.To configure global retention
AnswerC

rule_files contain the alerting and recording rule logic.

Why this answer

rule_files point to recording and alerting rules that Prometheus evaluates.

92
MCQhard

You need to calculate the 99th percentile of request latency across all instances using a Prometheus histogram metric 'http_request_duration_seconds_bucket'. Which function and setup is correct?

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

histogram_quantile takes the target quantile (0.99) and the per-second rate of bucket counts over a range vector.

Why this answer

The histogram_quantile() function calculates the $\phi$-quantile from the buckets of a histogram metric. It requires the bucket metric and the quantile as arguments.

93
Multi-Selectmedium

Which TWO of the following should be considered when defining metric names?

Select 2 answers
A.Avoid using underscores
B.Use random IDs to ensure uniqueness
C.Use descriptive, clear names
D.Include the unit suffix
E.Include the instance name in the metric
AnswersC, D

Correct.

Why this answer

Names should be descriptive and use the unit suffix as per conventions.

94
MCQhard

What is the behavior of the clamp_max() function when applied to an instant vector?

A.It drops any time series whose value exceeds the specified maximum.
B.It generates an alert if any time series exceeds the maximum.
C.It restricts all values in the vector so that none exceed the specified maximum.
D.It sets values exceeding the maximum to NaN.
AnswerC

Correct. Values above the maximum are set to the maximum value.

Why this answer

clamp_max clamps the values of all time series in the vector to a specified maximum upper limit.

95
MCQhard

When using the Prometheus Go client, what is the difference between a Gauge and a GaugeVec?

A.Gauge is faster
B.GaugeVec is for Histograms
C.There is no difference
D.GaugeVec supports labels
AnswerD

GaugeVec is used for metrics that require dimensions (labels).

Why this answer

A Gauge represents a single value, whereas a GaugeVec allows you to have multiple gauges identified by a set of variable labels.

96
MCQeasy

What is the primary language used to query Prometheus data?

A.Regex
B.GraphQL
C.PromQL
D.SQL
AnswerC

PromQL is the standard query language for Prometheus.

Why this answer

PromQL (Prometheus Query Language) is the functional query language for Prometheus.

97
MCQeasy

Which file format is used to define Prometheus alerting rules?

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

Prometheus rules are defined in YAML files.

Why this answer

Prometheus configuration and rules files use the YAML format.

98
MCQeasy

A Prometheus administrator wants to query the current value of the metric 'http_requests_total'. Which of the following PromQL expressions should be used?

A.http_requests_total[5m]
B.http_requests_total
C.rate(http_requests_total)
D.sum(http_requests_total) over (instance)
AnswerB

This is an instant vector selector, returning the most recent sample for each time series.

Why this answer

An instant vector selector like 'http_requests_total' queries the current value (instant vector) of a metric. Range vectors require a duration in brackets.

99
MCQhard

You are joining an instant vector of application metrics with a static configuration instant vector containing target metadata using 'on(instance) group_right'. What does the 'group_right' modifier achieve?

A.It reverses the vector matching direction to evaluate from right to left.
B.It allows the right-hand side to provide more time series than the left-hand side, keeping all right-hand side series and including matched left-hand side data.
C.It drops all labels from the left-hand side vector.
D.It ensures that the output contains only time series found exclusively on the right side.
AnswerB

group_right ensures that all series from the right-hand side are kept in the resulting vector, joined with matching left-hand side series.

Why this answer

In a many-to-one or one-to-many match, group_right causes the metric on the right-hand side to be included for every matching left-hand side, keeping all labels from the right side and supplementing them.

100
MCQhard

A dashboard shows a latency spike that doesn't correlate with CPU usage. What should you investigate next?

A.Increase the number of replicas.
B.Disk I/O and network saturation.
C.Check the memory limit.
D.Delete old metrics.
AnswerB

These are common non-CPU bottlenecks.

Why this answer

If CPU is not the bottleneck, the issue is likely I/O saturation, network contention, or a downstream dependency delay.

101
MCQeasy

What is the default port that Prometheus listens on?

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

Prometheus defaults to port 9090.

Why this answer

9090 is the well-known default port for the Prometheus server web interface.

102
MCQeasy

What is the purpose of a 'grouping' configuration in the Alertmanager 'route' block?

A.To inhibit alerts based on severity
B.To aggregate similar alerts into a single notification
C.To ensure alerts are processed in alphabetical order
D.To create hierarchical alert routing
AnswerB

Grouping combines alerts sharing specified labels into one notification bundle.

Why this answer

Grouping categorizes multiple alerts into a single notification based on common label sets, reducing alert fatigue.

103
Multi-Selectmedium

Which TWO of the following labels are specifically associated with Histograms?

Select 2 answers
A.percentile
B.sum
C.le
D.quantile
E.range
AnswersB, C

Metric suffix for sums.

Why this answer

Histograms use 'le' for buckets and 'sum'/'count' for total metrics.

104
MCQhard

If you are using a Histogram, what is the purpose of the '_sum' metric?

A.To store the median
B.To store the maximum value
C.To store the sum of observations
D.To store the total count
AnswerC

This allows calculating averages.

Why this answer

The _sum metric provides the sum of all observed values, which allows calculating the average when combined with the _count metric.

105
Multi-Selecthard

Which THREE of the following are valid Alertmanager routing tree parameters?

Select 3 answers
A.receiver
B.server
C.match_re
D.match
E.auth_token
AnswersA, C, D

Define notification recipient.

Why this answer

Routes can filter by 'match', 'match_re', and define a 'receiver'.

106
MCQmedium

You want to rename a metric during the scrape process. Which configuration block is appropriate?

A.scrape_configs
B.remote_write
C.target_relabel_configs
D.metric_relabel_configs
AnswerD

metric_relabel_configs allows modifying labels of existing metrics.

Why this answer

relabel_configs is the correct way to modify metric labels (including __name__) before they are ingested.

107
MCQhard

You have a histogram metric tracking request durations. You need to calculate the 99th percentile across all instances in a cluster. Why is this difficult with standard Prometheus metrics?

A.Histograms can only be used on a single instance.
B.The Prometheus server does not support mathematical operations.
C.Aggregating histograms requires complex math because they track bucket counts, not raw values.
D.Histograms are not designed to be aggregated across multiple labels.
AnswerC

Precise quantiles cannot be computed after the fact; one must rely on bucket approximations.

Why this answer

Histograms track counts in predefined buckets. Without knowing the exact distribution of values within those buckets, calculating accurate quantiles across multiple instances or time windows is an approximation.

108
MCQmedium

What does the `_count` suffix denote in a summary or histogram?

A.The maximum value
B.The sum of values
C.The total number of samples
D.The current bucket value
AnswerC

It tracks how many times the metric has been observed.

Why this answer

The _count suffix represents the total number of observations made for that specific metric.

109
MCQmedium

When running node_exporter, how can you disable specific collectors like 'textfile'?

A.collector.textfile=false
B.--no-collector.textfile
C.exclude=textfile
D.--disable-textfile
AnswerB

This is the correct flag to disable the textfile collector.

Why this answer

Collectors can be disabled using the --no-collector.<name> flag.

110
MCQmedium

What is the purpose of a Gauge metric?

A.To track request rates.
B.To track job start times.
C.To track request durations.
D.To track values that fluctuate up and down.
AnswerD

Gauges track instantaneous state.

Why this answer

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

111
MCQeasy

What label is automatically added by Prometheus to all scraped metrics?

A.instance
B.region
C.job
D.host
AnswerA

The instance label reflects the target address.

Why this answer

Prometheus automatically attaches the 'instance' label to identify the target source.

112
MCQmedium

You notice your custom exporter is timing out during scraping. What is the most likely cause?

A.The metric type is wrong
B.The scrape timeout is too short
C.The port is blocked
D.The label names are incorrect
AnswerB

The exporter must respond within the defined timeout window.

Why this answer

If the exporter is overloaded or generating a massive amount of data, the scrape_timeout value in Prometheus might be too low.

113
MCQeasy

Which component is responsible for receiving alerts from Prometheus and managing notification delivery?

A.Alertmanager
B.Prometheus Server
C.Exporter
D.Pushgateway
AnswerA

Alertmanager handles the full lifecycle of alerts.

Why this answer

Alertmanager is the dedicated component for deduplicating, grouping, and routing alerts.

114
MCQhard

You are seeing 'NaN' values in your gauge metrics. What does this indicate?

A.A scrape error
B.An undefined gauge state
C.Metric type mismatch
D.Label collision
AnswerB

NaN is a valid floating point representation for gauge states.

Why this answer

NaN (Not a Number) is a valid value for gauges in Prometheus, often indicating that a value is currently undefined or not applicable.

115
MCQmedium

Which monitoring philosophy is core to the Prometheus architecture?

A.Agent-less log aggregation.
B.Push-based data ingestion.
C.Centralized pull-based scraping.
D.Event-driven architecture.
AnswerC

Prometheus pulls metrics from targets at controlled intervals.

Why this answer

Prometheus favors the pull model, where the server controls the scrape rate and frequency, providing better control over the load on the monitoring system.

116
MCQmedium

What is the primary drawback of using the Pushgateway for long-running services?

A.It requires manual restarts.
B.It lacks metric persistence.
C.Prometheus cannot query the Pushgateway.
D.It bypasses Prometheus's liveness check for the source.
AnswerD

Prometheus won't know if the source process is actually dead.

Why this answer

Using the Pushgateway removes the 'up' status check that Prometheus performs on targets, and it can become a bottleneck or single point of failure.

117
Multi-Selectmedium

Which TWO of the following are true regarding Prometheus Histograms?

Select 2 answers
A.They calculate quantiles client-side
B.They do not use labels
C.They are cumulative
D.They support aggregation across instances
E.They are only for Gauges
AnswersC, D

Correct.

Why this answer

Histograms consist of cumulative counters and allow for server-side quantile calculation.

118
MCQeasy

What is the primary goal of observability?

A.To store as many logs as possible.
B.To automate code deployments.
C.To understand system state from external outputs.
D.To replace testing.
AnswerC

This is the definition of observability.

Why this answer

Observability aims to answer 'why' a system is in its current state by understanding its internal state through outputs (metrics, logs, traces).

119
MCQhard

You have a recording rule that uses 'sum() by (instance)'. Why might this be inefficient for large clusters?

A.It can lead to high cardinality if 'instance' has many values
B.It blocks concurrent queries
C.It uses too much disk I/O
D.It slows down the network
AnswerA

Each unique instance label combination creates a new time series.

Why this answer

High cardinality labels, if not handled correctly, can lead to a massive number of time series, consuming excessive memory and storage.

120
MCQmedium

When should you use the 'absent()' function?

A.To alert when a metric has no data points in a given range.
B.To reset a counter.
C.To ignore null values in a calculation.
D.To handle missing labels in a join.
AnswerA

absent() is standard for 'missing metric' alerts.

Why this answer

absent() returns a time series if the input vector is empty, useful for alerting on missing metrics.

121
MCQhard

How do you apply a global notification delay in Alertmanager?

A.By using the group_wait field
B.By setting the repeat_interval
C.By creating a silence for the first 5 minutes
D.By modifying the Prometheus rule interval
AnswerA

group_wait provides the initial delay for grouping alerts.

Why this answer

The 'group_wait' parameter at the root route level defines the time to wait before sending an initial notification for a new alert group.

122
MCQmedium

You are designing a monitoring architecture for an ephemeral, auto-scaling microservices environment. Why is the Prometheus 'pull' model generally preferred over a 'push' model in this scenario?

A.Pull models enable automatic service discovery and health management via the Prometheus server.
B.Pull models eliminate the need for firewall configuration.
C.Pull models reduce network latency on the monitored targets.
D.Push models require a Prometheus Pushgateway for every single target.
AnswerA

Prometheus handles the discovery process, ensuring new targets are scraped automatically without client-side configuration.

Why this answer

Pull models allow the monitoring system to handle service discovery and target management centrally, preventing issues with configuration drift when instances are added or removed dynamically.

123
MCQhard

When a Prometheus server is restarted, how does it recover the in-memory data?

A.It only keeps the last 5 minutes
B.It reads the WAL
C.It queries the remote store
D.It re-scrapes all targets
AnswerB

The WAL stores data that hasn't been flushed to disk blocks yet.

Why this answer

It replays the Write-Ahead Log (WAL) to reconstruct the in-memory head block.

124
MCQeasy

You are creating a Grafana dashboard and need to display a gauge showing the current CPU usage percentage from a Prometheus data source. Which function is most appropriate?

A.predict_linear()
B.sum_over_time()
C.rate()
D.No function (raw query)
AnswerD

Queries like 'node_cpu_seconds_total' provide the instantaneous current value suitable for a gauge.

Why this answer

For a current value, you do not need an aggregation over time; you just query the metric directly.

125
MCQmedium

You are instrumenting a Go application. What is the standard way to register a metric?

A.prometheus.MustRegister()
B.prometheus.Enable()
C.prometheus.Set()
D.prometheus.Add()
AnswerA

This is the standard registration method in the Go client library.

Why this answer

The prometheus.MustRegister() function is the standard way to register custom metrics with the default registry.

126
MCQhard

When evaluating the 'Traffic' golden signal, what is the best metric to watch for a web service?

A.CPU usage percentage.
B.Requests per second.
C.HTTP error count.
D.Response latency.
AnswerB

This measures traffic volume.

Why this answer

Request rate (requests per second) is the standard way to measure traffic volume.

127
MCQhard

You need to send critical alerts to a specific Slack channel while warning alerts go to email. Where should this routing logic be defined?

A.In the Alertmanager 'receivers' configuration
B.In the Grafana 'Alerting' UI
C.In the Alertmanager 'route' configuration
D.In the Prometheus 'alerting' rule file
AnswerC

The route tree evaluates alerts against matchers to assign them to the correct receiver.

Why this answer

The Alertmanager 'routes' configuration tree uses matchers to determine which receiver handles specific alerts based on labels.

128
MCQeasy

Which label matcher operator is used for exact equality in PromQL selectors?

A.IS
B.:=
C.==
D.=
AnswerD

Correct. The = operator matches labels that are exact matches to the provided string.

Why this answer

The = operator is the standard label matcher for exact string equality.

129
MCQmedium

When evaluating a PromQL query involving arithmetic operators, such as 'vector1 + vector2 * vector3', which operator has the highest precedence?

A.Both have equal precedence and are evaluated left-to-right.
B.+ (Addition)
C.* (Multiplication)
D.Precedence is determined by the order of labels.
AnswerC

Multiplication has higher precedence and is evaluated before addition.

Why this answer

Multiplication (*) and division (/) have higher precedence than addition (+) and subtraction (-) in PromQL.

130
Multi-Selectmedium

Which TWO of the following are common reasons to use the Pushgateway?

Select 2 answers
A.For batch jobs that run for seconds
B.To monitor long-running servers
C.To act as a reverse proxy
D.When metrics need to be stored in SQL
E.When the application is inaccessible to the Prometheus server
AnswersA, E

Correct.

Why this answer

Pushgateway is used for batch jobs that finish quickly and for processes that are behind a firewall.

131
MCQmedium

What is the benefit of using recording rules?

A.They enable alert notifications
B.They improve query performance
C.They bypass TSDB
D.They reduce storage usage
AnswerB

Precomputing results avoids recalculating them on every query.

Why this answer

Recording rules precompute expensive queries and store them as new series, improving performance.

132
MCQhard

Your Prometheus server is hitting high memory usage due to high cardinality. Which action is most effective at reducing memory pressure?

A.Increase scrape_interval
B.Drop high-cardinality labels using relabel_configs
C.Use more exporters
D.Enable remote write
AnswerB

Dropping labels prevents high-cardinality metrics from being stored in TSDB.

Why this answer

Reducing label cardinality (e.g., removing unique user IDs) is the primary way to reduce TSDB index size and memory usage.

133
MCQhard

What is the purpose of 'tombstones' in the TSDB?

A.To increase query speed
B.To compress data
C.To mark series for deletion
D.To store WAL snapshots
AnswerC

Tombstones record that certain data should be ignored.

Why this answer

Tombstones track data points that have been deleted, allowing them to be ignored during queries until they are compacted.

134
Multi-Selecthard

Which THREE of the following are common sources of high cardinality?

Select 3 answers
A.Dynamic URL parameters
B.Unique user IDs
C.Static host names
D.Binary flags
E.Timestamps in labels
AnswersA, B, E

High variety of unique strings.

Why this answer

High cardinality often comes from user-provided IDs, timestamps in labels, or dynamic URL parameters.

135
Multi-Selecteasy

Which TWO of the following label matching operators are supported in Prometheus label selectors? (Choose two)

Select 2 answers
A.= (exact equality)
B.=~ (regular expression match)
C.#= (wildcard match)
D.== (boolean equality comparison)
E.:= (assignment and match)
AnswersA, B

The '=' operator matches labels equal to the provided string exactly.

Why this answer

Prometheus supports '=' (exact match), '!=' (exact mismatch), '=~' (regex match), and '!~' (regex mismatch).

136
MCQeasy

Your team is defining Service Level Objectives (SLOs) for a web application. Which metric is most indicative of the 'Traffic' golden signal?

A.Number of requests per second
B.Database connection pool size
C.Total disk I/O wait
D.Number of active error logs
E.Average CPU utilization percentage
AnswerA

Request rate is the standard definition of traffic in the golden signals framework.

Why this answer

Traffic is a measure of demand on the system, typically represented by request rate per second.

137
MCQhard

How does the 'stale marker' work in Prometheus?

A.It prevents the graph from showing data after the target goes down.
B.It restarts the scrape job.
C.It sends an alert.
D.It deletes the metric data.
AnswerA

This prevents 'trailing' lines on graphs.

Why this answer

When a target stops responding, Prometheus writes a stale marker to the TSDB so that graphs stop at the last known value rather than showing an infinite line or incorrect data.

138
MCQmedium

Which tool would you pair with Prometheus to visualize the collected data?

A.Grafana
B.Kibana
C.PromQL
D.Alertmanager
AnswerA

Grafana provides the UI/dashboards.

Why this answer

Grafana is the standard visualization tool that integrates deeply with Prometheus as a data source.

139
Multi-Selecthard

Which THREE of the following are valid time-range units in PromQL?

Select 3 answers
A.ns
B.m
C.ms
D.h
E.s
AnswersB, D, E

Minutes is a valid unit.

Why this answer

s, m, h, d, w, y are all valid Prometheus duration units.

140
MCQeasy

What is the primary difference between a metric and a log?

A.Metrics are for debugging; logs are for alerting.
B.Logs are cheaper to store.
C.Logs are always real-time.
D.Metrics represent snapshots of state; logs represent discrete events.
AnswerD

This is the classic distinction between the two.

Why this answer

Metrics are aggregated, numeric data points over time, while logs are timestamped records of specific events.

141
MCQmedium

Which of the following best describes the function of the 'continue: true' setting within an Alertmanager route?

A.It allows an alert to continue matching against sibling routes
B.It enables alert silencing
C.It allows the Alertmanager to retry failed notifications
D.It causes the alert to stay active indefinitely
AnswerA

By default, routing stops at the first match; 'continue: true' enables further matching.

Why this answer

Setting 'continue: true' allows an alert to match multiple routes, ensuring it can be sent to multiple destinations if desired.

142
Multi-Selectmedium

Which THREE of the following modifiers or keywords are used in PromQL binary vector matching? (Choose THREE)

Select 3 answers
A.group_left
B.keep_matching
C.on
D.ignoring
E.group_by
AnswersA, C, D

Correct. 'group_left' handles many-to-one joins.

Why this answer

Binary vector matching modifiers include on, ignoring, group_left, and group_right.

143
MCQhard

A Prometheus alert expression uses rate(http_requests_total[5m]) > 10. During a service restart, counter resets occur. How does the rate() function account for these counter resets?

A.It treats the negative difference as an error and returns 0 for the entire range.
B.It adds a fixed offset value configured in Prometheus global settings.
C.It assumes the counter reset to zero and adds the new value to the previous value.
D.It drops the samples surrounding the reset, resulting in a null value for that evaluation.
AnswerC

Correct. rate() detects drops and handles them by assuming a reset to 0.

Why this answer

The rate() function automatically detects decreases in counter values (resets) and adjusts the calculation assuming the counter restarted at zero.

144
MCQeasy

Which component is strictly required to monitor batch jobs in a Prometheus ecosystem?

A.Grafana
B.Alertmanager
C.Pushgateway
D.PromQL
AnswerC

Pushgateway acts as a metrics buffer for transient jobs.

Why this answer

The Pushgateway is specifically designed to allow ephemeral batch jobs to push metrics, which Prometheus then pulls.

145
MCQeasy

Which golden signal would you monitor to detect if a specific API endpoint is returning 404s?

A.Traffic
B.Saturation
C.Errors
D.Latency
AnswerC

Error rates are the primary source for identifying 4xx/5xx issues.

Why this answer

The 'Errors' signal tracks the rate of failed requests, including HTTP 4xx and 5xx codes.

146
MCQhard

In Alertmanager, what is the role of the 'continue' field in a route?

A.To keep the alert firing after resolution
B.To ignore duplicate alerts
C.To restart the Alertmanager process
D.To force the alert to be sent to multiple routes
AnswerD

It allows an alert to match multiple routes, enabling multi-destination routing.

Why this answer

If 'continue' is set to true, Alertmanager will match the alert against subsequent sibling routes instead of stopping at the first match.

147
MCQeasy

A team is transitioning from a traditional logging system to a metrics-based monitoring approach. Which category of observability data should the team prioritize to specifically identify the 'Latency' golden signal?

A.Infrastructure events
B.Structured application logs
C.Time-series metrics
D.Distributed traces
AnswerC

Metrics are the standard for measuring the four golden signals, including latency.

Why this answer

Latency measures the time it takes to service a request, which is best captured via time-series metrics rather than unstructured logs or traces.

148
Multi-Selectmedium

Which TWO of the following are true about the Blackbox exporter?

Select 2 answers
A.It supports HTTP, TCP, and DNS
B.It is the only exporter for databases
C.It requires a target list in the config
D.It automatically instruments application code
E.It is a passive metric collector
AnswersA, C

Correct.

Why this answer

It is used for active probing and supports multiple modules for different protocols.

149
Multi-Selectmedium

Which TWO of the following can be modified in 'relabel_configs'?

Select 2 answers
A.scrape interval
B.target labels
C.retention period
D.metric names
E.alerting logic
AnswersB, D

Standard usage.

Why this answer

Relabeling can modify any label, including the address or metric name.

150
MCQeasy

What does the 'firing' state mean for an alert?

A.The alert is being silenced
B.The alert is pending
C.The alert condition is currently true
D.The alert has been resolved
AnswerC

The condition met the threshold and the duration requirement.

Why this answer

An alert enters the 'firing' state when its condition expression evaluates to true for the specified 'for' duration.

Page 1

Page 2 of 5

Page 3

All pages