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

Question:
Which of the following best describes the difference between logs and events?

  1. Logs are more structured and formatted, while events are unstructured
  2. Logs are real-time, while events are historical
  3. Logs record system state changes, while events capture system or user actions
  4. Logs and events are the same thing
Answer:
C - Logs are typically used to record system state changes and provide a historical record of what happened on a system.
Events, on the other hand, capture system or user actions that are often triggered by specific occurrences, such as the arrival of a message or a user login