CKS Kubernetes Runtime Security Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What does the 'runAsNonRoot' security context setting enforce?

Explanation

`runAsNonRoot` requires a container to run as a non-root user. If the container would run as UID 0, Kubernetes prevents it from starting. This setting applies to the container’s process; it does not change the kubelet’s identity or restrict root access across the cluster.

Submit
Please wait...
About This Quiz
CKS Kubernetes Runtime Security Quiz - Quiz

This quiz evaluates your understanding of Kubernetes runtime security concepts and practices essential for the CKS certification. You'll assess knowledge of container isolation, AppArmor, seccomp, SELinux, network policies, pod security standards, and runtime threat detection. Designed for college-level learners, it covers medium-difficulty scenarios reflecting real-world cluster security challenges.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What is the purpose of a NetworkPolicy's 'egress' field?

Explanation

The `egress` field specifies rules for traffic leaving selected pods, such as which destinations and ports they may communicate with. These rules can restrict or allow outbound connections, helping control pod access to other pods, services, or external endpoints.

Submit

3. Which capability should be dropped by default for enhanced security in containers?

Explanation

CAP_SYS_ADMIN grants a wide range of powerful administrative operations, including mounting filesystems and managing namespaces. In a container, retaining it can undermine isolation and allow a compromised process to gain significant control over the host. Drop it by default, granting it only when a specific workload demonstrably requires it.

Submit

4. What is the main difference between a default seccomp profile and a localhost profile?

Explanation

A default seccomp profile is supplied by the container runtime, while a localhost profile is a custom seccomp profile stored on the node and referenced by its local path. This lets administrators apply tailored system-call restrictions to selected workloads.

Submit

5. Which Kubernetes admission controller validates Pod Security Standards?

Explanation

The listed answer is inaccurate. Kubernetes’ **Pod Security Admission** controller enforces Pod Security Standards. The **PodSecurityPolicy** admission controller enforced PodSecurityPolicy resources, a separate mechanism that was deprecated and removed in Kubernetes 1.25.

Submit

6. In AppArmor, what does an 'enforce' mode do compared to 'complain' mode?

Explanation

Enforce mode applies the AppArmor profile’s restrictions and denies actions that violate them. Complain mode allows those actions but records them in logs, making it useful for testing and refining a profile without disrupting applications.

Submit

7. What does the 'readOnlyRootFilesystem' setting in a security context do?

Explanation

Setting `readOnlyRootFilesystem` mounts a container’s root filesystem as read-only, preventing processes from modifying files there. Applications that need to write data must use a writable volume or another explicitly mounted writable location. This setting does not disable root access, encrypt files, or control CPU usage.

Submit

8. Which runtime behavior detection tool integrates with Kubernetes to monitor syscalls?

Explanation

Falco is a runtime security tool that integrates with Kubernetes and observes system calls to detect suspicious activity in containers and workloads. It can generate alerts when behavior violates defined rules. Prometheus focuses on metrics, Istio manages service-mesh traffic, and CoreDNS provides cluster DNS rather than syscall-based runtime monitoring.

Submit

9. What is the primary benefit of using a 'restricted' Pod Security Standard?

Explanation

A restricted Pod Security Standard applies stringent controls to pod configurations, limiting risky permissions and capabilities. This helps enforce security best practices and reduces the potential attack surface, lowering the risk that a compromised container can affect the cluster.

Submit

10. In Kubernetes, which field in a Pod spec defines the seccomp profile?

Explanation

A Pod’s `securityContext` controls security-related settings for the Pod. Its `seccompProfile` field specifies the seccomp profile used to restrict system calls.

Submit

11. What is the primary purpose of seccomp in Kubernetes runtime security?

Explanation

Seccomp (Secure Computing Mode) enhances container security by limiting which system calls a process can make to the Linux kernel. Kubernetes can apply seccomp profiles to block unnecessary or risky calls, reducing the potential impact of a compromised container.

Submit

12. Which Kubernetes object allows you to restrict pod-to-pod communication by labels?

Explanation

NetworkPolicy controls network traffic between pods using label-based selectors. It can define which pods may communicate, as well as the allowed ingress and egress traffic, helping enforce network isolation within a Kubernetes cluster.

Submit

13. What is the purpose of SELinux in container runtime security?

Explanation

SELinux strengthens container security by enforcing mandatory access control through the Linux kernel. It applies security policies that restrict which processes can access specific files, resources, and operations, helping contain the impact of compromised or misbehaving containers.

Submit

14. Which tool is commonly used to audit and enforce seccomp policies in Kubernetes?

Explanation

Falco is a Kubernetes runtime security tool that observes system calls and container behavior, helping teams audit activity against security policies and detect suspicious or disallowed actions. Seccomp enforcement itself is provided by the Linux kernel, while kubelet manages nodes, kube-apiserver handles cluster requests, and etcd stores cluster state.

Submit

15. In a Pod Security Policy, what does the 'privileged' field control?

Explanation

The `privileged` field determines whether containers in a pod are allowed to run in privileged mode, granting them elevated access to the host system beyond standard container restrictions.

Submit

16. What does AppArmor use to define security policies for processes?

Explanation

AppArmor uses security profiles to specify which files, capabilities, and other resources a process may access. These profiles are loaded into the Linux kernel, which enforces their rules while the processes run. Iptables rules filter network traffic, while container labels and RBAC roles are mechanisms associated with other security systems.

Submit

17. Which Pod Security Standard level is most restrictive for workload isolation?

Explanation

The Restricted Pod Security Standard applies the strictest security controls, limiting workload privileges and reducing access to sensitive host resources. Baseline permits common, lower-risk configurations, while Privileged allows broad access. “Enforced” describes how a policy is applied, not a Pod Security Standard level.

Submit

18. What is the default seccomp profile action when a system call is not explicitly allowed?

Explanation

SCMP_ACT_KILL_PROCESS terminates the process when it invokes a system call that the seccomp profile does not explicitly allow. This default-deny behavior prevents unapproved system calls from running, though the precise default action can depend on the profile being used.

Submit

19. In Kubernetes, what does a NetworkPolicy control?

Explanation

A Kubernetes NetworkPolicy defines which network traffic is allowed to reach selected pods or leave them. Rules can filter ingress and egress by pod or namespace selectors, IP ranges, and ports. Enforcement depends on the cluster’s network plugin; it does not manage DNS, image access, or resource limits.

Submit

20. Which Linux kernel module provides mandatory access control (MAC) for containers?

Explanation

AppArmor is a Linux security module that enforces mandatory access control through profiles defining which files, capabilities, and system resources a process may access. Container runtimes can apply these profiles to restrict container activities. By contrast, eBPF supports programmable kernel functions, cgroups manage resource usage, and netfilter handles network packet filtering.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does the 'runAsNonRoot' security context setting enforce?
What is the purpose of a NetworkPolicy's 'egress' field?
Which capability should be dropped by default for enhanced security in...
What is the main difference between a default seccomp profile and a...
Which Kubernetes admission controller validates Pod Security...
In AppArmor, what does an 'enforce' mode do compared to 'complain'...
What does the 'readOnlyRootFilesystem' setting in a security context...
Which runtime behavior detection tool integrates with Kubernetes to...
What is the primary benefit of using a 'restricted' Pod Security...
In Kubernetes, which field in a Pod spec defines the seccomp profile?
What is the primary purpose of seccomp in Kubernetes runtime security?
Which Kubernetes object allows you to restrict pod-to-pod...
What is the purpose of SELinux in container runtime security?
Which tool is commonly used to audit and enforce seccomp policies in...
In a Pod Security Policy, what does the 'privileged' field control?
What does AppArmor use to define security policies for processes?
Which Pod Security Standard level is most restrictive for workload...
What is the default seccomp profile action when a system call is not...
In Kubernetes, what does a NetworkPolicy control?
Which Linux kernel module provides mandatory access control (MAC) for...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!