CKA Exam Question 26

You have a Kubernetes cluster running a deployment named 'my-app' that is exposed via a NodePort service. You want to restrict access to the service from specific IP addresses within the cluster. How can you achieve this using a NetworkPolicy?

CKA Exam Question 27

Kubernetes. The microservices communicate with each other via a shared database. Explain how you would implement a strategy to manage persistent data in the database, ensuring availability and scalability for all microservices.

CKA Exam Question 28

You are managing a Kubernetes cluster with a very specific RBAC setup.
- Users in the "engineering" group can create Pods in the "dev" namespace, but only if the Pod's name starts with "frontend".
- Users in the "security" group can view events in the "prod" namespace, but only if the event's reason is "Failed".
Create a YAML file to define a custom resource and define its permissions for the "engineering" and "security" groups.

CKA Exam Question 29

You have a Deployment for a web application named 'web-app-deployment' that uses an image named 'web-app:vl .0'. You want to implement a rolling update to upgrade the deployment to a new version, 'web-app:v2.0', but only allow a maximum of 2 pods to be unavailable at any time during the update. How would you achieve this using Kubernetes?

CKA Exam Question 30

You have a 'NodePort' service named 'my-service' exposed on port 30000. You need to configure a NetworkPolicy to only allow access to the service from specific nodes in the cluster based on their node labels.