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

Question:
Which of the following CLI commands can be used for unit testing Prometheus rules?

  1. promutil check rules
  2. promtool test rules
  3. promutil test rules
  4. promtool check rules
Answer:
B - is correct answer
A, C - is incorrect as the Prometheus utility CLI is actually called promtool
D - is incorrect as the proper subcommand is test, not check. The check subcommand is used for checking the syntax validity of rule files, not for unit testing their rules