Question 36
You need to implement a secure Kubernetes cluster configuration that minimizes the attack surface and reduces the potential for security vulnerabilities. Explain the security hardening measures you would implement, focusing on the following areas:
- Network Security: Implement measures to protect the clusters network from unauthorized access and attacks.
- Admission Control: Configure admission controllers to enforce security best practices during pod creation.
- Security Context: Configure security contexts for pods to enforce resource limitations and privilege restrictions.
- Secrets Management Implement secure secrets management tor sensitive data used within the cluster.
- Network Security: Implement measures to protect the clusters network from unauthorized access and attacks.
- Admission Control: Configure admission controllers to enforce security best practices during pod creation.
- Security Context: Configure security contexts for pods to enforce resource limitations and privilege restrictions.
- Secrets Management Implement secure secrets management tor sensitive data used within the cluster.
Question 37
You have a multi-tenant Kubernetes cluster where each tenant has its own namespace. You need to configure security policies to ensure that:
- Pods in namespace 'tenant-a' cannot access any resources in namespace 'tenant-b'
- Pods in namespace 'tenant-b' can access resources in namespace 'tenant-a' only if they have a label 'tier:gold'.
- Pods in namespace 'tenant-a' cannot access any resources in namespace 'tenant-b'
- Pods in namespace 'tenant-b' can access resources in namespace 'tenant-a' only if they have a label 'tier:gold'.
Question 38
You are managing a Kubernetes cluster With several applications running within pods. Your security policy mandates that all pods should run with the 'privileged' flag set to 'false' , while allowing a few pods to run with privileged access for specific tasks. How would you implement this policy by leveraging the Kubernetes security best practices?
Question 39
Your Kubernetes cluster runs a critical application that utilizes a private Docker registry for its container images. However, you want to implement a security best practice by leveraging an image signing mechanism for the images pushed to the registry. Describe how you can enforce image signing and verify the integrity of container images before deployment.
Question 40
SIMULATION
Create a RuntimeClass named untrusted using the prepared runtime handler named runsc.
Create a Pods of image alpine:3.13.2 in the Namespace default to run on the gVisor runtime class.
Create a RuntimeClass named untrusted using the prepared runtime handler named runsc.
Create a Pods of image alpine:3.13.2 in the Namespace default to run on the gVisor runtime class.







