PCA PCA Federation & Remote Storage — Questions and Answers
Question 1: What is the primary purpose of Prometheus federation?
- Encrypting metrics at rest across clusters
- Aggregating metrics from multiple Prometheus servers into a single instance (Correct answer)
- Automatically discovering scrape targets across namespaces
- Connecting Prometheus directly to Grafana dashboards
Correct 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.
Question 2: Which HTTP endpoint must be exposed on a Prometheus server for another Prometheus to federate from it?
- /metrics
- /api/v1/query
- /federate (Correct answer)
- /api/v1/targets
Correct answer: /federate
The /federate endpoint is specifically designed to allow other Prometheus servers to scrape selected time series from it.
Question 3: Which query parameter is required when scraping the /federate endpoint to specify which metrics to pull?
- filter=
- match[]= (Correct answer)
- selector=
- metric_filter=
Correct answer: match[]=
The match[] parameter accepts one or more instant vector selectors to specify which metric series should be included in the federation response.
Question 4: What is the primary use case for hierarchical federation in a large enterprise environment?
- Sending alerts from multiple clusters to a single Alertmanager
- Collecting aggregated metrics from multiple data centers into a global Prometheus (Correct answer)
- Replicating raw metrics for high availability failover
- Reducing per-target scrape intervals across regions
Correct 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.
Question 5: What does the remote_write configuration block in prometheus.yml enable?
- Reading historical metrics from a remote TSDB
- Forwarding sampled metrics to a remote storage backend in near-real-time (Correct answer)
- Pushing alert rules to an external rules engine
- Streaming live metrics to connected Grafana instances
Correct 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.
Question 6: Which encoding format does Prometheus use by default when sending data via remote_write?
- JSON over plain HTTP
- MessagePack over WebSockets
- Protocol Buffers with Snappy compression over HTTPS (Correct answer)
- Avro with gzip compression over gRPC
Correct 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).
Question 7: What is the purpose of the remote_read configuration in Prometheus?
- Importing recording rules from a remote Prometheus instance
- Querying historical metric data from a remote storage system to satisfy PromQL queries (Correct answer)
- Receiving metrics pushed from remote exporters via HTTP
- Fetching service discovery target lists from a remote endpoint
Correct 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.
Question 8: In cross-service federation, which metrics are typically federated up to a global Prometheus server?
- Every raw metric from every service target
- Pre-aggregated or recording-rule-generated metrics relevant at the global level (Correct answer)
- Only metrics whose names start with a specific prefix
- Metrics that have been flagged by Alertmanager as critical
Correct 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.
Question 9: What happens to 'job' and 'instance' labels when metrics are federated from one Prometheus server to another?
- They are automatically dropped to avoid conflicts
- They are renamed with a 'source_' prefix by default
- They are preserved as-is from the originating Prometheus server (Correct answer)
- They are replaced by the federating server's own job and instance labels
Correct 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.
Question 10: Which open-source project extends Prometheus with global query capability and long-term object storage integration?
- Loki
- Thanos (Correct answer)
- Jaeger
- OpenTelemetry Collector
Correct 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.
Question 11: What does the queue_config section within a remote_write block control?
- The order in which scrape targets are processed
- Tuning parameters for the in-memory send queue such as capacity, batch size, and retry behavior (Correct answer)
- Priority levels assigned to individual metric series
- Alert notification delivery queues in Alertmanager
Correct 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.
Question 12: Which long-term Prometheus storage solution is developed and maintained by Grafana Labs?
- VictoriaMetrics
- Cortex
- Mimir (Correct answer)
- InfluxDB
Correct answer: Mimir
Grafana Mimir is the current open-source, horizontally scalable long-term storage solution for Prometheus developed by Grafana Labs, succeeding Cortex.
Question 13: What does setting 'honor_labels: true' in a Prometheus scrape_config do when used for federation?
- Enforces mandatory label requirements on all scraped metrics
- Preserves labels from the scraped target when they conflict with externally-set labels (Correct answer)
- Sorts all metric labels alphabetically before storage
- Validates that label names conform to Prometheus naming rules
Correct 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.
Question 14: What flag must be passed to a Prometheus server to allow it to accept remote_write data from other Prometheus instances?
- --web.enable-remote-write-receiver (Correct answer)
- --storage.tsdb.accept-remote-write
- --remote-write-listener
- --enable.push-receiver
Correct 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.
Question 15: What is 'cross-shard' federation typically used for in large-scale Prometheus deployments?
- Merging metrics from multiple Prometheus shards that each scrape a subset of targets (Correct answer)
- Distributing alert rule evaluation across multiple Prometheus servers
- Synchronizing recording rules between primary and replica Prometheus instances
- Load-balancing incoming metric push requests across a Prometheus cluster
Correct 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.
Question 16: What does the 'write_relabel_configs' option inside a remote_write block allow you to do?
- Rewrite alert expression syntax before forwarding to Alertmanager
- Filter or transform metric series before they are sent to the remote storage endpoint (Correct answer)
- Dynamically rename the remote_write URL based on metric labels
- Inject authentication headers into outbound remote write HTTP requests
Correct 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.
Question 17: What is the main advantage of Cortex or Thanos over a standalone Prometheus for production long-term storage?
- They support additional metric types not available in standard Prometheus
- They provide horizontally scalable, multi-tenant storage with global query capability across instances (Correct answer)
- They eliminate the need for any exporters by using agent-based metric push
- They automatically generate Grafana dashboards from ingested metric names
Correct 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.
Question 18: When configuring the match[] parameter on the /federate endpoint, which selector would correctly fetch all metrics from the 'node' job?
- {job~="node"}
- {job="node"} (Correct answer)
- job="node"
- match(job, "node")
Correct 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.
Question 19: What are 'exemplars' in Prometheus and how do they relate to remote storage?
- Special metric types used to track 99th-percentile latency without histograms
- Trace ID references attached to metric observations that can be forwarded via remote_write (Correct answer)
- Pre-computed aggregation values stored alongside raw histograms
- Configuration examples embedded in the prometheus.yml for documentation
Correct 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.
Question 20: What is the purpose of a 'stale marker' sent by Prometheus via remote_write?
- Marking metric series that have exceeded the local retention period for cleanup
- Signaling to the remote storage backend that a time series has stopped being scraped (Correct answer)
- Flagging series that have inconsistent or unexpected label set changes
- Indicating that the remote_write send queue has reached its capacity limit
Correct 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.
Question 21: In a Prometheus remote_write configuration, what does the 'url' field specify?
- The scrape URL of the target exporter to monitor
- The HTTP endpoint of the remote storage system that will receive the written metric samples (Correct answer)
- The Alertmanager endpoint where firing alerts should be sent
- The federation endpoint of another Prometheus server to pull metrics from
Correct answer: The HTTP endpoint of the remote storage system that will receive the written metric samples
The url field in remote_write defines the remote storage endpoint (such as a Thanos receive component or Cortex distributor) where Prometheus will POST metric samples.
What is the primary purpose of Prometheus federation?
What Practice Test Geeks adds beyond an AI chat for PCA
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length PCA mock exam — 60 questions in 90 minutes with a 75% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed PCA question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable PCA cheat sheet you can print or save as a PDF.
- PCA flashcards built from the same question bank.
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. Exam facts are checked against the official sources linked below. These questions were checked on Nov 17, 2026 by a two-pass AI cross-check against the official content outline and verified exam facts (2 of 21 corrected). 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