CKA Exam Question 31

You have a Deployment named 'frontend-deployment' with 5 replicas of a frontend container. You need to implement a rolling update strategy that allows for a maximum of 2 pods to be unavailable at any given time. You also want to ensure that the update process is completed within a specified timeout of 8 minutes. If the update fails to complete within the timeout, the deployment should revert to the previous version. Additionally, you want to configure a 'post-start' hook for the frontend container that executes a health check script to verify the application's readiness before it starts accepting traffic.

CKA Exam Question 32

You have a Deployment running on a Kubernetes cluster with limited resources. How can you adjust the Deployment to use resources more efficiently and prevent resource contention?

CKA Exam Question 33

You have a Deployment named 'worker-deployment' with 10 replicas of a worker container. You need to implement a rolling update strategy that allows for a maximum of 3 pods to be unavailable at any given time during the update process. You also want to ensure that the update process is completed within a specified timeout of 10 minutes. If the update fails to complete within the timeout, the deployment should revert to the previous version. Additionally, you want to implement a pause functionality to temporarily halt the rolling update process.

CKA Exam Question 34

Describe the difference between 'ReadWriteOnce' and access modes for PersistentVolumeClaims. In what scenarios would you choose each?

CKA Exam Question 35

You have a Kubernetes cluster with three nodes. Nodel and Node2 are in the 'default' availability zone, while Node3 is in the 'us-east-I a' availability zone. You want to ensure that pods are spread across all three nodes, considering the availability zones.
Describe how to configure the cluster to achieve this goal, specifically addressing how to leverage 'nodeSelector' and/or 'affinity' to enforce desired node placement. Explain the rationale behind your chosen approach.