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?
- promutil check rules
- promtool test rules
- promutil test rules
- 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