Prometheus Percipio Interview Question-Answer

Q.1 What are the types of monitoring available?

       A. Black box and White box monitoring

       B. Black box, White box and Gray box monitoring

       C. Gray box monitoring

       D. Black box monitoring

       E. White box monitoring

Ans : Black box and White box monitoring


Q.2 Garbage Collection (GC) is a _____ type of metric.

       A. App metric

       B. Network metric

       C. Platform metric

Ans : Platform metric


Q.3 Black box monitoring shows symptoms of the problem and underlying causes.

       A. False

       B. True

       C. Partly true. Shows the symptoms but not causes

       D. Partly true. Shows the causes but not symptoms

Ans : Partly true. Shows the symptoms but not causes


Q.4 When are push gateways used?

       A. When the metrics are not exposed in Prometheus understandable format

       B. When there are no metrics exposed

       C. When short-lived jobs are run

       D. All the options

Ans : All the options


Q.5 Prometheus supports Service Discovery.

       A. True

       B. False

Ans : True


Q.6 Prometheus is a ______ monitoring system.

       A. Pull based

       B. Push based

Ans : Pull based


Q.7 Prometheus is a unidimensional.

       A. True

       B. False

Ans : False


Q.8 Which is not a valid range vector selector?

       A. y years

       B. s seconds

       C. m months

       D. d days

Ans : m months


Q.9 Metrics in Prometheus are represented as __________.

       A. Graph DB

       B. Document DB

       C. Key-value pair

Ans : Key-value pair


Q.10 What are the metric operation Prometheus supports?

       A. Comparison Operations

       B. Aggregation Operations

       C. Arithmetic operations

       D. All the options

Ans : All the options


Q.11 Which is not a Prometheus data type?

       A. Scalar

       B. Array Vector

       C. Instant Vector

       D. Range Vector

Ans : Array Vector


Q.12 Alert state ‘Pending’ means ____________.

       A. The alert condition is met and the alert has occurred. It is moved ready to get notified at the receiver

       B. The alert is pending to get triggered from Prometheus server to Alert manager

       C. The alert condition is met and the alert has occurred. It is moved ready to get Alertmanager and yet to reach notification channel

Ans : The alert is pending to get triggered from Prometheus server to Alert manager


Q.13 Suppressing a specific set of alerts as some other related alerts are notified is called ___________.

       A. Grouping

       B. Inhibition

       C. Silencing

Ans : Inhibition


Q.14 Which are the external systems, Prometheus alertmanager supports to notify?

       A. Hipchat

       B. Slack

       C. Email

       D. Webhooks

       E. All the options

Ans : All the options


Q.15 Alerts can be queried real-time.

       A. Yes alerts can be queried only during Pending state

       B. Yes alerts can be queried when their state is either Pending or Firing

       C. Yes alerts can be queried during any state

       D. Alerts is not a valid time series metric available

Ans : Yes alerts can be queried only during Pending state


Q.16 _____ is used to push logs into Prometheus.

       A. None

       B. ELK

       C. Kafka

Ans : Kafka


Q.17 How can time series be queried for metrics?

       A. By metric name

       B. By instance

       C. By time

       D. All the options

Ans : By instance


Q.18 App metrics can be exposed to Prometheus by __________.

       A. Using node_exporter

       B. Scraping the app

       C. Instrumenting the app

       D. Alerting the metrics

Ans : Scraping the app


Q.19 Which of the following is not done by Alert Manager?

       A. Groups similar ones

       B. Updates alert messages

       C. Suppress alerts

       D. silences specific set of alerts

Ans : Groups similar ones


Q.20 Can Prometheus server scrape other Prometheus servers?

       A. No. Prometheus is only for node and app metrics monitoring

       B. Yes they can

Ans : Yes they can


Q.21 Does Prometheus support collecting metrics from third party systems?

       A. Yes, possible using various exporters available

       B. No. Metrics have to be exposed over an endpoint for Prometheus to scrape

Ans : Yes, possible using various exporters available


Q.22 Does Prometheus support creation of custom metrics?

       A. No

       B. Yes, it does

Ans : No


Q.23 To query 99th percentile response time, the metrics should be of type ________.

       A. gauge

       B. histogram

       C. counter

Ans : histogram


Q.24 Reads from TSDB are performed ______ and Writes are performed _________.

       A. Horizontally, Vertically

       B. No such direction restriction

       C. Vertically, Horizontally

Ans : Horizontally, Vertically


Q.25 Prometheus stores the logs of metrics and provide time series when needed.

       A. Possible as it stores the log files in the in-built database

       B. No. It stores only log files and cannot calculate metrics on logs on the fly

       C. No. It stores only time series metrics

Ans : Possible as it stores the log files in the in-built database


Q.26 _____ shows metrics at current time and _______ shows metrics over a range of time.

       A. Both Console and Graph displays current time over range of time

       B. Console, Graph

       C. Graph, Console

Ans : Both Console and Graph displays current time over range of time


Q.27 To view the instances that are down, how do you query?

       A. down==0

       B. up==1

       C. up==0

       D. down==1

Ans : down==0


Q.28 How do you monitor network devices using Prometheus?

       A. It is not possible to monitor network devices

       B. Using specific exporters like SNMP, it is possible

       C. Node_exporter will expose network devices’ related metrics

Ans : Using specific exporters like SNMP, it is possible


Q.29 Where is the scraping interval for Prometheus defined?

       A. prometheus.yml

       B. scrape.config

       C. Prometheus_rules

Ans : scrape.config


Q.30 Host based metrics are exposed only at ___________.

       A. /alerts end point

       B. /targets end point

       C. /metrics end point

Ans : /metrics end point


Q.31 Grafana is the only visualization tool supported by Prometheus to view metrics.

       A. True

       B. False

Ans : True


Leave a Comment