Courseiva

CCNA Alerting And Dashboarding Questions

48 questions · Alerting And Dashboarding · All types, answers revealed

1
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.

2
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.

3
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.

4
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.

5
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.

6
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.

7
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.

8
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.

9
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.

10
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.

11
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.

12
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.

13
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.

14
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.

15
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.

16
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.

17
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.

18
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.

19
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'.

20
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.

21
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.

22
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.

23
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.

24
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.

25
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.

26
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.

27
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).

28
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.

29
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.

30
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.

31
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'.

32
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.

33
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.

34
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.

35
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.

36
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.

37
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'.

38
Multi-Selectmedium

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

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

Extends the firing state to buffer against noise.

Why this answer

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

39
MCQeasy

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

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

The Alertmanager UI specifically lists firing and inhibited alerts.

Why this answer

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

40
MCQmedium

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

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

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

Why this answer

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

41
MCQmedium

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

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

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

Why this answer

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

42
MCQmedium

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

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

Recording rules improve performance for expensive queries.

Why this answer

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

43
MCQmedium

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

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

Precomputing expensive queries improves dashboard performance significantly.

Why this answer

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

44
MCQmedium

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

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

It extends the firing state to smooth out minor fluctuations.

Why this answer

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

45
MCQeasy

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

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

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

Why this answer

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

46
MCQmedium

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

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

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

Why this answer

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

47
MCQhard

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

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

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

Why this answer

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

48
MCQmedium

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

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

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

Why this answer

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

Ready to test yourself?

Try a timed practice session using only Alerting And Dashboarding questions.