PCA Federation & Remote Storage Flashcards
21 cards from real PCA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 20 PCA Federation & Remote Storage flashcards as text
What is the primary purpose of Prometheus federation?
Answer: Aggregating metrics from multiple Prometheus servers into a single instance
Federation allows one Prometheus server to scrape selected metrics from another, enabling hierarchical aggregation across clusters or data centers.
Which HTTP endpoint must be exposed on a Prometheus server for another Prometheus to federate from it?
Answer: /federate
The /federate endpoint is specifically designed to allow other Prometheus servers to scrape selected time series from it.
Which query parameter is required when scraping the /federate endpoint to specify which metrics to pull?
Answer: match[]=
The match[] parameter accepts one or more instant vector selectors to specify which metric series should be included in the federation response.
What is the primary use case for hierarchical federation in a large enterprise environment?
Answer: Collecting aggregated metrics from multiple data centers into a global Prometheus
Hierarchical federation is used to build a global Prometheus that scrapes aggregated or pre-recorded metrics from datacenter-level Prometheus servers.
What does the remote_write configuration block in prometheus.yml enable?
Answer: Forwarding sampled metrics to a remote storage backend in near-real-time
remote_write sends metric samples to a compatible remote storage endpoint as they are ingested, enabling long-term or scalable storage.
Which encoding format does Prometheus use by default when sending data via remote_write?
Answer: Protocol Buffers with Snappy compression over HTTPS
Prometheus remote_write serializes metric samples using Protocol Buffers and compresses the payload with Snappy before sending over HTTP(S).
What is the purpose of the remote_read configuration in Prometheus?
Answer: Querying historical metric data from a remote storage system to satisfy PromQL queries
remote_read allows Prometheus to transparently query a remote storage backend for historical data when the local TSDB does not cover the requested time range.
In cross-service federation, which metrics are typically federated up to a global Prometheus server?
Answer: Pre-aggregated or recording-rule-generated metrics relevant at the global level
Cross-service federation is used to pull a curated subset of high-level metrics (often generated by recording rules) rather than all raw data, keeping the global Prometheus lean.
What happens to 'job' and 'instance' labels when metrics are federated from one Prometheus server to another?
Answer: They are preserved as-is from the originating Prometheus server
Federation scrape configs set honor_labels: true so the source job and instance labels are kept. The default is false, in which case conflicting labels are renamed with an exported_ prefix, so it must be set explicitly.
Which open-source project extends Prometheus with global query capability and long-term object storage integration?
Answer: Thanos
Thanos adds a sidecar to Prometheus that uploads blocks to object storage (e.g., S3, GCS) and provides a global query layer across multiple Prometheus instances.
What does the queue_config section within a remote_write block control?
Answer: Tuning parameters for the in-memory send queue such as capacity, batch size, and retry behavior
queue_config lets operators tune how many samples are buffered, how large each batch is, and how Prometheus handles backpressure or failures when writing to remote storage.
Which long-term Prometheus storage solution is developed and maintained by Grafana Labs?
Answer: Mimir
Grafana Mimir is the current open-source, horizontally scalable long-term storage solution for Prometheus developed by Grafana Labs, succeeding Cortex.
What does setting 'honor_labels: true' in a Prometheus scrape_config do when used for federation?
Answer: Preserves labels from the scraped target when they conflict with externally-set labels
honor_labels: true instructs Prometheus to keep the target's own labels intact instead of overwriting them with external labels like job or instance defined in the scrape config.
What flag must be passed to a Prometheus server to allow it to accept remote_write data from other Prometheus instances?
Answer: --web.enable-remote-write-receiver
The --web.enable-remote-write-receiver flag activates the /api/v1/write endpoint so that Prometheus can act as a remote_write target for other Prometheus servers.
What is 'cross-shard' federation typically used for in large-scale Prometheus deployments?
Answer: Merging metrics from multiple Prometheus shards that each scrape a subset of targets
When a single Prometheus cannot scrape all targets, multiple shards each cover a subset; a federation layer then pulls aggregated metrics from all shards into a unified view.
What does the 'write_relabel_configs' option inside a remote_write block allow you to do?
Answer: Filter or transform metric series before they are sent to the remote storage endpoint
write_relabel_configs applies relabeling rules to metric series just before remote_write sends them, allowing operators to drop, modify, or filter metrics destined for remote storage.
What is the main advantage of Cortex or Thanos over a standalone Prometheus for production long-term storage?
Answer: They provide horizontally scalable, multi-tenant storage with global query capability across instances
Cortex and Thanos both decouple storage from individual Prometheus instances, enabling scalable multi-tenant long-term retention and unified querying across many Prometheus servers.
When configuring the match[] parameter on the /federate endpoint, which selector would correctly fetch all metrics from the 'node' job?
Answer: {job="node"}
The match[] parameter accepts standard PromQL instant vector selectors using curly-brace syntax, so {job="node"} is the correct form to select all series for the node job.
What are 'exemplars' in Prometheus and how do they relate to remote storage?
Answer: Trace ID references attached to metric observations that can be forwarded via remote_write
Exemplars are optional trace ID references attached to individual samples, typically counters and histogram buckets. With exemplar storage enabled, Prometheus can forward them via remote_write to link metrics to traces.
What is the purpose of a 'stale marker' sent by Prometheus via remote_write?
Answer: Signaling to the remote storage backend that a time series has stopped being scraped
When Prometheus detects that a target is no longer producing a metric (e.g., the target disappeared), it sends a special NaN stale marker so remote storage can properly close that series.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- training.linuxfoundation.org — Test delivery, eligibility, exam information · verified Oct 2026
- cncf.io — Fees, retake policy · verified Oct 2026
- docs.linuxfoundation.org — Registration deadline, exam format, score release, time limit, passing score, renewal, score validity · verified Oct 2026