Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Linux Foundation logo

Certified Kubernetes Security Specialist (CKS)

Domain 2Objective 1

Minimize Base Image Footprint CKS Practice Questions (Page 5)

Part of the Minimize Microservice Vulnerabilities domain, which accounts for 20% of the CKS exam. Linux Foundation does not publish an official question count, but from its 120-minute exam (~50–80 total, ~10–16 in this domain), expect 3–4 from this objective — we provide 27 practice questions to prepare you well beyond it. (estimate)

27questions here
6free pages
8concepts
20%of the exam

Questions 21–25

  1. 21application · medium

    You are optimizing a Dockerfile for a Node.js application. The current Dockerfile has separate RUN instructions for 'apt-get update', 'apt-get install', 'npm install', and 'rm -rf /var/lib/apt/lists/*'. You want to reduce the number of layers and the final image size. Which change is most effective?

    Select an answer first
  2. 22application · medium

    Your team is containerizing a Go-based gRPC service that must run as a non-root user. The service requires no shell access, no package manager, and no debugging tools in production. You want to minimize the attack surface and image footprint. Which base image strategy should you use?

    Select an answer first
  3. 23application · medium

    You are containerizing a small utility that performs a single task and has no external dependencies. The utility is a statically compiled binary. You want the smallest possible image with the least attack surface. Which base image should you choose?

    Select an answer first
  4. 24application · medium

    A security audit requires that production container images must not contain a shell or package manager to reduce the blast radius of a container breakout. Your application is a Java service that needs a JRE and some CA certificates. Which approach satisfies the audit requirement?

    Select an answer first
  5. 25application · medium

    You are writing a Dockerfile for a Python application. The build process requires gcc and other build tools to compile a native dependency, but the runtime only needs the compiled .so file and the Python interpreter. Which Dockerfile approach best minimizes the final image footprint?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Linux Foundation. “CKS” is a trademark of its owner, used for identification only.