CKS Exam Question 1

SIMULATION
Secrets stored in the etcd is not secure at rest, you can use the etcdctl command utility to find the secret value for e.g:- ETCDCTL_API=3 etcdctl get /registry/secrets/default/cks-secret --cacert="ca.crt" --cert="server.crt" --key="server.key" Output

Using the Encryption Configuration, Create the manifest, which secures the resource secrets using the provider AES-CBC and identity, to encrypt the secret-data at rest and ensure all secrets are encrypted with the new configuration.
  • CKS Exam Question 2

    SIMULATION
    Create a new NetworkPolicy named deny-all in the namespace testing which denies all traffic of type ingress and egress traffic

    CKS Exam Question 3

    SIMULATION
    Enable audit logs in the cluster, To Do so, enable the log backend, and ensure that
    1. logs are stored at /var/log/kubernetes/kubernetes-logs.txt.
    2. Log files are retained for 5 days.
    3. at maximum, a number of 10 old audit logs files are retained.
    Edit and extend the basic policy to log:
    1. Cronjobs changes at RequestResponse
    2. Log the request body of deployments changes in the namespace kube-system.
    3. Log all other resources in core and extensions at the Request level.
    4. Don't log watch requests by the "system:kube-proxy" on endpoints or
  • CKS Exam Question 4

    SIMULATION
    Fix all issues via configuration and restart the affected components to ensure the new setting takes effect.
    Fix all of the following violations that were found against the API server:- a. Ensure that the RotateKubeletServerCertificate argument is set to true.
    b. Ensure that the admission control plugin PodSecurityPolicy is set.
    c. Ensure that the --kubelet-certificate-authority argument is set as appropriate.
    Fix all of the following violations that were found against the Kubelet:- a. Ensure the --anonymous-auth argument is set to false.
    b. Ensure that the --authorization-mode argument is set to Webhook.
    Fix all of the following violations that were found against the ETCD:-
    a. Ensure that the --auto-tls argument is not set to true
    b. Ensure that the --peer-auto-tls argument is not set to true
    Hint: Take the use of Tool Kube-Bench

    CKS Exam Question 5

    SIMULATION
    Fix all issues via configuration and restart the affected components to ensure the new setting takes effect.
    Fix all of the following violations that were found against the API server:- a. Ensure the --authorization-mode argument includes RBAC b. Ensure the --authorization-mode argument includes Node c. Ensure that the --profiling argument is set to false Fix all of the following violations that were found against the Kubelet:- a. Ensure the --anonymous-auth argument is set to false.
    b. Ensure that the --authorization-mode argument is set to Webhook.
    Fix all of the following violations that were found against the ETCD:-
    a. Ensure that the --auto-tls argument is not set to true
    Hint: Take the use of Tool Kube-Bench