Do you want to test your Openshift / Kubernetes knowledge ? try with our "Openshift interview questions" questions!

1) What are the three main Docker components? 

a) Docker Hub, Docker Image, Docker Registry
b) Docker Runtime, Docker Image, Docker Hub
c) Docker Container, Docker Image, Docker Hub

2) Choose two valid Openshift registry types:

a) Personal Registry
b) Private Registry
c) Public Registry
d) Security Registry

3) Docker by default ships with a Persistent Storage:
a) True
b) False

4) What Linux framework can be used to controls resource limitations (e.g. utilize fewer or more Memory, CPUs or disk I/O throughput) for a Docker container?

a) Namespaces
b) SELinux
c) Cgroups
d) chroot

5) What is the main downside of performing a Docker commit to your image ?

a) You cannot save the image to an upstream repository
b) If you don't keep track of changes in Docker file you might lose changes
c) The image will grows excessively in size
d) Makes difficult to distribute updates after a change

6) What are the two core object types used by Kubernetes?

a) Box
b) Node
c) Group
d) Master

7) On which platforms can run Kubernetes ?

a) A laptop
b) A Cloud provider
c) Bare metal servers
d) All of them

8) Which tool can you use to run Kubernates locally as a single-node cluster?

a) Minikube
b) Minishift
c) A Deployment Unit
d) A cluster replica

9) What are the main two Kubernetes services running on a Kubernetes Node? (choose two)

a) etcd
b) kubelet
c) kube-proxy
d) kube-node
d) kube-apiserver

10) What file formats can be used for creating Kubernetes resources with the kubectl create -f command? (choose two)

a) JSON
b) Javascript
c) CSV
d) YANG
e) YAML

11) Which Openshift component is the equivalent of Kubernetes Ingress:

a) Node
b) Pod
c) Router
d) Proxy

12) In Kubernetes you can use  ImageStreams for managing container images.

a) True
b) False
13) OpenShift has  stricter security policies than default Kubernetes

a) True
b) False

14) What is CRI-O ?

a) An agent that runs on each node in the cluster. It makes sure that containers are running in a pod.
b) An abstraction used by Kubernetes to support multiple virtual clusters on the same physical cluster
c) A Component on the master that exposes the Kubernetes API.
d) It is a lightweight alternative to using Docker as the runtime for kubernetes.

15) What container technologies are supported by CRI-O? (choose 2):

a) Docker
b) Minishift
c) Rkt
d) Minikube

16) Which two statements are true about CRI-O? choose 2:
a) CRI-O talks directly to Linux Kernel
b) CRI-O talks directly to Container Runtime
c) CRI-O is OCI-compliant
d) CRI-O is the only Container Runtime Interface available for Kubernetes

17) Which cloud platform OpenShift is ?
a) IaaS
b) PaaS
c) MaaS
d) SaaS

18) You have to run a pre-built local openshift cluster using the Community Version of it. You will need:
a) Minikube for Kubernetes
b) OpenShift Enterprise
c) Minishift for OKD  
d) CDK for OpenShift Container Platform

19) You have to run a pre-built local openshift cluster with the latest version of OpenShift Container Platform. You will need:
a) Minikube for Kubernetes
b) OpenShift Dedicated
c) Minishift for OKD  
d) CDK for OpenShift Container Platform

20) You are running Amazon Web Services and you want to orchestrate them using high-availability Kubernetes clusters. You will need:
a) Openshift dedicated  
b) Openshift Online
c) Openshift Container Engine
d) Minishift for OKD  

21) Kubernates Ingress and Openshift Routes are quite similar. However you have to use Openshift Routes if you need:

a) External access to services
b) Load-balancing strategies (e.g. round robin)
d) Persistent (sticky) sessions
d) TLS passthrough for improved security

22) Which of the following is NOT a new feature added by OpenShift in comparison to Kubernetes? choose one:

a) SCM integration
b) GUI and web console
c) Multi-tenancy
d) Persistent storage

23) Which components are unique to OpenShift in comparison to Kubernetes? (choose two)

a) Router as an ingress traffic control
b) Internal Registry
c) Master
d) Node

24) Both Openshift Container Engine and Openshift Platform are built on the same enterprise Kubernetes core platform and contain crucial Linux, container runtime, networking, management and security capabilities.

a) true
b) false

25) Which of the following feature is unique to Openshift Container Platform, compared with Openshift Container Engine:
 
a) Automated Container builds, built-in CI/CD pipeline and application console
b) Enterprise support
c) Can run monitoring solutions like Prometheus
d) Can run advanced networking like Multi-tenant SDN

26) What is the main prerequisite for the oc cluster up solution? (Choose one):
a) Docker
b) Minishift
c) Virtualbox
d) Hyper-V

27) Which tool can be used to diagnose issues in your Kubernetes/CRI-O daemons?

a) Podman
b) Buildah
c) Docker CLI
d) Crictl
28) Which tool can be used to manage pods and containers without requiring a container daemon?

a) Podman
b) Buildah
c) Docker CLI
d) Crictl

29) You are upgrading from Openshift 3.5 to Openshift 3.11. Which of the following components will need update?

a) Maria DB 10.1
b) Redis 3.2
c) etcd 3.0
d) Docker 1.12

30) Which of the following OpenShift storage plugins supports the ReadWriteMany access mode? choose two:

a) GlusterFS
b) NFS
c) Openstack Cinder
d) Azure Disk

31) A Persistent Volume (PV) object can be claimed by which project/s ?

a) default
b) openshift
c) any project
d) openshift-infra

32) Which network plugin is used to provide connectivity for pods across the entire cluster with no limitations ?

a) ovs-subnet
b) ovs-multitenant
c) ovs-networkpolicy
d) ovs-net

33) You have to design a OpenShift multi-DC HA design for 3 Data Centers. Your options are (A) 3 OpenShift cluster per 3 Data Centers or (B) a single Openshift cluster for all data centers. Which options provides better scalability and DC redundancy ?

a) A
b) B
 
34) You need a monitoring solution for your Openshift cluster. Considering that you are primarily doing metrics, need  a powerful query language, alerting, and notification functionality, plus higher availability and uptime for graphing and alerting. What is your first choice ?

a) InfludDB
b) OpenTSDB
c) Nagios
d) Prometheus  

35) You need a monitoring solution for your Openshift cluster. Considering that you need long term persistence of data and eventually consistent view of data between replicas. What is your first choice ?

a) InfludDB
b) OpenTSDB
c) Nagios
d) Prometheus

 

Answers:

What are the three main Docker components?
a) Docker Hub, Docker Image, Docker Registry

2 Choose two valid Openshift registry types:
b) Private Registry
c) Public Registry

3. Docker by default ships with a Persistent Storage:

b) False

4. What Linux framework can be used to controls resource limitations (e.g. utilize fewer or more Memory, CPUs or disk I/O throughput) for a Docker container?

c) Cgroups

5. What is the main downside of performing a Docker commit to your image ?

b) If you don't keep track of changes in Docker file you might lose changes


6. What are the two Node types used by Kubernetes?:

b) Node
d) Master


7. On which platforms can run Kubernates:

d) All of them

8. Which tool can you use to run Kubernates locally as a single-node cluster?

a) Minikube


9. What are the main two Kubernetes services running on a Kubernetes Node? (choose two)

b) kubelet
c) kube-proxy


10. What file formats can be used for creating Kubernetes resources with the kubectl create -f command? (choose two=:

a) JSON
e) YAML

11) Which Openshift component is the equivalent of Kubernetes Ingress:

c) Router


12) In Kubernetes you can use  ImageStreams for managing container images.

b) False


13) OpenShift has more strict security policies than default Kubernetes

a) True

14) What is CRI-O ?

d) It is a lightweight alternative to using Docker as the runtime for kubernetes.

15 What container technologies are supported by CRI-O? (choose 2):

a) Docker
c) Rkt

16) Which two statements are true about CRI-O? choose 2:
b) CRI-O talks directly to Container Runtime
c) CRI-O is OCI-compliant

17) Which cloud platform OpenShift is ?
b) PaaS


18) You have to run a local openshift cluster using the Community Version of it. You will need:
c) Minishift for OKD  

19) You have to run a pre-built local openshift cluster with the latest version of OpenShift Container Platform. You will need:
d) CDK for OpenShift Container Platform


20) You are running Amazon Web Services and you want to orchestrate them using high-availability Kubernetes clusters. You will need:
a) Openshift dedicated  

21) Kubernates Ingress and Openshift Routes are quite similar. However you have to use Openshift Routes if you need:

d) TLS passthrough for improved security

22) Which of the following is NOT a new feature added by OpenShift in comparison to Kubernetes? choose one:

d) Persistent storage


23) Which components are unique to OpenShift in comparison to Kubernetes? 

a) Router as an ingress traffic control
b) Internal Registry

24) Both Openshift Container Engine and Openshift Platform are built on the same enterprise Kubernetes core platform, and contain crucial Linux, container runtime, networking, management and security capabilities

a) true


25) Which of the following feature is unique to Openshift Container Platform, compared with Openshift Container Engine
 
a) Automated Container builds, built-in CI/CD pipeline and application console
d) Can run advanced networking like Multi-tenant SDN

26) What is the main prerequisite for the oc cluster up solution? (Choose one):
a) Docker

27) Which tool can be used to diagnose issues in your Kubernetes/CRI-O daemons?

d) Crictl


28) Which tool can be used to manage pods and containers without requiring a container daemon?

a) Podman


29) You are upgrading from Openshift 3.5 to Openshift 3.11. Which of the following components will need update?

c) etcd 3.0
d) Docker 1.12

30) Which of the following OpenShift storage plugins supports the ReadWriteMany access mode? choose two:

a) GlusterFS
b) NFS

31) A Persistent Volume (PV) object can be claimed by which project/s ?

a) default
b) openshift
c) any project
d) openshift-infra

32) Which network plugin is used to provide connectivity for pods across the entire cluster with no limitations ?

a) ovs-subnet
 
33) You have to design a OpenShift multi-DC HA design for 3 Data Centers. Your options are (A) 3 OpenShift cluster per 3 Data Centers or (B) a single Openshift cluster for all data centers. Which options provides better scalability and DC redundancy ?

a) A

34) You need a monitoring solution for your Openshift cluster. Considering that you are primarily doing metrics, need  a powerful query language, alerting, and notification functionality, plus higher availability and uptime for graphing and alerting. What is your first choice ?

d) Prometheus  

35) You need a monitoring solution for your Openshift cluster. Considering that you need long term persistence of data and eventually consistent view of data between replicas. What is your first choice ?
a) InfludDB

0
0
0
s2smodern