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

Question:
Which of the following are valid timestamp metrics in PromQL?

  1. time()
  2. timestamp()
  3. unixtime()
  4. floor()
Answer:
A, B - time() function returns the current Unix timestamp in seconds, whereas timestamp() function returns the Unix timestamp of the sample in seconds since January 1, 1970 UTC