nerdexam
Linux_Foundation

KCNA · Question #219

What is a sidecar container?

The correct answer is C. A container that runs next to another container within the same Pod. A sidecar container is a secondary container that runs alongside the main (primary) container within the same Pod. Because they share the same Pod, they also share the same network namespace (same localhost) and can share storage volumes. Common sidecar use cases include log…

Submitted by lukas.cz· May 4, 2026Kubernetes Fundamentals

Question

What is a sidecar container?

Options

  • AA Pod that runs next to another container within the same Pod.
  • BA container that runs next to another Pod within the same namespace.
  • CA container that runs next to another container within the same Pod.
  • DA Pod that runs next to another Pod within the same namespace.

How the community answered

(39 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    90% (35)
  • D
    3% (1)

Explanation

A sidecar container is a secondary container that runs alongside the main (primary) container within the same Pod. Because they share the same Pod, they also share the same network namespace (same localhost) and can share storage volumes. Common sidecar use cases include log shippers, proxies (like Envoy in a service mesh), and config refreshers. Options A and D are wrong because a Pod is not a container - a Pod is the Kubernetes scheduling unit that wraps one or more containers. Option B is wrong because a sidecar runs inside the same Pod, not next to a different Pod.

Topics

#Sidecar pattern#Containers#Pods#Kubernetes architecture

Community Discussion

No community discussion yet for this question.

Full KCNA Practice