KCNA Cloud Native Observability Practice Question
What is the primary purpose of structured logging?
⚠ Common exam trap
The trap is confusing the format of logs (structured vs unstructured) with operational concerns like compression, encryption, or output destination, which are handled by separate tooling layers.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
To format logs in a consistent, machine-readable way for easier processing
Structured logging emits log entries as machine-readable data — typically JSON with consistent key-value fields (timestamp, level, service, message, request_id) — rather than free-form text. This makes logs trivially parseable by log processors and query engines, enabling reliable filtering, aggregation, and alerting. The primary purpose is consistent, machine-readable formatting for easier downstream processing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
To format logs in a consistent, machine-readable way for easier processing
Why this is correct
Structured logging emits events as key-value pairs, typically JSON, so fields like timestamp, level and service are parsed programmatically without regex. This consistent, machine-readable schema satisfies the stem's requirement for easier automated processing, filtering and aggregation across distributed systems.
- ✗
To compress log files and reduce storage usage
Why it's wrong here
Structured logging emits logs in a consistent, parseable format such as JSON so fields can be indexed and queried; compression is a storage or shipping concern handled by agents. It would be the goal when reducing log volume or egress costs is the priority.
- ✗
To encrypt log data for security purposes
Why it's wrong here
Structured logging formats entries as machine-readable key-value pairs (typically JSON) so tools can parse and query fields; encryption is a transport or storage control applied separately. It would be relevant when regulatory requirements mandate protecting log confidentiality at rest.
- ✗
To send logs directly to the user's terminal
Why it's wrong here
Sending logs to a terminal describes console output, not structured logging's purpose, which is emitting machine-readable entries with consistent key–value fields for parsing and querying. Console output is genuinely useful for local development and quick debugging, where a developer watches output live, but it says nothing about log format or aggregation.
Go deeper
Related to this question
About these practice questions
Courseiva writes every KCNA question from scratch — 930 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CNCF exam blueprint
This KCNA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCNA exam.