KCNA Cloud Native Observability Practice Question
A platform team wants to implement observability for a Kubernetes cluster running 500+ microservices. They need to reduce the cost of storing logs while retaining the ability to search for specific error patterns. Which strategy best achieves this?
⚠ Common exam trap
Candidates often assume centralized storage (Elasticsearch) or longer retention always improves observability, ignoring the cost and scalability constraints of 500+ microservices in a cloud-native environment.
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
✓
Use structured logging and sample debug logs, retaining error logs fully
Structured logging (e.g., JSON format) enables efficient indexing and querying of logs, while sampling debug logs and retaining error logs fully reduces storage costs without losing critical error patterns. This approach balances observability needs with cost optimization, a key principle in cloud-native environments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase log retention to one year for compliance
Why it's wrong here
Increases cost without addressing the need to reduce storage costs.
- ✗
Store all logs in a centralized Elasticsearch cluster with high retention
Why it's wrong here
Storing all logs is costly; not the best cost optimization.
- ✗
Aggregate logs into a single pod for easier indexing
Why it's wrong here
Single pod is a single point of failure and doesn't reduce cost.
- ✓
Use structured logging and sample debug logs, retaining error logs fully
Why this is correct
Sampling reduces volume while keeping critical error logs for search.
Go deeper
Related to this question
About these practice questions
Courseiva writes every KCNA question from scratch — 833 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 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.