






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































































Question 1. What is the primary goal of observability in modern systems? A) To generate logs for all system events B) To provide actionable insights into system health and behavior C) To automate deployments D) To reduce hardware costs Answer: B Explanation: Observability aims to give deep insight into system health, performance, and behavior to support troubleshooting and ensure system reliability. Question 2. Which of the following is NOT considered an observability data type? A) Metrics B) Logs C) Backups D) Traces Answer: C Explanation: Backups are not an observability data type; metrics, logs, and traces are the key types. Question 3. In the context of observability, which data type would best show the rate of HTTP requests over time? A) Log B) Metric C) Trace D) Span Answer: B Explanation: Metrics are quantitative measurements over time, such as the rate of HTTP requests. Question 4. What differentiates the pull model from the push model in monitoring? A) Pull model requires agents to send data B) Pull model has the monitoring system request data from targets
C) Push model requests data from targets D) Pull model is not supported by Prometheus Answer: B Explanation: In the pull model, the monitoring system (like Prometheus) pulls data from targets at intervals. Question 5. Why does Prometheus primarily use a pull model for data collection? A) It is the only available model B) It makes dynamic service discovery easier C) It saves storage D) It prevents data loss Answer: B Explanation: Pulling data allows Prometheus to easily discover new targets and adapt to changes in infrastructure. Question 6. Which service discovery mechanism is natively supported by Prometheus for container orchestration? A) Consul B) Kubernetes C) EC D) Zookeeper Answer: B Explanation: Prometheus natively supports Kubernetes for automatic service discovery in containerized environments. Question 7. What is the main purpose of an SLO (Service Level Objective)? A) To define user access permissions B) To specify a target level of service reliability C) To monitor system logs D) To describe hardware requirements
Question 11. What is the function of the Pushgateway in Prometheus? A) To store time-series data long-term B) To allow ephemeral jobs to push metrics C) To provide dashboards D) To manage alert rules Answer: B Explanation: The Pushgateway allows short-lived jobs to push their metrics to Prometheus. Question 12. In which file are scrape jobs defined for Prometheus? A) prometheus.conf B) prometheus.yml C) prometheus.json D) scrape_jobs.yaml Answer: B Explanation: The prometheus.yml file contains configuration, including scrape jobs. Question 13. What is a ‘job’ in Prometheus configuration? A) A background process B) A target group for metric collection C) A Linux service D) A dashboard Answer: B Explanation: In Prometheus, a job groups a set of targets for scraping metrics. Question 14. What is a label in Prometheus? A) A name for a dashboard B) A key-value pair that provides metadata for time-series C) A type of exporter D) A storage backend
Answer: B Explanation: Labels are key-value pairs attached to time-series, providing metadata for filtering and aggregation. Question 15. Which format is used by Prometheus for metric exposition? A) XML B) JSON C) Text-based format D) YAML Answer: C Explanation: Prometheus uses a simple text-based exposition format for metrics. Question 16. What is a scalability limitation of Prometheus? A) It cannot scrape more than 10 targets B) It does not support distributed storage natively C) It does not support any exporters D) It cannot generate alerts Answer: B Explanation: Prometheus is not natively distributed, limiting vertical scalability; tools like Thanos help with this. Question 17. Thanos is used with Prometheus to solve which problem? A) Lack of a UI B) Distributed storage and long-term retention C) Exporter configuration D) SLI measurements Answer: B Explanation: Thanos extends Prometheus for distributed storage and long-term data retention.
D) To convert metrics to logs Answer: B Explanation: rate() calculates the per-second rate of increase for counters over a specified range. Question 22. Which PromQL function is used to calculate the increase in a counter over a time period? A) rate() B) increase() C) avg() D) irate() Answer: B Explanation: increase() gives the total increase of a counter over a specified time range. Question 23. In PromQL, what does the on() clause specify in a binary operation? A) The source of data B) The labels to match for the operation C) The alert level D) The server name Answer: B Explanation: on() defines which labels must match when combining two sets of time series. Question 24. What is a histogram in Prometheus metrics? A) A log file B) A metric type that samples observations into configurable buckets C) A type of dashboard D) An alert Answer: B Explanation: Histograms collect observations into buckets, useful for measuring distributions like latency.
Question 25. Which Prometheus client library is commonly used for Go applications? A) prometheus_client_python B) prometheus_client_java C) prometheus/client_golang D) prometheus_ruby Answer: C Explanation: The official Prometheus client library for Go is prometheus/client_golang. Question 26. What is a best practice when naming metrics in Prometheus? A) Use spaces in names B) Use snake_case and meaningful names C) Use random strings D) Use all uppercase Answer: B Explanation: Using snake_case and descriptive names improves readability and maintainability. Question 27. What does high cardinality mean in Prometheus? A) A metric with many values B) A metric with many unique label combinations C) A metric with a high sum value D) A metric using histograms Answer: B Explanation: High cardinality refers to metrics with a large number of unique label sets, which can impact performance. Question 28. Which exporter is commonly used to collect hardware and OS metrics? A) Node Exporter B) Blackbox Exporter C) MySQL Exporter
A) By disabling exporters B) By reducing label cardinality C) By increasing scrape interval D) By using more dashboards Answer: B Explanation: Reducing the number of unique label combinations lowers the total time series stored. Question 33. Which Prometheus metric type would you use to count total HTTP requests? A) Counter B) Gauge C) Histogram D) Summary Answer: A Explanation: Counters are used for values that only increase, such as total requests. Question 34. What is the primary difference between a histogram and a summary in Prometheus? A) Histograms are for logs, summaries for traces B) Histograms aggregate values into buckets, summaries compute quantiles directly C) Summaries are for counters only D) Histograms are not supported Answer: B Explanation: Histograms provide bucketed aggregations; summaries calculate quantiles but are not aggregatable across instances. Question 35. What does the avg() aggregation operator do in PromQL? A) Sums all values B) Returns the minimum value C) Computes the average across all selected time series D) Increases all values
Answer: C Explanation: avg() calculates the mean value across all selected time series. Question 36. Which PromQL operator would you use to compare the values of two time series? A) + B) == C) and D) All of the above Answer: D Explanation: PromQL supports arithmetic (+), comparison (==), and logical (and) binary operators. Question 37. What is the result of using the irate() function in PromQL? A) The average increase over a range B) The per-second instant rate of increase based on the last two data points C) The sum of all values D) The minimum value Answer: B Explanation: irate() computes the per-second rate using only the two most recent data points. Question 38. Which Prometheus exporter is used for probing endpoints using HTTP, TCP, and ICMP? A) Node Exporter B) Blackbox Exporter C) MySQL Exporter D) SNMP Exporter Answer: B Explanation: Blackbox Exporter allows probing of endpoints via various protocols for availability and latency. Question 39. What label format is considered best practice for Prometheus metrics?
Explanation: Grafana enables rich visualization of Prometheus data via customizable dashboards. Question 43. Which statement about Prometheus counters is correct? A) Counters can decrease B) Counters reset to zero on restart C) Counters are only for string values D) Counters cannot be used for HTTP requests Answer: B Explanation: Counters only increase, but they reset to zero if the process restarts. Question 44. What is the purpose of the group_left modifier in PromQL? A) To join two vectors with more labels on the right side B) To join with more labels on the left side C) To increase performance D) To sum values Answer: A Explanation: group_left allows matching when the right-hand vector has more unique label sets. Question 45. Which operator is used to filter metrics by label in PromQL? A) = B) =~ C) != D) All of the above Answer: D Explanation: PromQL supports =, !=, =, and! for label filtering. Question 46. What does the scrape_interval parameter control in prometheus.yml? A) How often Prometheus scrapes targets B) How many targets to scrape
C) The retention time of data D) The number of alert rules Answer: A Explanation: scrape_interval sets the frequency with which Prometheus scrapes metrics from targets. Question 47. What happens if a Prometheus target exposes invalid exposition format? A) Data is collected as normal B) Data is ignored and an error is logged C) Prometheus restarts D) Alertmanager is triggered Answer: B Explanation: Prometheus ignores invalid data and logs an error for troubleshooting. Question 48. Which metric type in Prometheus should be used for tracking current temperature? A) Counter B) Gauge C) Histogram D) Summary Answer: B Explanation: Gauges track values that can increase or decrease, such as temperature. Question 49. What is the role of the match[] parameter in PromQL? A) To specify which labels to use B) To select which time series to query C) To set the scrape interval D) To define an alert Answer: B Explanation: match[] selects which time series are returned, using label matchers.
Answer: B Explanation: Prometheus serves its web UI on port 9090 by default. Question 54. Which Prometheus component manages alert notification integrations (e.g., email, Slack)? A) Prometheus server B) Pushgateway C) Alertmanager D) Node Exporter Answer: C Explanation: Alertmanager routes alerts to external notification systems. Question 55. Which Prometheus exporter is best for instrumenting MySQL databases? A) Node Exporter B) Blackbox Exporter C) MySQL Exporter D) SNMP Exporter Answer: C Explanation: The MySQL Exporter collects MySQL-specific metrics for Prometheus. Question 56. What is the primary use case for the Prometheus remote_write feature? A) Writing data to local disk B) Sending data to long-term storage or external systems C) Generating dashboards D) Configuring alerts Answer: B Explanation: remote_write allows Prometheus to send data to remote storage backends for long-term retention. Question 57. Which function in PromQL calculates the maximum value across time series?
A) max() B) sum() C) rate() D) increase() Answer: A Explanation: max() returns the highest value among selected time series. Question 58. What is the role of relabel_configs in Prometheus? A) To store metrics B) To modify target labels before scraping C) To configure alerts D) To change data retention Answer: B Explanation: relabel_configs are used to adjust, add, or remove labels from scraped targets. Question 59. What is the default storage engine for Prometheus? A) LevelDB B) TSDB (Time Series Database) C) MySQL D) SQLite Answer: B Explanation: Prometheus uses a custom TSDB for efficient time-series storage. Question 60. What is the effect of increasing the scrape_interval in Prometheus? A) More frequent data collection B) Less frequent data collection C) More targets scraped D) More alerts generated Answer: B
B) Gauge C) Histogram D) Summary Answer: C Explanation: Histograms are designed to measure distributions, such as request duration. Question 65. Which section of prometheus.yml configures Alertmanager integration? A) alert_rules B) alerting C) alertmanager_configs D) alert_config Answer: B Explanation: The alerting section specifies how Prometheus connects to Alertmanager. Question 66. What is the effect of using the ignoring() clause in PromQL binary operations? A) It ignores the metric name B) It ignores specified labels when matching vectors C) It ignores all results D) It increases performance Answer: B Explanation: ignoring() tells PromQL which labels to disregard during vector matching. Question 67. What is the outcome of configuring multiple scrape jobs in Prometheus? A) Only one job is used B) Prometheus scrapes metrics from multiple sets of targets C) Scraping is disabled D) Data retention increases Answer: B Explanation: Multiple scrape jobs enable collection from diverse target groups.
Question 68. Which metric type in Prometheus is suitable for values that only increase? A) Gauge B) Counter C) Histogram D) Summary Answer: B Explanation: Counters represent monotonically increasing values. Question 69. How does Prometheus handle duplicate time series from the same target? A) It stores all duplicates B) It merges them C) It overwrites old samples with new ones D) It deletes the data Answer: C Explanation: Prometheus overwrites previous samples with the same timestamp and label set. Question 70. Which Prometheus function would you use to compute the difference between the latest and earliest values in a range vector? A) avg() B) sum() C) increase() D) irate() Answer: C Explanation: increase() computes the total increase over the range. Question 71. Which of the following is NOT a Prometheus metric type? A) Counter B) Gauge