wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

6. Kubernetes Networking & Services

Total questions: 20

Worksheet time: 16mins

Name
Class
Date
1.

All containers/PODs can communicate to one another without NAT.

a)

True

b)

False

2.

All nodes must be able to communicate with all containers in the cluster, and vice-versa.

a)

True

b)

False

3.

It specifies the port number of the node.

a)

NodePort

b)

ClusterIP

c)

LoadBalancer

4.

Which are Kubernetes services?

a)

NodePort

b)

ConfigMap

c)

ClusterIP

d)

LoadBalancer

e)

ServiceAccount

5.

"The service makes an internal port (TargetPort) accessible on a port in the node (NodePort)".

Which Kubernetes service does the above statement refer to?

a)

NodePort

b)

ConfigMap

c)

ClusterIP

d)

LoadBalancer

e)

ServiceAccount

6.

"The service creates a virtual IP inside the cluster to enable communications between different services"

Which Kubernetes service does the above statement refer to?

a)

NodePort

b)

ConfigMap

c)

ClusterIP

d)

LoadBalancer

e)

ServiceAccount

7.

"The service creates a virtual IP inside the cluster to enable communications between different services".

Which Kubernetes service does the above statement refer to?

a)

NodePort

b)

ConfigMap

c)

ClusterIP

d)

LoadBalancer

e)

ServiceAccount

8.

"It provisions a load balancer for our application in supported cloud providers".

Which Kubernetes service does the above statement refer to?

a)

NodePort

b)

ConfigMap

c)

ClusterIP

d)

LoadBalancer

e)

ServiceAccount

9.

The port on the POD is known as the (a)  

Fill the blank space.

10.

The port in the service is just simply referred as the  (a)  

Fill the blank space.

11.

The IP address of the service is called the (a)  

Fill the blank space.

12.

The port in the node is called the (a)  

Fill the blank space.

13.

Node ports can only be in the range between (1)__________ and (2)__________

Fill the blank space.

a)

(1) 1024

b)

(2) 2048

c)

(2) 32768

d)

(2) 32767

e)

(1) 30000

14.

The port in the node is called the (a)  

Fill the blank space.

15.

Which are two new parameters inside "spec" for a service definition file that are not present in ReplicaSet or Deployment definition files?

a)

selector

b)

type

c)

matchLabels

d)

ports

e)

apiServer

16.

Type the full command to create a service from the already created "service-definition.yml" file

(a)  

17.

Type the full command to list all the services created in the cluster:

(a)  

18.

You have a web app running in one POD with the IP address 192.168.1.2. The NodePort set for this POD is 30008.

Type the full command to access the web server using the IP of the node and the nodePort.

(a)  

19.

When we have multiple PODs in HA, let say for example three web applications PODs working in HA, we have to set all the applications with the same (a)  

Fill the blank space:

20.

If we have multiple applications running in HA mode, we can deploy a  (a)   machine, that it can be for example a reverse proxy.