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

Question:
What is the purpose of the sort_desc function in PromQL?

  1. To sort metrics in descending order based on their value
  2. To sort metrics in ascending order based on their value
  3. To sort metrics alphabetically in descending order
  4. 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