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

Question:
Which of the following is an example of a log that could be collected to diagnose an issue in a distributed system?

  1. A record of all requests made to the system
  2. A record of all errors that occur in the system
  3. A record of all CPU usage by the system
  4. A record of all network traffic to and from the system
Answer:
B - correct answer. Logs are used to capture data about the behavior of a system. In a distributed system, it can be challenging to identify the root cause of an issue because requests may be routed through multiple services. By collecting logs of all errors that occur in the system, it is possible to trace the error back to the point where it originated and to diagnose the issue