Exam Details

  • Exam Code
    :CKA
  • Exam Name
    :Certified Kubernetes Administrator (CKA) Program
  • Certification
    :Kubernetes Administrator
  • Vendor
    :Linux Foundation
  • Total Questions
    :64 Q&As
  • Last Updated
    :May 09, 2024

Linux Foundation Kubernetes Administrator CKA Questions & Answers

  • Question 51:

    CORRECT TEXT

    Task

    Scale the deployment presentation to 6 pods.

  • Question 52:

    CORRECT TEXT

    Task

    Create a new PersistentVolumeClaim

    1.

    Name: pv-volume

    2.

    Class: csi-hostpath-sc

    3.

    Capacity: 10Mi

    Create a new Pod which mounts the PersistentVolumeClaim as a volume:

    1.

    Name: web-server

    2.

    Image: nginx

    3.

    Mount path: /usr/share/nginx/html

    Configure the new Pod to have ReadWriteOnce access on the volume.

    Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.

  • Question 53:

    CORRECT TEXT

    Context

    You have been asked to create a new ClusterRole for a deployment pipeline and bind it to a specific ServiceAccount scoped to a specific namespace.

    Task

    Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types:

    1.

    Deployment

    2.

    StatefulSet

    3.

    DaemonSet

    Create a new ServiceAccount named cicd-token in the existing namespace app-team1.

    Bind the new ClusterRole deployment-clusterrole lo the new ServiceAccount cicd-token , limited to the namespace app-team1.

  • Question 54:

    CORRECT TEXT

    Context An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e.g.kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement. Task

    Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big- corp-app. The new sidecar container has to run the following command:

    /bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.

  • Question 55:

    CORRECT TEXT

    Task

    Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx. Create a new service named front-end-svc exposing the container port http.

    Configure the new service to also expose the individual Pods via a NodePort on the nodes on which they are scheduled.

  • Question 56:

    CORRECT TEXT

    Task

    Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.

    Further ensure that the new NetworkPolicy:

    1.

    does not allow access to Pods, which don't listen on port 9000

    2.

    does not allow access from Pods, which are not in namespace my-app

  • Question 57:

    CORRECT TEXT

    Task

    Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt.

  • Question 58:

    CORRECT TEXT

    Task

    Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1.

    Be sure to drain the master node before upgrading it and uncordon it after the upgrade.

    You are also expected to upgrade kubelet and kubectl on the master node.

  • Question 59:

    CORRECT TEXT

    Task

    Create a new nginx Ingress resource as follows:

    1.

    Name: ping

    2.

    Namespace: ing-internal

    3.

    Exposing service hi on path /hi using service port 5678

  • Question 60:

    CORRECT TEXT

    Task

    Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app-data .

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Linux Foundation exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CKA exam preparations and Linux Foundation certification application, do not hesitate to visit our Vcedump.com to find your solutions here.