Be able to contain a compromised pod, inspect its runtime network and process activity, and write an egress NetworkPolicy for a specific IP and port. The key is verifying the policy actually selects the target pods and is enforced by the cluster CNI.
Start practicing
Monitoring, Logging and Runtime Security — choose a session length
Free · No account required
Domain overview
This domain covers runtime security on a Kubernetes cluster: detecting and containing compromised workloads, inspecting process and network activity, and using audit logging to trace API activity. You are tested by performing hands-on tasks such as isolating a pod, applying NetworkPolicy, and interpreting audit levels and rules with kubectl and Linux tooling.
Exam objectives
Isolating a suspected pod using NetworkPolicy or kubectl label/delete to cut network access
Inspecting container network connections with ss, netstat, or tcpdump inside the pod
Configuring and reading Kubernetes audit policies and audit levels like Request and RequestResponse
Writing egress NetworkPolicy rules that restrict traffic to a specific IP and port
Forgetting that NetworkPolicy requires a CNI plugin that enforces it, so the policy may appear to have no effect
Assuming audit level Request logs request bodies; only metadata is recorded, not the full object
Writing egress policy without matching the podSelector or namespaceSelector, so it applies to the wrong pods or none
Click any question to see the full explanation and answer options, or start a focused practice session above.
A Falco rule is written to detect when a shell is spawned inside a container. The rule condition is: `spawned_process and container and proc.name = bash`. The rule is not triggering. Which of the following is the most likely reason?
2You are configuring Kubernetes audit logging. You want to log all requests to the `secrets` resource in the `kube-system` namespace at the `RequestResponse` level, while logging all other requests at the `Metadata` level. Which audit policy configuration achieves this?
3You have deployed a pod and set `securityContext.readOnlyRootFilesystem: true`. The pod is failing to start with an error about writing to `/tmp`. What is the most likely cause?
4An administrator runs `kubectl exec -it nginx-pod -- sh` and inside the container runs `curl http://example.com`. This succeeds. However, the administrator wants to detect such outbound connections using Falco. Which syscall should Falco monitor to detect this network connection?
5You are writing a Falco rule to detect when a container tries to read the file `/etc/shadow`. Which condition in the Falco rule correctly matches this event?
6You are responding to a security incident where a pod named `compromised-pod` in namespace `default` is suspected of being used for cryptocurrency mining. You need to immediately isolate the pod from the network while preserving evidence. Which command sequence should you use?
7Which Kubernetes resource is used to define audit logging configuration?
8You are using `crictl` to debug a container that is not responding. Which command should you use to get the list of running containers?
9Which audit policy level logs the request metadata and the request body?
10Which TWO of the following are valid audit stages in Kubernetes? (Select 2)
11Which THREE of the following are common indicators of a container compromise that Falco can detect? (Select 3)
12Which TWO are valid stages in a Kubernetes audit event? (Select 2)
13Which kubectl command can be used to exec into a running container for forensic analysis during an incident response?
14An administrator runs 'falco --list' and sees many default rules. What is the correct way to load a custom Falco rules file?
15A security team wants to detect any attempt to read /etc/shadow from within a container using Falco. Which condition in a Falco rule would match this behavior?
16You need to configure Kubernetes audit logging to log all requests to the 'secrets' API. Which audit policy level captures the body of the request?
17You run 'crictl ps' and see no output, but the node has running pods. What is the most likely cause?
18A Falco rule has the following condition: spawned_process and container and proc.name = bash and proc.pname != sshd. What does this rule detect?
19You need to preserve evidence (container logs) from a compromised pod before deleting it. Which command should you run first?
20Which audit stage in Kubernetes audit logging captures the stage after a request is processed and before a response is sent?
21Which crictl command is used to view logs from a specific container?
22A pod has securityContext.readOnlyRootFilesystem: true. What happens if a process inside the container tries to write to the root filesystem?
23Which of the following is NOT a valid priority level in a Falco rule?
24Which TWO of the following are valid methods to detect a container spawning a shell (e.g., /bin/bash) using Falco? (Select two.)
25Which THREE of the following are required components to enable audit logging in Kubernetes? (Select three.)
26Which TWO of the following are valid steps to respond to a runtime security incident where a container is suspected to be compromised? (Select two.)
27An admin runs 'crictl ps' on a node and sees multiple containers. Which command should they use to view the logs of a specific container?
28A pod is running in the 'default' namespace with a container that has an immutable root filesystem (readOnlyRootFilesystem: true). The application writes logs to /var/log/app.log. What will happen?
29A pod named 'busybox-pod' is compromised. You want to isolate it from all other pods using a NetworkPolicy. Which YAML snippet correctly denies all ingress and egress traffic to/from the pod?
30During a runtime incident, you suspect a container has a reverse shell. Which kubectl command can you use to examine the container's running processes?
31An audit policy is configured with the following rule: - level: RequestResponse users: ["system:serviceaccount:kube-system:admin"] verbs: ["get", "list"] resources: - group: "" resources: ["secrets"] What will be logged when the service account 'admin' in kube-system performs a GET request on a Secret?
32You need to detect any unexpected outbound connections from pods in the 'production' namespace. Which Falco rule condition is MOST appropriate?
33To ensure a container's filesystem is read-only, which field should be set to 'true' in the container spec?
34Which TWO of the following are valid audit stages in Kubernetes audit logging? (Choose two)
35Which THREE Falco priority levels sequences are correctly ordered from lowest to highest severity? (Choose three)
36An administrator wants to monitor runtime security events in Kubernetes using Falco. Which component must be deployed as a DaemonSet to capture system calls from containers?
37A security team wants to detect attempts to read /etc/shadow inside containers. Which Falco rule condition would trigger on a container reading that file?
38You are investigating a pod that may have been compromised. Which kubectl command allows you to run a shell inside the running container without overwriting the container's filesystem?
39An audit policy is configured with level: Request. Which operations are recorded in the audit log?
40A cluster administrator wants to enforce that containers run with a read-only root filesystem. Which security context field should be set?
41You suspect a pod is making unexpected outbound connections. Which tool can you use to inspect network connections from within the container?
42A Falco rule has priority: CRITICAL and condition: evt.type=execve and proc.name!=bash. What does this rule detect?
43Which stage of the Kubernetes API request processing should be audited to capture the final response sent to the client?
44You run 'crictl ps' and see a container with state CONTAINER_RUNNING. What does this indicate?
45A pod has been compromised. You want to isolate it from other pods while preserving its network state for forensics. Which NetworkPolicy rule achieves this?
46You need to detect any attempt to run a shell inside a container using Falco. Which macro or condition should you use?
47You need to preserve forensic evidence from a compromised pod. Which TWO actions should you take?
48A security team wants to detect any attempt to spawn an interactive shell inside a container. Which Falco rule condition would be appropriate?
49You have configured an audit policy with level: Request. Which request information is logged?
50You are investigating a pod suspected of being compromised. Which set of commands would provide the most useful forensic evidence without altering the container's state?
51What is the purpose of setting a container's filesystem to read-only in a Pod spec?
52Which crictl command can you use to view the logs of a specific container?
53An admin runs 'kubectl get pods' and sees a pod in 'CrashLoopBackOff' state. The pod's containers have a restart policy of 'Always'. What is the most likely cause?
54You need to configure Kubernetes audit logging to log all requests to the 'secrets' resource at the RequestResponse level. Which audit policy rule would achieve this?
55A compromised pod is making unexpected outbound connections. You want to isolate the pod by blocking all egress traffic while keeping it running for forensic analysis. Which action is correct?
56A Falco rule has the following output: 'Sensitive file opened for reading (user=root command=cat /etc/shadow)'. Which macro is most likely used in the rule condition?
57Which THREE of the following are recommended incident response steps when a container is compromised?
58Which TWO tools can be used to directly interact with the container runtime (without going through the Kubernetes API) for troubleshooting?
59You need to configure Kubernetes audit logging to log all requests at the Metadata level for a specific namespace. Which audit policy level should you use?
60Which crictl command is used to view the logs of a specific container?
61A Falco rule is triggered when a shell is spawned inside a container. Which syscall is typically used to detect shell execution?
62You are investigating a compromised pod. You suspect the attacker used 'kubectl exec' to gain shell access. Which command can you use to check the audit logs for exec events?
63You have deployed a DaemonSet to run a logging agent on every node. After an update, the new pods are stuck in 'Pending' state. You run 'kubectl describe pod ds-pod-xxxxx' and see '0/3 nodes are available: 3 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate'. What is the MOST likely cause?
64Which Falco rule condition would detect an attempt to read the /etc/shadow file in a container?
65You want to ensure that a container's root filesystem is immutable. Which field in the Pod spec should you set?
66You need to configure a NetworkPolicy that allows egress traffic only to an external database at IP 10.0.0.5 on port 5432, and denies all other egress. Which policy BEST achieves this?
67You have a pod that is in CrashLoopBackOff. You want to inspect the logs from the previous instance of the container. Which flag should you use with kubectl logs?
68Which THREE of the following are recommended steps during incident response for a compromised pod?
69Which TWO tools can be used to directly interact with a container runtime on a Kubernetes node without using kubectl?
70A security team wants to detect any attempt to read the /etc/shadow file inside a container. Which Falco rule condition would trigger an alert for such an event?
71You want to run crictl to list all running containers on a node. Which command should you execute?
72A pod runs with an immutable root filesystem (readOnlyRootFilesystem: true). The application attempts to write to /tmp. What is the expected behavior?
73A developer reports that a pod cannot reach an external database at 192.168.1.100:3306. The pod's namespace is 'app'. You need to create a NetworkPolicy that allows egress to that IP only. Which policy is correct?
74You need to detect when a container attempts to mount the host's Docker socket. Which Falco macro or condition would you use?
75You want to isolate a compromised pod by blocking all network traffic to and from it. Which NetworkPolicy would you apply?
76A Falco rule is configured to detect privilege escalation via setuid binaries. Which syscall is commonly associated with this activity?
77You need to enable audit logging for the Kubernetes API server to capture all requests at the RequestResponse level. Which flag should you add to the kube-apiserver configuration?
78A security team suspects a compromised pod is making unexpected outbound connections to an external IP. Which of the following is the BEST first step to investigate the network traffic from that pod?
79You need to configure a Kubernetes Pod to have an immutable root filesystem. Which field should you set in the Pod spec?
80An incident responder needs to isolate a compromised pod immediately without deleting it. Which action should they take?
81Which crictl command is used to view the logs of a specific container in a node?
82In a Falco rule, what does the 'priority' field indicate?
83You are writing a Falco rule to detect when a container tries to read /etc/shadow. Which condition should you use?
84An audit policy is configured with the following rule: - level: Metadata resources: - group: "" resources: ["secrets"] What does this rule log for requests to the Secrets API?
85Which kubectl command can be used to execute a shell inside a running container for forensic analysis?
86You need to create a NetworkPolicy that allows only ingress traffic from pods with label 'app: frontend' in the same namespace. Which policyType and ingress rule should you use?
87An administrator runs 'crictl ps' and sees no containers listed, but kubectl shows running pods. What is the most likely cause?
88Which THREE of the following are effective methods to preserve evidence during a container security incident?
89Which TWO of the following are valid priority levels in Falco rules?
90A security admin needs to audit all API requests to the Kubernetes API server. Which audit policy level logs the request body and response body?
91Falco detects a shell being opened inside a container. Which Falco rule field is used to specify the syscall condition for detection?
92An administrator wants to set an immutable root filesystem for a container in a Pod. Which securityContext field should be set to true?
93Which crictl command is used to list all running containers managed by the container runtime?
94A pod is stuck in Pending state. You run 'kubectl describe pod' and see the event: '0/3 nodes are available: 3 Insufficient cpu'. What is the likely cause?
95Which audit stage is logged after the request is fully processed and the response is sent?
96A Falco rule detects unexpected outbound connections. Which condition would identify a connection to an external IP not in the allowed list?
97You need to ensure a container's filesystem is immutable at runtime except for a temporary volume. Which Pod spec configuration achieves this?
98Which TWO of the following are valid Falco rule priorities?
99Which TWO of the following are true about Kubernetes audit logging?
100You suspect a container is running an unexpected process. Which crictl command can you use to list all running containers on the node?
101Which flag is used when starting kube-apiserver to enable audit logging?
102In a Falco rule, you have the condition: 'evt.type=execve and proc.name=bash and container.id!=host'. What does this rule detect?
103You need to isolate a compromised pod named 'malicious-pod' in the 'default' namespace so that it cannot communicate with any other pod, but can still receive traffic from a specific monitoring pod. Which NetworkPolicy should you apply?
104You run 'kubectl exec -it <pod> -- /bin/sh' inside a pod that has an immutable root filesystem. What happens?
105Which audit policy level logs all requests and responses, including the request body and response body?
106Which kubectl command(s) can you use to view the logs of a specific container in a multi-container pod? (Select all that apply)
107You need to configure the Kubernetes API server to enable audit logging at the 'Metadata' level for all requests. Which flag should be used when starting the kube-apiserver?
108During a security incident, you need to isolate a compromised pod named 'malicious-pod' in namespace 'default' to prevent it from communicating with other pods. Which command should you run?
109An administrator wants to ensure that containers in the 'secure-app' namespace cannot write to their own filesystem. Which pod security context setting should be used?
110A Falco rule is written to detect access to /etc/shadow inside a container. Which condition should be used?
111You are using crictl to debug a container. Which command lists all running containers on the node?
112A pod is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see the event: '0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate'. What is the most likely solution?
113Which command can be used to view the logs of a container using the container runtime interface (crictl)?
114You suspect a container has been compromised. You want to preserve the container's filesystem for forensic analysis before terminating the pod. Which approach should you use?
115Which TWO of the following are valid audit levels in a Kubernetes audit policy? (Select TWO.)
116Which TWO of the following are valid techniques to detect and respond to runtime incidents in a Kubernetes cluster? (Select TWO.)
117Which THREE of the following are valid audit stages in Kubernetes audit logging? (Select THREE.)
118Which kubectl command can be used to view the live logs of a container in a pod named 'my-pod'?
119A security team wants to detect any attempt to read the /etc/shadow file inside a container. Which Falco rule condition would detect this syscall?
120An administrator wants to enable Kubernetes audit logging with the following requirements: log all requests at the Metadata level, but log all responses at the Request level. Which audit policy configuration achieves this?
121A pod named 'compromised-pod' is suspected of making unauthorized outbound connections. You want to isolate the pod using a NetworkPolicy. Which policy correctly denies all egress traffic from the pod?
122Which crictl command lists all running containers on a node?
123Which TWO of the following are valid audit policy levels in Kubernetes? (Choose two.)
124Which THREE of the following are recommended steps during incident response for a compromised pod? (Choose three.)
125Which TWO of the following Falco fields can be used in a rule condition to detect a shell spawned inside a container? (Choose two.)
126Which TWO of the following are valid audit stages in Kubernetes? (Choose two.)
127A CKS candidate is investigating a pod that appears to have been compromised. The incident response team wants to capture the exact system calls made by processes inside the container to understand the attacker's actions. Which Kubernetes-native feature or tool should be used to collect this syscall-level telemetry?
128A security engineer is hardening a Kubernetes cluster and wants to ensure that any container attempting to load a kernel module is immediately detected and logged. They have deployed Falco on all nodes. Which Falco rule condition should they use to detect this activity?
129A security analyst notices that a Falco rule intended to detect writes to /etc inside containers is generating alerts for a legitimate application that writes to /etc/app/config. The analyst wants to refine the rule to exclude this specific path while still detecting other writes to /etc. Which Falco rule condition modification should be applied?
130A cluster runs Kubernetes 1.29 with the AppArmor support enabled. A pod manifest sets securityContext.appArmorProfile.type to Localhost with localhostProfile: k8s-nginx. The pod stays in ContainerCreating and the kubelet logs show a failed to apply AppArmor profile error. Which action most directly resolves the failure?
131A security analyst needs to detect and record attempts to modify Kubernetes audit-relevant resources. The cluster already forwards audit logs to a SIEM. Which configuration ensures the API server records both the request and the response for changes to Secrets, while keeping other requests at a lighter level?
132A cluster uses containerd and a security team wants to block containers from loading kernel modules. They apply a pod with securityContext.seccompProfile.type set to Localhost and a profile that returns SCMP_ACT_ERRNO for the init_module and finit_module syscalls. The pod starts but a test binary still loads a module. Which is the most likely cause?
133A platform team is hardening a namespace that runs tenant workloads. They want runtime detection that flags container escapes and unexpected privilege changes. Which TWO Falco rule fields or conditions are most appropriate to detect these behaviors? (Choose two.)
Be able to contain a compromised pod, inspect its runtime network and process activity, and write an egress NetworkPolicy for a specific IP and port. The key is verifying the policy actually selects the target pods and is enforced by the cluster CNI.
The Courseiva CKS question bank contains 133 questions in the Monitoring, Logging and Runtime Security domain, covering the 20% of the exam attributed to this domain in the official CNCF blueprint. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Monitoring, Logging and Runtime Security domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included