Kubernetes

Description

Software Development Computer Science Quiz on Kubernetes, created by Dustin White on 30/12/2021.
Dustin White
Quiz by Dustin White, updated more than 1 year ago
Dustin White
Created by Dustin White almost 3 years ago
445
0

Resource summary

Question 1

Question
Which feature in Kubernetes assigns pods to a node at runtime?
Answer
  • service discovery
  • container scheduling
  • scalability and availability
  • flexibility and modularization

Question 2

Question
Why do organizations use containers?
Answer
  • to tie infrastructure to the entire guest operating systems with an unshared kernel
  • to build a larger ecosystem of a collection of Docker images in the Docker Hub
  • to build legacy applications to use in macroservices-based architecture
  • to build applications to incorporate a microservices-based architecture

Question 3

Question
Which statement is true regarding the difference between a virtual machine and a container?
Answer
  • A container includes all the binaries and libraries that would exist on the OS.
  • A container includes many applications.
  • The terms container and virtual machine are used interchangeably.
  • A container shares the kernel with other containers.

Question 4

Question
How would you best describe Kubernetes?
Answer
  • a subscription platform designed to manually deploy scaling and operating applications within containers
  • an open-source platform designed for manually deploying, scaling, and operating application containers
  • a subscription platform designed to automate deploying, scaling, and operating application containers
  • an open-source platform designed to automate deploying, scaling, and operating application containers

Question 5

Question
Two features that allow Kubernetes Clusters to scale are _____ and _____.
Answer
  • flexibility; application upgrades
  • registration; discovery
  • persistent storage; modularity
  • scalability; availability

Question 6

Question
In a Kubernetes model, what is the simplest unit that you can interact with that represents one running process in your cluster?
Answer
  • a container
  • a kublete
  • a pod
  • a node

Question 7

Question
Where do applications operate within Kubernetes?
Answer
  • Worker nodes
  • Scheduler
  • API Server
  • Pods

Question 8

Question
Review the Kubernetes architecture in the image below. Which process handles load balancing, network routing, and connection forwarding for applications?
Answer
  • the kubectl process
  • the Controller Manager process
  • the kubelet process
  • the kube-proxy process

Question 9

Question
When a pod has been scheduled on a node, and all of its containers are created, which pod life cycle is represented?
Answer
  • Succeeded
  • Running
  • Pending
  • Failed

Question 10

Question
Why will you create deployments more than anything else?
Answer
  • Most applications require scaling deployments.
  • Most applications are package deployments.
  • Most deployments are scaling a ReplicaSet.
  • Most deployments are package applications.

Question 11

Question
In which scenario would using namespaces be a great concept?
Answer
  • in a large enterprise where there is one team and many users
  • in a small organization where there are many teams with one user
  • in a large enterprise where there are many users and teams
  • in a small organization where there is one team and one user

Question 12

Question
What is the purpose of the Podspec YAML file?
Answer
  • The kubelet ensures that the containers described in the Podspecs are running and healthy.
  • The kubelet uses the Podspecs to ensure the health of containers running on the node that were not created by the API server.
  • The API server uses the Podspecs to deploy containers to worker nodes.

Question 13

Question
How can you verify that Minikube and VirtualBox are talking to each other?
Answer
  • Run the command kubectl get nodes.
  • Run the command kubectl get runs.
  • Run the command kubectl get deployments.
  • Run the command kubectl get services.

Question 14

Question
Which resource or resources are created in Kubernetes after creating an application resource?
Answer
  • the application resource
  • A pod is created, along with the deployment and an associated ReplicaSet with statuses for each.
  • the service and NodePort
  • the nodes

Question 15

Question
How can you combine the deployment and the service yaml into a single yaml file?
Answer
  • Run the command vi helloworld-service.yml.
  • Run the command vi helloworld-all.yml.
  • Run the command vi helloworld-deployment.yml.
  • Run the command vi helloworld-run.yml.

Question 16

Question
If you are in Windows and using Powershell, the command docker version will check that _____.
Answer
  • the Docker version is out of date
  • a new Docker version is available
  • Docker is up and running
  • Docker has been shut down

Question 17

Question
How can you create multiple resources through a single deployment in Kubernetes?
Answer
  • You can only create one resource through one deployment at a time.
  • Use the three-dash notation to combine multiple files into a single YAML file.
  • Use kubectl to combine deployments into a single package.
  • Use an external Python script to package deployment files.

Question 18

Question
What happens with the command code chmod +x ./kubectl?
Answer
  • It makes the kubectl password protected.
  • It locks the kubectl.
  • It turns the kubectl open to edit.
  • It makes the kubectl executable.

Question 19

Question
Why does Kubernetes use a liveness probe?
Answer
  • so you can run updates on the healthy containers and check on the amount of traffic
  • so you will know when a container is actually ready to start accepting traffic
  • so you can run a periodic check on a container to make sure the container is still healthy
  • so you can run a manual check on a container to make sure the probes are still healthy

Question 20

Question
Which two specs can be defined for establishing application health checks?
Answer
  • healthcheckProbe and validationProbe
  • initialDelaySeconds and timeoutSeconds
  • readinessProbe and livenessProbe

Question 21

Question
How are labels added to a running pod?
Answer
  • by relabeling
  • by labeling
  • by constructing
  • by overwriting

Question 22

Question
What does running the command kubectl get pods --selector dev-lead=karthik,env=staging allow you to do?
Answer
  • add multiple labels and search by one label
  • add one label and search by multiple labels
  • subtract and search by multiple labels
  • add and search by multiple labels

Question 23

Question
You have many pods with various labels for each. Which command should be used to find the pods associated with your production environment?
Answer
  • get pods --production
  • get pods --show-labels
  • get pods --selector env=production
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr