PCA (Prometheus Certified Associate) sample exam question with answer 264
Question:
Which type of observability data is BEST represented by the following description?
time="2022-10-18 12:00:00 UTC" level=info msg="User logged in" user=bob
- Metric
- Log
- Event
- Trace
Answer:
B - correct answer
A - is incorrect as a metric is a numeric measurement. Nothing in the given description implies a numeric measurement
C - is incorrect. Though the given description does represent an event (a user logging in), log is a better answer since a log is a textual record of an event often structured with key-value metadata
D - is incorrect as a trace is defined as activity of a transaction or request as it flows through applications and shows how services connect, including code-level details. Nothing in the given description implies a transaction flowing through applications or showing how services connect