Vulnerability Discovery and Analysis
A tester is told the scanner will run as a sidecar for a containerized service on Kubernetes. Where does that scanner run?
Show the answer
Correct answerB. As a separate container in the same pod as the service
AWhy not this: A pod in another namespace does not share the target's network namespace, so it is not a sidecar.
BWhy this is right: A sidecar is a second container placed in the same pod, sharing its network namespace and optionally its volumes.
CWhy not this: An agent on the node's OS is host-based scanning, not a sidecar, which lives in the pod.
DWhy not this: A CI pipeline step runs before deployment and is not a container running beside the live service.
A sidecar scanner is its own container deployed in the same pod as the application container, so it shares the pod's network and can share volumes. An agent on the node is a host-based approach, not a sidecar.