CKS Supply Chain Security Practice Question
An organization uses a private container registry and wants to ensure that only images built from a specific CI/CD pipeline are deployed. Which combination of measures provides the strongest guarantee?
⚠ Common exam trap
CNCF often tests the distinction between access control measures (network policies, RBAC, firewalls) and cryptographic provenance verification; candidates mistakenly think restricting registry access or network egress is sufficient, but the exam emphasizes that only signed attestations with admission control can guarantee the image was built by the intended pipeline.
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
✓
Generate signed attestations with in-toto during the CI pipeline and verify them using an admission webhook like Kyverno.
It implements a complete chain of custody for container images. In-toto generates signed attestations that record every step of the CI/CD pipeline (e.g., source code checkout, build, test), and an admission webhook like Kyverno verifies these attestations before allowing a pod to run. This ensures that only images that passed the exact, attested pipeline are deployed, providing the strongest guarantee against unauthorized or tampered images.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Implement network policies to restrict egress from pods to the registry.
Why it's wrong here
Network policies operate at the network layer, filtering traffic based on IP addresses, ports, and labels; they cannot inspect the contents or provenance of container images. Restricting egress to the registry only limits where pods can connect, not which images are allowed to run, so a malicious image already pulled and launched would remain unaffected. Admission-time verification of signed attestations is required to establish trust in image provenance before a workload is scheduled.
- ✗
Grant registry write access only to the CI system's service account.
Why it's wrong here
Granting registry write access solely to the CI system's service account follows least privilege, but it still leaves the CI pipeline as a single point of failure. If an attacker compromises the CI system—for example, via a malicious dependency or stolen credentials—they can push arbitrary images to the registry, and the cluster will blindly run them. This control reduces the attack surface but provides no cryptographic proof that the images were built by the intended, unmodified pipeline.
- ✗
Use a static analysis tool to check the Dockerfile before building.
Why it's wrong here
Static analysis of a Dockerfile examines the declared build steps, such as base images and RUN commands, but it cannot inspect the fully built image or its layers. Problems like a vulnerable base image that is pulled at build time, a compromised package repository, or a tampered build cache will not be detected by Dockerfile linting alone. Such tools are useful for security hygiene but do not create verifiable evidence of the image's origin or content.
- ✗
Use a unique registry path and restrict access via firewall rules.
Why it's wrong here
Using a unique registry path and firewall rules provides access control based on network location and obscurity, but it does not ensure that images pushed to that path are legitimate. If the CI credentials or a developer's token are stolen, the attacker can push a malicious image to that same path, and the firewall will allow it because it originates from a permitted network. This approach cannot detect or prevent tampering; it only reduces the chance of outside access.
- ✓
Generate signed attestations with in-toto during the CI pipeline and verify them using an admission webhook like Kyverno.
Why this is correct
In-toto attestations are cryptographically signed metadata generated during the CI pipeline that describe the build steps, materials, and results, providing non-repudiation for the image's origin. An admission webhook such as Kyverno can be configured to verify these signatures and attestations at admission time, ensuring that only images produced by the trusted pipeline and with valid provenance are allowed to run. This combination enables robust supply-chain security by tying the runtime state to an auditable, tamper-evident build process.
Go deeper
Related to this question
About these practice questions
One of 845 original CKS practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CKS 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 CKS exam.