PCA Service Discovery & Targets Flashcards
6 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 6 PCA Service Discovery & Targets flashcards as text
Which Prometheus configuration block defines how targets are discovered dynamically in a Kubernetes cluster?
Answer: scrape_configs with kubernetes_sd_configs
The scrape_configs block with kubernetes_sd_configs enables Prometheus to dynamically discover targets in a Kubernetes cluster.
What is the purpose of the `relabel_configs` section in a Prometheus scrape job?
Answer: To rewrite or filter target labels before scraping
relabel_configs lets you rewrite, drop, or keep target labels before Prometheus scrapes them.
Which action in relabel_configs drops a target entirely from the scrape list?
Answer: drop
The `drop` action in relabel_configs removes a target if the source label value matches the specified regex.
In Prometheus file-based service discovery, which file format is used to define static targets?
Answer: JSON or YAML
File-based service discovery (file_sd_configs) reads target definitions from JSON or YAML files.
What does the `__address__` label represent in Prometheus service discovery?
Answer: The host:port of the scrape target
The __address__ label holds the host:port string that Prometheus will use to scrape a target.
Which service discovery mechanism allows Prometheus to discover targets registered in HashiCorp Consul?
Answer: consul_sd_configs
consul_sd_configs integrates Prometheus with HashiCorp Consul to dynamically discover services registered there.
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