Courseiva
Cloud Native ObservabilityhardMultiple SelectObjective-mapped

KCNA Cloud Native Observability Practice Question

Which TWO of the following are best practices for structuring log output in cloud-native applications to maximize observability?

⚠ Common exam trap

CNCF often tests the misconception that 'more detail is better' (Option A) or that 'human readability' (Option B) is the priority, when in cloud-native observability, machine-parseable, single-line structured logs are the standard for scalability and automation.

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

Output logs in structured format such as JSON

Structured logging (e.g., JSON) enables automated parsing, filtering, and querying by log aggregation tools like Fluentd, Logstash, or cloud-native observability backends (e.g., Elasticsearch, Loki). This format ensures each log entry has consistent key-value pairs, making it machine-readable and facilitating correlation across distributed services without manual text parsing.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Include verbose debug-level information in every log line

    Why it's wrong here

    Too much verbosity increases storage and noise; use appropriate levels.

  • Use multi-line log entries for detailed error information

    Why it's wrong here

    Multi-line logs are harder to parse; use single-line with escaped newlines if needed.

  • Output logs in structured format such as JSON

    Why this is correct

    Structured logs are machine-parseable and easily ingested by log aggregators.

  • Include a unique request or correlation ID in each log entry

    Why this is correct

    Correlation IDs help trace requests across microservices.

  • Avoid timestamps to reduce log size

    Why it's wrong here

    Timestamps are essential for ordering and debugging.

About these practice questions

This KCNA question is part of Courseiva's 833-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.