CKA Exam Question 6

A Deployment named 'my-app-deployment' is experiencing frequent crashes. You suspect that a specific container within the Deployment is causing the crashes. How would you use Kubernetes tools and techniques to isolate and debug the problematic container?

CKA Exam Question 7

You have a Kubernetes cluster with a multi-tenant setup where different teams manage their own applications. You need to enforce a policy where only developers from the "engineering" team can create deployments for applications within the "dev" namespace. How would you implement this using RBAC?

CKA Exam Question 8

You have a Deployment named 'nginx-deployment running an Nginx server. The Nginx configuration file is stored in a ConfigMap named 'nginx-config'. You need to dynamically update the Nginx configuration file without restarting the Nginx pods.

CKA Exam Question 9

You have a Kubernetes cluster with a Deployment named 'web-app' running 3 replicas. One of the pods in the Deployment is consistently crashing, and you suspect it is due to resource limitations. You need to investigate the resource usage of the failing pod and adjust its resource requests and limits to prevent it from crashing.

CKA Exam Question 10

You are setting up a new Kubernetes cluster with a highly sensitive application that requires access control at the pod level. Explain how you can use NetworkPolicy to restrict access to pods within your cluster.