PCA (Prometheus Certified Associate) sample exam question with answer 528
Question:
What is the purpose of the sort_desc function in PromQL?
- To sort metrics in descending order based on their value
- To sort metrics in ascending order based on their value
- To sort metrics alphabetically in descending order
- To sort metrics alphabetically in ascending order
Answer:
A - is the correct answer. The sort_desc function is used to sort metrics in descending order based on their value