31. Which of the following will view the snapshot of previously terminated ruby container logs from Pod web-1?
A. kubectl logs -p -c ruby web-1
B. kubectl logs -c ruby web-1
C. kubectl logs -p ruby web-1
D. kubectl logs -p -c web-1 ruby
Answer
A
32. What native runtime is Open Container Initiative (OCI) compliant?
A. runC
B. runV
C. kata-containers
D. gvisor
Answer
A
33. Which API object is the recommended way to run a scalable, stateless application on your cluster?
A. ReplicaSet
B. Deployment
C. DaemonSet
D. Pod
Answer
B
34. A CronJob is scheduled to run by a user every one hour. What happens in the cluster when it’s time for this CronJob to run?
A. Kubelet watches API Server for CronJob objects. When it’s time for a Job to run, it runs the Pod directly.
B. Kube-scheduler watches API Server for CronJob objects, and this is why it’s called kube-scheduler.
C. CronJob controller component creates a Pod and waits until it finishes to run.
D. CronJob controller component creates a Job. Then the Job controller creates a Pod and waits until it finishes to run.
Answer
D
35. What is the purpose of the kubelet component within a Kubernetes cluster?
A. A dashboard for Kubernetes Clusters that allows management and troubleshooting of applications.
B. A network proxy that runs on each node in your cluster, implementing part of the Kubernetes Service concept.
C. A component that watches for newly created Pods with no assigned node, and selects a node for them to run on.
D. An agent that runs on each node in the cluster. It makes sure that containers are running in a Pod.
Answer
D
36. What is the default value for authorization-mode in Kubernetes API server?
A. –authorization-mode=RBAC
B. –authorization-mode=AlwaysAllow
C. –authorization-mode=AlwaysDeny
D. –authorization-mode=ABAC
Answer
B
37. Let’s assume that an organization needs to process large amounts of data in bursts, on a cloud-based Kubernetes cluster. For instance: each Monday morning, they need to run a batch of 1000 compute jobs of 1 hour each, and these jobs must be completed by Monday night. What’s going to be the most cost-effective method?
A. Run a group of nodes with the exact required size to complete the batch on time, and use a combination of taints, tolerations, and nodeSelectors to reserve these nodes to the batch jobs.
B. Leverage the Kubernetes Cluster Autoscaler to automatically start and stop nodes as they’re needed.
C. Commit to a specific level of spending to get discounted prices (with e.g. “reserved instances” or similar mechanisms).
D. Use PriorityСlasses so that the weekly batch job gets priority over other workloads running on the cluster, and can be completed on time.
Answer
B
38. What is a Kubernetes service with no cluster IP address called?
A. Headless Service
B. Nodeless Service
C. IPLess Service
D. Specless Service
Answer
A
39. CI/CD stands for:
A. Continuous Information / Continuous Development
B. Continuous Integration / Continuous Development
C. Cloud Integration / Cloud Development
D. Continuous Integration / Continuous Deployment
Answer
D
40. What default level of protection is applied to the data in Secrets in the Kubernetes API?
A. The values use AES Symmetric Encryption
B. The values are stored in plain text
C. The values are encoded with SHA256 hashes
D. The values are base64 encoded
Answer
D