Courseiva

CCNA Cloud Native Observability Questions

9 of 84 questions · Page 2/2 · Cloud Native Observability · Answers revealed

76
MCQhard

A company runs a Kubernetes cluster with 50 worker nodes, each hosting multiple microservices. They use Prometheus for metrics collection and Grafana for dashboards. Recently, the Prometheus server has been experiencing out-of-memory (OOM) kills during peak hours, causing gaps in metric collection. The cluster has a dedicated monitoring namespace. The team has already increased the Prometheus pod's memory limits to 8GB, but OOMs still occur. The metrics retention is set to 15 days. The cardinality of certain metrics (e.g., HTTP request labels with user IDs) is very high. The team needs to resolve the OOM issue without losing critical alerting capability for at least the last 7 days of data. Which action should they take first?

A.Implement recording rules to pre-aggregate high-cardinality metrics at a lower granularity
B.Drop high-cardinality metrics like HTTP request labels using relabel_configs
C.Reduce metrics retention to 7 days to free memory
D.Enable vertical pod autoscaler for the Prometheus pod
AnswerA

Recording rules reduce cardinality by aggregating metrics, lowering memory usage while preserving aggregated data for alerting.

Why this answer

Recording rules allow Prometheus to pre-aggregate high-cardinality metrics (e.g., HTTP request labels with user IDs) at a lower granularity, reducing the number of unique time series stored in memory. This directly addresses the OOM issue caused by cardinality explosion without discarding raw data entirely, preserving the ability to query aggregated metrics for alerting over the required 7-day window.

Exam trap

The trap here is confusing memory pressure (caused by cardinality) with storage pressure (caused by retention), leading candidates to incorrectly choose reducing retention (Option C) instead of addressing the root cause of high cardinality via recording rules.

How to eliminate wrong answers

Option B is wrong because dropping high-cardinality metrics entirely using relabel_configs would remove critical data needed for alerting and debugging, violating the requirement to retain alerting capability for at least 7 days. Option C is wrong because reducing retention to 7 days frees disk space, not memory; Prometheus OOMs are caused by in-memory time series cardinality, not storage volume. Option D is wrong because enabling vertical pod autoscaler would only adjust CPU/memory limits dynamically, but the fundamental issue is cardinality—more memory without reducing cardinality will still lead to OOM kills.

77
Multi-Selecthard

Which THREE of the following are components of the OpenTelemetry project? (Select three)

Select 3 answers
A.OpenTelemetry Agent
B.OpenTelemetry API
C.OpenTelemetry SDK
D.OpenTelemetry Collector
E.OpenTelemetry Exporter
AnswersB, C, D

The API defines data types and interfaces.

Why this answer

The OpenTelemetry project includes the API, SDK, and Collector. The Agent (as a separate component) and Exporter are part of the SDK/Collector, not standalone components.

78
Multi-Selecthard

Which TWO of the following are examples of context propagation mechanisms used in distributed tracing?

Select 2 answers
A.HTTP headers
B.Environment variables
C.Database queries
D.Shared filesystem
E.gRPC metadata
AnswersA, E

Headers like traceparent are used to propagate trace context across HTTP calls.

Why this answer

HTTP headers, such as the `traceparent` and `tracestate` headers defined in the W3C Trace Context specification, are the standard mechanism for propagating trace context across service boundaries in distributed tracing. When a service receives an incoming HTTP request, it extracts the trace ID and span ID from these headers to continue the same trace. This allows trace data to be correlated across multiple microservices as the request flows through the system.

Exam trap

CNCF often tests the distinction between static configuration mechanisms (like environment variables or shared filesystems) and dynamic, in-band propagation mechanisms (like HTTP headers and gRPC metadata) that travel with each request.

79
Multi-Selectmedium

Which TWO of the following are valid Prometheus metric types? (Select two)

Select 2 answers
A.Set
B.Counter
C.Timer
D.Meter
E.Gauge
AnswersB, E

Counter is a Prometheus metric type.

Why this answer

Prometheus has four metric types: Counter, Gauge, Histogram, and Summary. Counter and Gauge are two of them.

80
MCQmedium

Which component of the metrics-server provides resource metrics like CPU and memory usage?

A.kube-apiserver
B.metrics-server
C.kubelet
D.Prometheus
AnswerB

The metrics-server is the component that collects and serves resource metrics.

Why this answer

The metrics-server collects resource metrics from kubelets and exposes them via the Metrics API.

81
MCQmedium

Which tool is specifically designed for distributed tracing and was originally developed by Uber?

A.Prometheus
B.Loki
C.Grafana
D.Jaeger
AnswerD

Jaeger is a distributed tracing system originally built by Uber.

Why this answer

Jaeger was originally developed by Uber for distributed tracing.

82
MCQmedium

What is the primary role of the OpenTelemetry Collector?

A.To replace Prometheus for metric collection
B.To receive, process, and export telemetry data
C.To store traces and metrics long-term
D.To generate traces for applications
AnswerB

The collector acts as a pipeline to handle telemetry data from multiple sources and send to one or more backends.

Why this answer

The OpenTelemetry Collector receives, processes, and exports telemetry data to various backends.

83
MCQhard

A company defines an SLO that 99.9% of requests to a service should complete in under 200ms. Which metric type is used to measure this SLO?

A.Summary
B.Histogram
C.Gauge
D.Counter
AnswerB

Histograms allow calculating quantiles like p99 latency.

Why this answer

The SLO is based on latency, which is typically measured using a histogram to track request durations.

84
MCQmedium

A DevOps team wants to collect and forward logs from all nodes in a Kubernetes cluster to a centralized logging backend. Which component is specifically designed for lightweight log collection and forwarding?

A.Fluent Bit
B.Prometheus
C.Jaeger
D.Grafana
AnswerA

Fluent Bit is lightweight and designed for log collection.

Why this answer

Fluent Bit is a lightweight log processor and forwarder, ideal for Kubernetes nodes.

← PreviousPage 2 of 2 · 84 questions total

Ready to test yourself?

Try a timed practice session using only Cloud Native Observability questions.