Courseiva

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

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

Page 1 of 5

Page 2
1
MCQmedium

What is the primary benefit of using a pull-based model for monitoring?

A.It supports higher data throughput.
B.The Prometheus server can detect target failure.
C.It is easier to configure for firewalls.
D.It avoids network security issues.
AnswerB

If the scrape fails, Prometheus immediately knows the target is down.

Why this answer

The pull model allows the monitoring server to detect when a target is down and prevents the target from overwhelming the monitoring system.

2
Multi-Selectmedium

Which TWO of the following are true about the node_exporter?

Select 2 answers
A.It is for database monitoring
B.It performs active monitoring
C.It runs on port 9100 by default
D.It supports Windows out of the box
E.It exposes kernel metrics
AnswersC, E

Correct.

Why this answer

Node exporter is designed for *NIX systems and exposes metrics on port 9100.

3
MCQeasy

You are deploying Prometheus in a Kubernetes cluster and need to ensure it discovers pods labeled 'app=frontend'. Which configuration block is required?

A.kubernetes_sd_configs
B.dns_sd_configs
C.static_configs
D.file_sd_configs
AnswerA

kubernetes_sd_configs allows Prometheus to interface with the Kubernetes API for dynamic discovery.

Why this answer

kubernetes_sd_configs is the standard mechanism to discover pods dynamically.

4
MCQeasy

What is the purpose of 'labels' in Prometheus?

A.To store the actual data values.
B.To define the scrape interval.
C.To identify unique time series.
D.To set the alert threshold.
AnswerC

Metric name + labels = unique time series.

Why this answer

Labels provide metadata to metrics, allowing for multi-dimensional querying and filtering (e.g., job='web', instance='1.2.3.4').

5
MCQmedium

You need to monitor the duration of database queries. Which metric type is best for calculating quantiles on the server side?

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

Histograms allow for the calculation of quantiles on the server side via buckets.

Why this answer

Summaries calculate configurable quantiles on the client side, while Histograms require server-side calculations.

6
Multi-Selectmedium

Which TWO of the following are benefits of using recording rules?

Select 2 answers
A.Simplifying complex queries
B.Reducing query latency
C.Adding authentication to metrics
D.Automatically increasing retention
E.Providing UI for alerts
AnswersA, B

Complex expressions become a single metric name.

Why this answer

Recording rules improve performance for dashboards and provide pre-computed metrics for alerting.

7
MCQmedium

Which label is used to group alerts in Alertmanager?

A.group_by
B.repeat_interval
C.group_wait
D.group_interval
AnswerA

group_by determines the labels used to bundle alerts.

Why this answer

The 'group_by' field in the route block determines how alerts are grouped into notifications.

8
MCQeasy

A team wants to visualize metrics from Prometheus in Grafana. What is the standard way to connect these two services?

A.Upload a JSON file to Prometheus
B.Add a 'Prometheus' data source in Grafana
C.Configure a Prometheus scrape job for Grafana
D.Install the 'Grafana-exporter' in Prometheus
AnswerB

Adding a data source is the native way Grafana queries Prometheus.

Why this answer

Grafana allows users to add Prometheus as a 'Data Source' by providing the URL of the Prometheus server.

9
MCQmedium

When creating a custom exporter, which component is responsible for scraping the data?

A.The Pushgateway
B.The exporter itself
C.The client library
D.The Prometheus server
AnswerD

Prometheus pulls metrics from the exporter.

Why this answer

The Prometheus server is responsible for initiating the scrape request to the exporter.

10
MCQmedium

When configuring a custom exporter, how do you provide labels to a metric?

A.In the scrape config
B.Through a config file
C.Via environment variables
D.By passing a label dictionary
AnswerD

Labels are defined during initialization in most client libraries.

Why this answer

Labels are passed as a dictionary or map when creating the metric object in the client library.

11
MCQeasy

Which of these is NOT a Golden Signal?

A.Latency
B.Storage
C.Saturation
D.Errors
AnswerB

Storage is an infrastructure concern, not a service signal.

Why this answer

The Four Golden Signals are Latency, Traffic, Errors, and Saturation. 'Storage' is not one of them.

12
MCQhard

If you perform 'A / B' where A and B have different sets of labels, what happens?

A.It automatically ignores the extra labels.
B.It returns an empty result.
C.It returns the result of the division for all series.
D.It returns an error in the UI.
AnswerB

Without group or matching modifiers, no series will match.

Why this answer

Binary operations require matching labels unless modifiers are used; otherwise, the result is empty.

13
Multi-Selectmedium

Which THREE of the following functions can be used with counter metrics to calculate rates or increases? (Choose three)

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

irate() calculates the instantaneous rate of increase for counters.

Why this answer

Counters can be used with rate(), irate(), and increase() functions (among others like delta() for gauges, though delta is technically for gauges, increase is for counters).

14
Multi-Selecthard

Which TWO of the following statements about PromQL label matchers are correct? (Choose TWO)

Select 2 answers
A.The = operator performs an exact string match.
B.The ?= operator performs fuzzy string matching.
C.The =~ operator is used exclusively for numeric comparisons.
D.The == operator is valid inside label selectors for filtering.
E.The !~ operator performs a negative regular expression match.
AnswersA, E

Correct. = is exact match.

Why this answer

PromQL supports exact equality (=), negative equality (!=), regular expression matching (=~), and negative regular expression matching (!~).

15
MCQmedium

You notice that recording rules are consuming too much CPU on your Prometheus server. What is the most effective way to reduce the load while keeping data available?

A.Decrease the evaluation_interval
B.Move recording rules to Alertmanager
C.Increase the evaluation_interval
D.Delete all indices
AnswerC

Increasing the interval decreases the frequency of calculations, reducing CPU overhead.

Why this answer

Recording rules are evaluated at the 'evaluation_interval'. Increasing this interval reduces CPU usage by running the queries less frequently.

16
MCQhard

If you have a scrape_interval of 15s, what is the recommended minimum scrape_timeout?

A.5s
B.10s
C.30s
D.15s
AnswerB

It is standard practice to set the timeout to a significant fraction of the interval, often 10s for a 15s interval.

Why this answer

The timeout should generally be slightly less than or equal to the scrape_interval, but it must be sufficient to allow the target to respond.

17
Multi-Selecthard

Which THREE conditions cause a scrape to be unsuccessful?

Select 3 answers
A.High memory usage
B.Invalid metric format
C.HTTP 500 status code
D.Disk space low
E.Network connection timeout
AnswersB, C, E

Prevents parsing.

Why this answer

Scrapes fail on network timeout, 404/500 errors, or if the target returns invalid text format.

18
MCQmedium

What happens to your alerts if the Alertmanager configuration file contains a syntax error?

A.Alertmanager continues using the previous configuration
B.Prometheus stops scraping
C.Alertmanager crashes immediately
D.All alerts are dropped
AnswerA

Alertmanager maintains operational stability by not loading broken configs.

Why this answer

If the configuration is invalid, Alertmanager will fail to reload, and it will continue using the last known good configuration.

19
MCQhard

You are deploying Prometheus in a cluster with highly dynamic ephemeral pods. Which concern is the most significant regarding cardinality?

A.The network bandwidth used by the pushgateway.
B.The disk space used by WAL logs.
C.The number of targets being scraped.
D.The memory overhead of storing time series with unique label sets.
AnswerD

Unique label combinations create new time series, consuming RAM.

Why this answer

High cardinality arises from labels with high-variance values, which can lead to memory exhaustion in the Prometheus TSDB.

20
MCQmedium

You need to calculate the per-second rate of increase of http_requests_total over a 1-minute window. Why is using a 1-minute range window generally discouraged in production?

A.It is too short relative to typical scrape intervals, leading to high noise and sensitivity to jitter.
B.It disables counter reset detection algorithms.
C.PromQL automatically rejects any range window shorter than 5 minutes.
D.It causes Prometheus to run out of memory due to high sample density.
AnswerA

Correct. Short windows capture too few data points to produce stable rates.

Why this answer

Prometheus scrapes most targets every 15 seconds. A 1-minute window only contains about 4 data points, making the rate calculation highly sensitive to small scraping jitters.

21
MCQmedium

Which function should be used to smooth out short-term fluctuations in a gauge metric by calculating the rolling average over a 10-minute window?

A.rate(node_load1[10m])
B.avg_over_time(node_load1[10m])
C.smooth(node_load1, 10m)
D.avg(node_load1[10m])
AnswerB

Correct. avg_over_time computes the average over a range window for gauges.

Why this answer

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

22
Multi-Selecthard

Which TWO factors directly influence the accuracy of quantile calculations when using Prometheus Summary metrics?

Select 2 answers
A.The total number of instances scraping the metric.
B.The configured quantiles (e.g., 0.9, 0.99).
C.The CPU architecture of the client host.
D.The number of buckets defined in the configuration.
E.The sliding time window for observation calculation.
AnswersB, E

The chosen quantiles determine what the client tracks.

Why this answer

Summaries compute quantiles on the client side, and accuracy is determined by the configured quantiles and the sliding time window over which they are calculated.

23
MCQeasy

Which Grafana feature allows you to see data from multiple Prometheus servers on a single panel?

A.Panel injection
B.Metric merging
C.Data source variables
D.Prometheus federation
AnswerC

Variables enable users to dynamically switch or select data sources in a panel.

Why this answer

Grafana allows you to define multiple data sources and even mix them within a dashboard, or use a data source proxy.

24
MCQmedium

A system is experiencing high latency. You need to identify if the latency is caused by external dependencies. Which of the Four Golden Signals is most relevant for this discovery?

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

Latency measures time spent per request.

Why this answer

Latency measures the time it takes to service a request, which directly indicates performance issues in dependencies.

25
MCQhard

You are joining two vectors where the left vector has labels {job="api", instance="host1"} and the right vector has labels {job="api", region="us-east"}. You use the query 'vector_a + ignoring(instance, region) vector_b'. What does the 'ignoring' modifier do?

A.It replaces missing instance and region labels with default values.
B.It removes 'instance' and 'region' from the final output time series.
C.It causes Prometheus to exclude the listed labels ('instance', 'region') from consideration during the equality check between the two vectors.
D.It hides errors caused by missing 'instance' or 'region' labels in the time series.
AnswerC

'ignoring' drops the specified labels from the matching calculation so that series with different instance or region values can still match on remaining labels.

Why this answer

The 'ignoring' modifier instructs Prometheus to ignore specified labels when conducting vector matching between two vectors.

26
MCQeasy

What is the primary difference between an instant vector and a range vector in PromQL?

A.An instant vector contains a single sample per time series, while a range vector contains a set of samples over time.
B.An instant vector includes timestamps from the future, while range vectors are strictly historical.
C.An instant vector can only be used with counters, while range vectors can only be used with gauges.
D.A range vector evaluates faster because it caches historical calculations.
AnswerA

Correct. Instant vectors represent a single point in time, range vectors represent a historical window.

Why this answer

Instant vectors contain a single sample per time series for the given timestamp, whereas range vectors contain a set of data points over a time window.

27
MCQeasy

What is the difference between 'count' and 'count_values'?

A.count_values is faster.
B.count is for gauges; count_values is for counters.
C.count returns the number of series; count_values returns the frequency of values.
D.There is no difference.
AnswerC

count_values creates new time series based on value frequency.

Why this answer

count aggregates by number of series, while count_values counts the number of occurrences of each sample value.

28
Multi-Selecthard

Which THREE features are provided by the Prometheus HTTP API?

Select 3 answers
A.Retrieving alert rules
B.Listing active targets
C.Configuring SMTP
D.Querying time series data
E.Updating scrape interval
AnswersA, B, D

Core functionality.

Why this answer

The API allows querying data, checking target status, and getting rule info.

29
MCQhard

You are troubleshooting a query and notice that label_replace is being used. What is the primary function of label_replace(v, dst_label, replacement, src_label, regex)?

A.It renames the Prometheus server instance in federated environments.
B.It drops all time series that do not contain the specified source label.
C.It matches a regex against a source label value and writes the result into a destination label.
D.It replaces the metric name with a new string.
AnswerC

Correct. label_replace modifies or creates labels based on regular expression extractions.

Why this answer

The label_replace function matches the regex against the value of src_label, and if it matches, sets dst_label to the replacement string.

30
MCQmedium

When designing a monitoring strategy, why should you avoid monitoring 'everything'?

A.Logs are always better for everything.
B.The network will be saturated.
C.Prometheus cannot handle many metrics.
D.It leads to signal noise and high resource costs.
AnswerD

Efficient monitoring focuses on relevant signals.

Why this answer

Excessive metric collection leads to high storage costs, increased query latency, and signal-to-noise ratio degradation (alert fatigue).

31
MCQmedium

When configuring a dashboard panel, what is the significance of the 'Legend' field?

A.To set the alert threshold
B.To enable auto-refresh
C.To filter which metrics are shown
D.To rename the metric for display purposes
AnswerD

The legend field transforms raw metric labels into readable strings.

Why this answer

The legend field allows you to customize the labels displayed in the graph tooltip and legend section.

32
MCQeasy

Which Grafana panel type is best for showing a trend of a metric over time?

A.Table
B.Stat
C.Bar gauge
D.Time series
AnswerD

Time series panels visualize how metrics change over time.

Why this answer

The Time series panel is the standard for plotting metrics over time.

33
MCQmedium

Which metric type would best capture the distribution of request latencies?

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

Histograms provide bucketed distributions.

Why this answer

A Histogram samples observations (usually request durations) and counts them in configurable buckets, allowing for percentiles.

34
MCQmedium

You are using the blackbox_exporter to monitor an HTTP endpoint. Which module configuration is required to check the HTTP status code?

A.http_2xx
B.dns_query
C.tcp_connect
D.icmp_ping
AnswerA

This module specifically validates HTTP 2xx response codes.

Why this answer

The http_2xx module is the standard configuration for checking that an endpoint returns a successful HTTP status code.

35
Multi-Selectmedium

Which THREE of the following are valid set operators in PromQL for combining instant vectors? (Choose THREE)

Select 3 answers
A.intersect
B.union
C.unless
D.and
E.or
AnswersC, D, E

Correct. 'unless' is the complement set operator.

Why this answer

PromQL supports three set operators: and (intersection), unless (complement), and or (union).

36
MCQmedium

Which function evaluates the predictable linear extrapolation of a gauge metric over time to predict future values?

A.predict_linear(node_filesystem_free_bytes[1h], 4 * 3600)
B.holt_winters(node_filesystem_free_bytes[1h], 5m, 1m)
C.deriv(node_filesystem_free_bytes[1h])
D.extrapolate_linear(node_filesystem_free_bytes[1h], 4 * 3600)
AnswerA

Correct. predict_linear uses linear regression on a range vector to predict values in the future.

Why this answer

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

37
Multi-Selectmedium

Which TWO of the following are valid ways to configure target discovery in Prometheus?

Select 2 answers
A.ftp_sd_configs
B.sql_sd_configs
C.ldap_sd_configs
D.dns_sd_configs
E.file_sd_configs
AnswersD, E

Uses DNS lookups.

Why this answer

Prometheus supports multiple SD mechanisms, including file-based and cloud-native providers.

38
Multi-Selectmedium

Which THREE of the following are true about the Prometheus Text Exposition Format?

Select 3 answers
A.It is a binary protocol
B.It is line-oriented
C.Each metric line has name, labels, and value
D.Comments begin with #
E.It requires an XML schema
AnswersB, C, D

Correct.

Why this answer

It is line-oriented, supports comments starting with #, and each metric line contains the name, optional labels, and value.

39
MCQmedium

You are monitoring a legacy batch processing job that runs for only 30 seconds once every 24 hours. Which Prometheus component is necessary to collect these metrics?

A.Prometheus Exporter
B.Prometheus Federation
C.Prometheus Pushgateway
D.Prometheus Alertmanager
AnswerC

Pushgateway is designed to temporarily store metrics from short-lived batch jobs until Prometheus scrapes it.

Why this answer

Since the job is short-lived, Prometheus's standard scrape interval will likely miss it. The Pushgateway allows the job to push metrics before exiting.

40
MCQmedium

What is the effect of using a 'Summary' metric with client-side quantiles?

A.It improves performance
B.It allows cross-instance aggregation
C.It prevents cross-instance aggregation
D.It doubles the scrape time
AnswerC

Because quantiles are calculated at the source, they cannot be correctly averaged or merged.

Why this answer

Client-side quantiles are calculated per instance, making it impossible to aggregate them across multiple instances of an application.

41
MCQhard

What is the primary function of the 'scrape_timeout' configuration?

A.It limits the duration of the HTTP connection.
B.It determines how long to keep metrics in memory.
C.It sets the interval between scrapes.
D.It restricts the size of the metric payload.
AnswerA

It is the deadline for the scrape response.

Why this answer

It defines how long Prometheus waits for a response from the target before considering the scrape a failure.

42
MCQmedium

When writing a query with arithmetic operators, how does PromQL handle vector matching when both vectors have the exact same label sets?

A.It ignores labels entirely and matches strictly based on metric names.
B.It performs a one-to-one match automatically based on identical label sets.
C.It throws a matching error unless the 'on' modifier is explicitly provided.
D.It performs a cross-product join of all matching series.
AnswerB

Correct. Identical label sets match automatically in one-to-one operations.

Why this answer

By default, PromQL performs a one-to-one match when the label sets of both vectors are identical.

43
Multi-Selecthard

Which THREE components are typically involved in the standard Prometheus instrumentation and scraping process?

Select 3 answers
A.Grafana
B.Client library
C.Alertmanager
D.Exporter
E.Prometheus server
AnswersB, D, E

Used to instrument the code.

Why this answer

The process involves the application (instrumented via client library), the exporter (or the application itself), and the Prometheus server (the scraper).

44
Multi-Selecthard

Which TWO of the following statements regarding native histograms in Prometheus are correct? (Choose TWO)

Select 2 answers
A.Native histograms require users to manually pre-define explicit bucket boundaries in application code.
B.The histogram_quantile() function can evaluate native histograms directly.
C.Native histograms store bucket distributions within a single time series sample.
D.Native histograms are incompatible with all rate-related PromQL functions.
E.Native histograms double the memory consumption of traditional counters.
AnswersB, C

Correct. histogram_quantile() supports native histograms seamlessly.

Why this answer

Native histograms store multiple buckets within a single chunk/sample, reducing storage overhead and allowing dynamic bucket resolutions.

45
MCQhard

When using the 'repeat_interval' in Alertmanager, what does it define?

A.The timeout for the receiver
B.The TTL of the alert
C.How long to wait before firing
D.How often to resend firing alerts
AnswerD

It controls the frequency of notification reminders.

Why this answer

The repeat_interval defines how long to wait before re-sending a notification for an alert that is still active.

46
MCQeasy

Which component is best suited for long-term storage?

A.The local TSDB
B.Pushgateway
C.Remote write storage
D.Alertmanager
AnswerC

Remote write allows offloading data to long-term storage providers.

Why this answer

Prometheus is not designed for indefinite storage; external remote write storage is needed for long-term retention.

47
Multi-Selectmedium

Which THREE of these represent the Four Golden Signals?

Select 3 answers
A.Memory Usage
B.Errors
C.Traffic
D.Availability
E.Latency
AnswersB, C, E

A Golden Signal.

Why this answer

Latency, Traffic, Errors, and Saturation are the set.

48
MCQhard

Which Alertmanager feature would you use to prevent a 'ServiceDown' alert from firing if a 'GlobalNetworkOutage' alert is already active?

A.Grouping
B.Inhibition
C.Silencing
D.Routing
AnswerB

Inhibition suppresses alerts based on the existence of another.

Why this answer

Inhibition rules allow one alert to suppress another based on matching labels.

49
MCQhard

A Histogram has buckets [0.1, 0.5, 1, 5]. A request takes 0.7 seconds. Which buckets will be incremented?

A.1, 5
B.None
C.0.1, 0.5
D.Only 1
AnswerA

The counter increments for every bucket greater than or equal to the observation.

Why this answer

Histograms are cumulative. A value of 0.7 falls into the 1 and 5 buckets (because 0.7 <= 1 and 0.7 <= 5).

50
MCQhard

You need to perform a binary operation between two vectors where the left vector has labels {job="api", instance="a"} and the right vector has labels {job="api"}. You want to match them using the job label while retaining the instance label from the left side. Which modifier configuration is correct?

A.vector_a * on(instance) group_left(job) vector_b
B.vector_a * on(job) group_right(instance) vector_b
C.vector_a * on(job) group_left(instance) vector_b
D.vector_a * ignoring(instance) group_left vector_b
AnswerC

Correct. on(job) matches on job, and group_left(instance) pulls the instance label from the left side.

Why this answer

To match on a subset of labels while retaining extra labels on the left side during a one-to-many or many-to-one operation, group_left must be used with the on modifier.

51
MCQeasy

Which of the following selectors matches metric names that start with 'http_'?

A.http_*(5m)
B.{__name__=~"http_.*"}
C.{metric=~"http_.*"}
D.{__name__="http_*"}
AnswerB

Using the internal '__name__' label with the '=~' regex operator matches metric names starting with 'http_'.

Why this answer

The regex matcher '=~' is used with regular expressions, and '^' anchors the match to the beginning of the string.

52
MCQeasy

You need to track the number of requests received by your application. Which metric type should you choose?

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

Counters are designed for monotonically increasing values like request counts.

Why this answer

A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.

53
Multi-Selecthard

When performing vector matching between two vectors of different cardinalities, which THREE vector matching modifiers can be used? (Choose three)

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

'on' restricts which labels are used for matching.

Why this answer

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

54
Multi-Selecthard

Which THREE of the following are standard ways to handle Prometheus metrics?

Select 3 answers
A.Directly update Prometheus files on disk
B.Use official client libraries
C.Use the node_exporter textfile collector
D.Write metrics to a central database
E.Run community-supported exporters
AnswersB, C, E

Correct.

Why this answer

Common methods include using official client libraries, using exporters, and the textfile collector.

55
Multi-Selecthard

Which THREE of the following metrics are automatically added to all scraped targets?

Select 3 answers
A.cpu_usage
B.up
C.memory_usage
D.scrape_samples_scraped
E.scrape_duration_seconds
AnswersB, D, E

Indicates scrape success.

Why this answer

Prometheus adds specific metadata labels such as up, scrape_duration, and scrape_samples_scraped.

56
MCQhard

When configuring Alertmanager 'group_by' settings, what happens if you include a label that is not present on an incoming alert?

A.The alert is dropped
B.The alert triggers an error in the logs
C.The routing rule fails
D.The alert is grouped under a null value
AnswerD

Alerts with missing grouping labels are grouped together in a default bucket.

Why this answer

Alertmanager groups alerts based on the defined labels. If a label is missing, the alert is still processed, but it will fall into a 'null' or 'none' bucket for that specific grouping key.

57
MCQeasy

A Prometheus selector includes a negative regex match for environment names: 'environment!="staging"'. Which selector operator achieves this using regular expressions instead of exact matching?

A.environment!~"staging"
B.environment!regex("staging")
C.environment!match("staging")
D.environment!="staging"
AnswerA

The '!~' operator performs a negative regular expression match.

Why this answer

The '!=' operator is for exact inequality, while '!~' is the negative regular expression match operator in PromQL.

58
MCQmedium

When writing a custom exporter in Python, what is the most common way to expose the metrics?

A.Using start_http_server()
B.Writing to a file
C.Using a message queue
D.Using a database connection
AnswerA

This is the idiomatic way to expose metrics in the Python library.

Why this answer

The prometheus_client library provides a start_http_server() method to expose metrics on a specified port.

59
MCQeasy

Which of these is considered a 'counter' in Prometheus?

A.Temperature of a server room.
B.Average latency over 5 minutes.
C.Current memory usage of a process.
D.Total number of HTTP requests processed.
AnswerD

This is a classic counter.

Why this answer

A counter is a cumulative metric that only ever goes up, used for things like request totals.

60
Multi-Selecthard

Which TWO are true about Prometheus alerting rules?

Select 2 answers
A.They use PromQL expressions for evaluation.
B.They are evaluated by the Prometheus server.
C.They always trigger a system restart.
D.They are sent to the exporter.
E.They require a separate database.
AnswersA, B

Rules are PromQL expressions.

Why this answer

Alerts are evaluated on the server, and they use PromQL for condition checking.

61
MCQhard

You have a global Alertmanager configuration where you want to suppress 'DiskSpaceLow' alerts if 'InstanceDown' is active for the same host. Which mechanism accomplishes this?

A.Inhibition rules
B.Route tree
C.Repeat intervals
D.Grouping
AnswerA

Inhibit_rules match labels between a source alert and a target alert to suppress the latter.

Why this answer

Inhibition rules in Alertmanager are designed to silence alerts based on labels that match between the firing alert and the inhibited alert.

62
MCQeasy

Which of the following is a correct unit suffix for Prometheus metrics?

A._total
B._sum
C._count
D._seconds
AnswerD

Units like _seconds or _bytes are recommended.

Why this answer

Prometheus recommends using base units (e.g., seconds for duration, bytes for memory) and appending the unit to the name.

63
MCQhard

You are seeing 'Too many active series' in your Prometheus logs. Which action should be your first priority to address this?

A.Switch to a different monitoring tool.
B.Disable all alerting rules.
C.Analyze the number of active series per label name.
D.Increase Prometheus memory limits.
AnswerC

This helps isolate the source of high cardinality.

Why this answer

Identifying which labels are causing the high cardinality is the standard first step to prevent OOM (Out Of Memory) crashes.

64
MCQmedium

Why might you use an 'exporter' in Prometheus?

A.To bridge non-Prometheus metrics to Prometheus format.
B.To increase the scrape interval.
C.To secure the Prometheus server.
D.To push logs to Prometheus.
AnswerA

Exporters perform the necessary translation.

Why this answer

Exporters are used to convert metrics from systems that don't natively expose Prometheus format into something Prometheus can scrape.

65
MCQeasy

Where do you define the threshold for a Prometheus alerting rule?

A.In the 'labels' field
B.In the Alertmanager config
C.In the 'expr' field
D.In the Grafana panel
AnswerC

The query expression contains the threshold logic.

Why this answer

The threshold is part of the PromQL query expression within the 'expr' field of the alerting rule.

66
MCQmedium

A legacy batch job runs once per day and finishes in seconds. Why is a standard Prometheus pull model inadequate here?

A.The data is too large for memory.
B.Pull model is insecure.
C.Prometheus cannot scrape batch jobs.
D.The job is too fast for HTTP polling.
AnswerD

Pulling requires the target to be available when the scrape occurs.

Why this answer

Prometheus pull intervals are typically set to seconds or minutes; a job that finishes quickly might never be 'up' when Prometheus scrapes it.

67
MCQhard

You are joining an instant vector of application versions with an instant vector of metrics using a many-to-one relationship. The application version vector has more labels than the metric vector. Which keyword must be appended to the matching modifier to include labels from the 'many' side?

A.group_left
B.include_labels
C.keep_all
D.group_right
AnswerA

Correct. group_left allows labels from the 'many' side to be included in the result.

Why this answer

In many-to-one or one-to-many matches, group_left or group_right must be provided to specify which side supplies additional labels.

68
MCQmedium

You want to notify different teams based on the 'service' label of an alert. Where should you configure this logic?

A.In the node exporter config
B.In the Grafana data source
C.In the Alertmanager configuration
D.In the Prometheus alerting rule
AnswerC

Routing logic is defined in the Alertmanager config file.

Why this answer

The Alertmanager configuration file contains the routing tree that maps alerts to receivers based on labels.

69
Multi-Selecthard

Which THREE of the following are key design considerations when creating a custom exporter?

Select 3 answers
A.Only export metrics once a day
B.Expose metrics in Prometheus text format
C.Avoid high cardinality in labels
D.Ensure scraping performance is efficient
E.Use JSON for metric output
AnswersB, C, D

Correct.

Why this answer

Key factors include avoiding high cardinality, ensuring the metrics are exposed via HTTP, and keeping performance overhead low.

70
Multi-Selecteasy

Which TWO of the following are primary components of the Prometheus monitoring architecture?

Select 2 answers
A.Fluentd
B.Alertmanager
C.Zipkin
D.Prometheus Server
E.Kibana
AnswersB, D

The core alert handler.

Why this answer

Prometheus server and Alertmanager are central components; Grafana and exporters are common but auxiliary or distinct tools.

71
MCQeasy

You are monitoring a Linux server and need to track CPU usage. Which exporter is the standard choice for exposing hardware and OS metrics?

A.mysqld_exporter
B.blackbox_exporter
C.pushgateway
D.node_exporter
AnswerD

node_exporter provides comprehensive hardware and OS metrics.

Why this answer

node_exporter is the standard Prometheus exporter for hardware and OS metrics exposed by *NIX kernels.

72
MCQmedium

Which of the following describes the 'pull' model's benefit regarding service discovery?

A.Prometheus is always the first to start.
B.Targets push data when they are ready.
C.It reduces network traffic.
D.Targets don't need to know where Prometheus is.
AnswerD

Prometheus finds the targets.

Why this answer

Prometheus can dynamically discover targets (via Kubernetes API, Consul, etc.) and automatically start scraping, removing the need to register every new pod.

73
Multi-Selectmedium

Which TWO of the following are true about the Gauge metric type?

Select 2 answers
A.Values can only increase
B.Calculates quantiles
C.Values are always integers
D.Used for memory usage
E.Values can increase and decrease
AnswersD, E

Correct.

Why this answer

Gauges allow values to fluctuate and are often used for memory, CPU, or queue length.

74
Multi-Selecteasy

Which TWO of the following are valid fields in a Prometheus alerting rule definition?

Select 2 answers
A.expr
B.timeout
C.retries
D.target
E.alert
AnswersA, E

Mandatory query expression.

Why this answer

A rule must have an 'alert' name and an 'expr' query.

75
Multi-Selecteasy

Which TWO of the following are valid data types returned by PromQL queries? (Choose two)

Select 2 answers
A.Histogram matrix
B.Range vector
C.Log stream
D.Instant vector
E.Distributed trace
AnswersB, D

A range vector is a fundamental PromQL result type containing a set of data points over a time range for each time series.

Why this answer

PromQL queries evaluate to one of four types: instant vector, range vector, scalar, or string.

Page 1 of 5

Page 2

All pages