PCA (Prometheus Certified Associate) sample exam question with answer 557

Question:
Which of the following can be used to drop specific Prometheus metrics upon ingestion?

  1. metric_relabel_configs with action labeldrop
  2. relabel_configs with action drop
  3. metric_relabel_configs with action drop
  4. relabel_configs with action keep
Answer:
C - is the correct answer. More at relabel_config and metric_relabel_configs
A - is incorrect as action labeldrop drops labels attached to a metric, not the entire metric
B, D - is incorrect as relabel_configs apply to targets, not metrics