PCA Cheat Sheet 2026
The 30 highest-yield PCA facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
60 questions
90 min time limit
75.00% to pass
- What is the Prometheus exposition format, and which content type does it use? → A text-based line format exposed over HTTP with Content-Type: text/plain; version=0.0.4
- What content type must a Prometheus metrics endpoint return for the text exposition format? → text/plain; version=0.0.4
- What happens to 'job' and 'instance' labels when metrics are federated from one Prometheus server to another? → They are preserved as-is from the originating Prometheus server
- In Prometheus web configuration, what does the `http2` field control? → Whether Prometheus serves its own API over HTTP/2
- Which flag controls how long Prometheus retains data when using time-based retention? → --storage.tsdb.retention.time
- What is the role of Grafana in Prometheus? → To visualize data in dashboards
- How are Prometheus metrics structured? → As logs and alerts
- Which exporter is the standard choice for exposing Linux host-level metrics such as CPU, memory, and disk? → node_exporter
- What does the `remote_read` configuration in Prometheus enable? → Querying historical data from a remote storage backend when local data is unavailable
- How does Prometheus handle a bearer token stored in a file for scrape authentication? → It reads the token file on each scrape, automatically picking up rotated tokens
- Which Prometheus configuration option allows scraping a target that uses a self-signed TLS certificate without verification? → insecure_skip_verify: true
- What OAuth2 configuration capability does Prometheus support natively in scrape_configs? → Client credentials flow to obtain a bearer token before scraping
- What is the main purpose of metrics in Prometheus? → To provide quantitative data on system performance
- Which exporter is the standard choice for exposing Linux/Unix OS-level metrics like CPU, memory, and disk to Prometheus? → node_exporter
- What is the primary role of a Prometheus exporter? → Translating third-party system metrics into Prometheus exposition format
- What is the purpose of `ca_file` in a Prometheus tls_config block? → It specifies the CA certificate used to verify the target's TLS certificate
- In Prometheus, what is the role of `source_labels` in a relabel_configs entry? → They specify which existing labels are read as input for the relabeling action
- Why is it important to set up proper alerting in Prometheus? → To detect and address issues proactively
- What does the `labelmap` action in relabel_configs do? → Copies all labels matching a regex into new labels with transformed names
- In Prometheus file-based service discovery, which file format is used to define static targets? → JSON or YAML
- Which mutual TLS (mTLS) configuration field in Prometheus scrape_config specifies the client certificate to present to the target? → cert_file under tls_config
- When using Kubernetes service discovery, which role discovers individual pod endpoints rather than services? → pod
- How can Prometheus data be exported for external analysis? → By exporting to CSV
- What is the Prometheus pushgateway used for? → Accepting metrics pushed by short-lived jobs that cannot be scraped
- What naming convention does Prometheus recommend for recording rule metric names? → level:metric:operations (e.g., job:http_requests_total:rate5m)
- What is a key drawback of using the Prometheus Pushgateway for all metrics collection? → It can serve stale metrics from jobs that have already finished, masking failures
- What is the primary role of Prometheus in monitoring? → To visualize data
- What is the security benefit of using Prometheus's `--storage.tsdb.no-lockfile` flag in specific deployments? → It allows multiple read-only Prometheus instances to share the same TSDB directory safely
- Which Prometheus configuration block allows per-target scrape parameter overrides such as custom query params? → params
- How does Prometheus scrape the blackbox_exporter to probe a specific target URL? → The target URL is passed as a query parameter (?target=) in the scrape URL
Turn these facts into recall: