← All interview questions

Skill Zuno · skillzunos.com · Cloud

CKS interview questions

Prepare for CKS interviews on Skill Zuno. This practice book covers CKS interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open CKS on Skill Zuno

Also see the CKS tutorial.

The Certified Kubernetes Security Specialist (CKS) is an advanced, hands-on exam from the CNCF and the Linux Foundation, and requires an active CKA. It tests securing Kubernetes clusters and workloads during build, deployment and runtime. Preparation covers cluster hardening, RBAC, network policies, Pod Security Standards, supply chain security, image scanning, runtime detection with Falco and audit logging.

Sample CKS interview questions

What are Pod Security Standards?

Three policy levels, privileged, baseline and restricted, enforced per namespace by the built-in Pod Security Admission controller with labels such as pod-security.kubernetes.io/enforce=restricted.

What does a default-deny NetworkPolicy look like?

A NetworkPolicy with an empty podSelector, which selects every pod in the namespace, and policyTypes Ingress and Egress with no rules. Then allow only the traffic each app needs.

What is Falco used for?

Runtime threat detection. Falco watches system calls and alerts on suspicious behaviour, such as a shell spawned in a container or a write to /etc.

How do you encrypt Secrets at rest?

Configure an EncryptionConfiguration with a provider such as aescbc or KMS, and point the kube-apiserver at it with --encryption-provider-config, then rewrite existing Secrets so they are encrypted.

Why run containers with readOnlyRootFilesystem and as non-root?

An attacker who gets into the container cannot modify binaries or install tools, and is limited if they escape. Combine with dropping all capabilities.

What you can practice

  • CKS interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Cloud topics alongside CKS on skillzunos.com

More Cloud interview questions

All interview questions