CKS Exam Question 41
You have a Kubernetes cluster witn multiple namespaces. One namespace, "dev", is used for development and testing purposes. You want to prevent pods in the "dev" namespace from accessing resources in other namespaces.
CKS Exam Question 42
You are configuring a Kubernetes cluster to host a new web application. You want to implement strong authentication mechanisms, including two-factor authentication (2FA) for users accessing the clusters API server. Describe how you would enable 2FA for the Kubernetes API server, including the steps involved and any necessary configuration changes.
CKS Exam Question 43
You nave a Kubernetes cluster with a Deployment named 'web-app- that runs multiple replicas of a web application. You need to create a network policy that allows only traffic from pods in the same namespace to access the web application's API endpoint on port 8080.
CKS Exam Question 44
Your Kubernetes cluster has several applications running in different namespaces. You want to enforce a policy where only pods within the 'monitoring' namespace can communicate witn pods in the sapi-server' namespace. How can you achieve this using NetworkPolicies?
CKS Exam Question 45
You are building a microservice architecture on Kubernetes- You are using Docker images from a public registry for your applications. One of the microservices is responsible for managing sensitive user data. To minimize the base image footprint and enhance security, you need to create a custom base image that iS as minimal as possible while still containing the required dependencies for your service.
What are the steps you would take to create a custom base image for this microservice? How would you ensure the custom base image is secure, and how would you incorporate it into your deployment process? Provide a step-by-step guide with code examples.
What are the steps you would take to create a custom base image for this microservice? How would you ensure the custom base image is secure, and how would you incorporate it into your deployment process? Provide a step-by-step guide with code examples.






