CKA Kubernetes Services and Networking Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. ExternalName service type maps a Kubernetes service to a ____ DNS name.

Explanation

An ExternalName Service creates a DNS alias for an external host by returning a CNAME record. It does not proxy traffic or assign a cluster IP; DNS clients resolve the service name to the configured external DNS name.

Submit
Please wait...
About This Quiz
CKA Kubernetes Services and Networking Quiz - Quiz

This quiz evaluates your understanding of Kubernetes services, networking, and service discovery. It covers ClusterIP, NodePort, LoadBalancer services, network policies, DNS, ingress controllers, and service mesh concepts essential for CKA certification. Master these core networking components to deploy and manage production Kubernetes clusters effectively.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. The kubeproxy mode that uses Linux iptables for traffic routing is called ____ mode.

Explanation

In iptables mode, kube-proxy configures Linux iptables rules to route network traffic to the appropriate Kubernetes services and pods.

Submit

3. Select all that apply: Which features are provided by a service mesh like Istio?

Explanation

Istio provides traffic management through routing, load balancing, retries, and fault handling. It also supports service discovery by tracking available services in the mesh and enforces security policies such as authentication and authorization. Pod scheduling is handled by Kubernetes or another orchestration platform, not by the service mesh itself.

Submit

4. Which annotation is commonly used to configure session affinity on a service?

Explanation

Kubernetes uses `service.spec.sessionAffinity` to control whether requests from the same client are directed to the same backend pod. Setting it to `ClientIP` enables client-IP-based session affinity, while `None` disables affinity. Although the question calls it an annotation, this setting is a field in the Service specification.

Submit

5. CoreDNS is the default ____ server in Kubernetes clusters.

Explanation

CoreDNS is the default DNS server in Kubernetes clusters, providing name resolution and service discovery for pods and services.

Submit

6. An Ingress path rule uses the ____ field to specify URL paths.

Explanation

The `path` field defines the URL path that an Ingress rule matches, helping route requests to the appropriate backend service.

Submit

7. NetworkPolicy selectors work at which layer to control traffic?

Explanation

NetworkPolicy selectors identify the pods and namespaces to which a policy applies. The rules then control traffic using network-layer details, such as IP addresses, and transport-layer details, such as protocols and ports. They do not inspect application-layer content, so their scope is layers 3 and 4.

Submit

8. What is the maximum number of ports a single Kubernetes service can expose?

Explanation

A Kubernetes Service can expose multiple ports by listing them under `spec.ports`; Kubernetes does not impose a small fixed maximum such as 5 or 16. Each port can map to a target port on the selected Pods, though practical limits—such as API request size, resource constraints, and client or environment behavior—may apply.

Submit

9. Which of the following are valid service types in Kubernetes? (Select all that apply)

Explanation

Kubernetes supports Service types such as ClusterIP, which provides internal access; NodePort, which exposes a port on each node; and LoadBalancer, which provisions an external load balancer when supported by the environment. VirtualIP is not a distinct Service type; a ClusterIP is a virtual IP used for internal access.

Submit

10. A headless service is created by setting clusterIP to ____.

Explanation

Setting `clusterIP` to `None` creates a headless Kubernetes Service. It does not receive a virtual IP; instead, DNS can return the IP addresses of the service’s individual pods, allowing clients to discover and connect to them directly.

Submit

11. What is the default service type in Kubernetes when no type is specified?

Explanation

When a Kubernetes Service is created without an explicit type, Kubernetes assigns it the ClusterIP type by default. This gives the Service a stable virtual IP address reachable from within the cluster, allowing internal workloads to communicate with the selected Pods. It is not directly exposed externally by default.

Submit

12. What component manages IP tables rules and routes traffic to pod endpoints?

Explanation

Kube-proxy watches Kubernetes Services and their associated endpoints, then configures networking rules—commonly using iptables or IPVS—on each node. These rules forward Service traffic to the appropriate pod endpoints. The CNI plugin handles pod network connectivity, while kubelet manages the lifecycle of containers on a node.

Submit

13. The service DNS name format in Kubernetes is ____.

Explanation

In Kubernetes, a Service is discoverable through an internal DNS name built from its name, namespace, and cluster domain. The standard fully qualified format is `service-name.namespace.svc.cluster.local`: `svc` identifies the Service DNS zone, while `cluster.local` is the default cluster domain, which can be customized. This lets workloads reach Services by name across namespaces.

Submit

14. What does DNS in Kubernetes use to discover services within a cluster?

Explanation

Kubernetes DNS resolves services using their names and namespaces, creating a DNS name that lets workloads locate a service within the cluster without needing to know its changing IP address.

Submit

15. An Ingress resource requires which component to function?

Explanation

An Ingress resource defines rules for routing external traffic to services, but it does not enforce them on its own. An Ingress controller watches these resources and configures a proxy or load balancer to apply the routing rules.

Submit

16. Which Kubernetes object provides HTTP and HTTPS routing to services?

Explanation

Ingress provides HTTP and HTTPS routing from external clients to Kubernetes services. It can route requests based on hostnames or URL paths and may support TLS termination. An Ingress resource typically requires an Ingress controller to implement and manage the routing rules.

Submit

17. By default, Kubernetes allows all traffic between pods unless restricted by a NetworkPolicy.

Explanation

Kubernetes permits pod-to-pod traffic by default. Traffic is restricted only when a NetworkPolicy selects the relevant pods and defines rules, and the cluster’s network plugin enforces those policies.

Submit

18. What is the primary purpose of a Kubernetes NetworkPolicy?

Explanation

A Kubernetes NetworkPolicy defines rules governing which network traffic pods can send and receive. It controls ingress and egress at the pod level, helping isolate workloads and limit communication to authorized sources and destinations. It does not route traffic, load-balance requests, or expose services externally.

Submit

19. A LoadBalancer service type requires what external component to function?

Explanation

A Kubernetes Service of type `LoadBalancer` needs an external load balancer, typically provisioned and managed by the cloud provider, to expose the service outside the cluster. It directs incoming traffic toward the service’s backends. Kube-proxy handles in-cluster traffic forwarding, but does not provide the external load balancer itself.

Submit

20. Which service type exposes a pod on a static port on each node?

Explanation

NodePort exposes a service on a fixed port across every cluster node. Traffic sent to that port on any node is routed to one of the service’s pods, making the service accessible from outside the cluster.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
ExternalName service type maps a Kubernetes service to a ____ DNS...
The kubeproxy mode that uses Linux iptables for traffic routing is...
Select all that apply: Which features are provided by a service mesh...
Which annotation is commonly used to configure session affinity on a...
CoreDNS is the default ____ server in Kubernetes clusters.
An Ingress path rule uses the ____ field to specify URL paths.
NetworkPolicy selectors work at which layer to control traffic?
What is the maximum number of ports a single Kubernetes service can...
Which of the following are valid service types in Kubernetes? (Select...
A headless service is created by setting clusterIP to ____.
What is the default service type in Kubernetes when no type is...
What component manages IP tables rules and routes traffic to pod...
The service DNS name format in Kubernetes is ____.
What does DNS in Kubernetes use to discover services within a cluster?
An Ingress resource requires which component to function?
Which Kubernetes object provides HTTP and HTTPS routing to services?
By default, Kubernetes allows all traffic between pods unless...
What is the primary purpose of a Kubernetes NetworkPolicy?
A LoadBalancer service type requires what external component to...
Which service type exposes a pod on a static port on each node?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!