Skip to content

Prometheus and Metrics Questions

Practice questions for Prometheus and Metrics topic in Kubernetes and Cloud Native Associate. 16 questions covering this domain.

16 questions2 easy8 medium6 hard
Q1
medium

A team needs a component in the Prometheus ecosystem to handle alerts after rules fire. Which component should they use?

Q2
medium

How does Prometheus primarily collect metrics from targets?

Q3
hard

A team configures a Prometheus rule that triggers an alert when the error rate of an API exceeds 5% for five minutes. After the alert fires, it is rec...

Q4
easy

What data format does Prometheus use to expose metrics from applications and services for scraping?

Q5
hard

A finance team wants to use Prometheus as the sole source of truth for exact customer billing. What is the main concern?

Q6
medium

A batch job finishes in seconds, usually before Prometheus can scrape it. How should the team expose its metrics most appropriately?

Q7
medium

During a planned maintenance window, on-call engineers want alerts suppressed temporarily without deleting the underlying alert rules. Which Alertmana...

Q8
medium

A team wants one latency metric to be sliced by service, region, and status code. In Prometheus, what enables that dimensional breakdown?

Q9
medium

A Prometheus Pushgateway is deployed to accept metrics from batch jobs that do not run a metrics endpoint. However, metrics from completed jobs remain...

Q10
hard

Prometheus uses a pull-based model for metrics collection. An application Pod has a /metrics endpoint but the kubelet's liveness probe also queries th...

Q11
hard

A Prometheus alert rule uses the query: `rate(http_requests_total[5m]) > 100`. The metric `http_requests_total` is a counter. An instance has not rece...

Q12
medium

A Prometheus scrape_configs entry is configured to scrape every 30 seconds. A metric change happens between scrapes. What is visible in the Prometheus...

Q13
hard

Why is Prometheus often considered useful during outages in a microservices environment?

Q14
easy

A nightly batch job runs for 20 seconds and cannot be scraped reliably while it is alive. In the Prometheus model, what component is commonly used to ...

Q15
hard

Why can Prometheus remain useful during an outage even when other infrastructure components are failing?

Q16
medium

A team wants one request metric to answer questions by service, region, and status code without creating separate metric names for each combination. W...

Sign in to see all 16 questions

Create a free account to browse the questions included with the free plan.