CKAD Kubernetes Services and Ingress 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
| Attempts: 11 | Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which Service type routes traffic only to pods within the same cluster?

Explanation

ClusterIP creates an internal virtual IP that is reachable only from within the Kubernetes cluster and forwards traffic to the service’s pods. It does not expose the service externally, unlike NodePort or LoadBalancer.

Submit
Please wait...
About This Quiz
CKAD Kubernetes Services and Ingress Quiz - Quiz

Test your knowledge of Kubernetes Services and Ingress resources. This quiz covers service types, networking concepts, and ingress configuration essential for deploying and managing applications in Kubernetes clusters. Perfect for developers preparing for the CKAD certification exam.

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. Service endpoints are automatically managed by Kubernetes when pods:

Explanation

Kubernetes associates a Service with Pods in the same namespace whose labels match the Service’s selector. It automatically updates the Service’s endpoints as matching Pods are added or removed. A Pod’s container image or node placement does not determine whether it is included.

Submit

3. What is the default service type if no type is specified in a Service manifest?

Explanation

When a Kubernetes Service manifest does not specify `spec.type`, Kubernetes defaults it to `ClusterIP`. This gives the Service an IP address reachable from within the cluster, allowing its workloads to communicate internally. Other service types, such as `NodePort` or `LoadBalancer`, must be explicitly requested.

Submit

4. The kube-proxy component in Kubernetes is responsible for:

Explanation

kube-proxy maintains network rules on each node so traffic sent to a Kubernetes Service’s virtual IP and port is forwarded to an appropriate backend pod. It supports Service-level routing and load balancing, commonly using iptables or IPVS. Pod scheduling, image downloads, and network-policy enforcement are handled by other Kubernetes components.

Submit

5. An Ingress resource requires TLS configuration to:

Explanation

Ingress TLS configuration lets an Ingress controller present a certificate and handle HTTPS traffic for defined HTTP routes, typically terminating TLS at the controller before forwarding requests to backend services. It does not encrypt pod-to-pod traffic, secure etcd, or manage authentication tokens.

Submit

6. What does the targetPort field specify in a Service definition?

Explanation

In a Kubernetes Service, `targetPort` identifies the port on the selected pod to which traffic is forwarded. It may be a number or a named container port. This differs from `port`, which is the port clients use to access the Service.

Submit

7. To expose a service on every node's IP at a static port, use a ______ Service.

Explanation

A NodePort Service exposes an application on a static port across every node’s IP address. Traffic sent to that port is routed to the Service’s backend pods, making the application reachable from outside the cluster.

Submit

8. Which annotation is commonly used to configure an Ingress controller behavior?

Explanation

`metadata.annotations` commonly holds configuration hints interpreted by an Ingress controller, such as rewrite rules, timeouts, or TLS behavior. These settings are controller-specific and do not change the Kubernetes resource’s core structure. Labels and selectors are mainly used for identification and matching, while status conditions report the resource’s observed state.

Submit

9. What is a SessionAffinity setting in a Service used for?

Explanation

SessionAffinity helps keep requests from a client directed to the same pod for a period of time. This is useful for applications that rely on session data stored locally on a pod rather than in a shared store.

Submit

10. In Kubernetes, selector fields in a Service definition are used to:

Explanation

A Service selector matches labels on pods, identifying the set of pods that receives traffic sent to that Service. Port numbers, TLS certificates, and resource limits are configured separately.

Submit

11. Which Service type is best for exposing a service to external traffic with automatic load balancing?

Explanation

LoadBalancer is designed to expose a Kubernetes Service to traffic from outside the cluster. In supported environments, Kubernetes provisions an external load balancer and routes incoming requests to the Service’s healthy backend Pods, distributing traffic automatically.

Submit

12. To use Ingress resources, your cluster must have an ______ installed.

Explanation

Ingress resources describe how external HTTP or HTTPS traffic should reach services inside a Kubernetes cluster. An Ingress controller must be installed to watch these resources and implement their routing rules; without one, the rules are not applied and traffic will not be routed as intended.

Submit

13. What does an Ingress resource do in Kubernetes?

Explanation

An Ingress resource defines rules for routing external HTTP or HTTPS traffic to Kubernetes services, typically using hostnames and URL paths. An Ingress controller implements these rules and handles the incoming traffic.

Submit

14. A NodePort Service exposes an application on a port range of:

Explanation

By default, Kubernetes allocates NodePort values from 30000 through 32767. A NodePort Service makes the application reachable on that port on each cluster node, forwarding traffic to the service’s backend pods. This high-numbered range helps avoid conflicts with common system and application ports, though administrators can configure a different range when needed.

Submit

15. What is the primary purpose of a Kubernetes Service?

Explanation

A Kubernetes Service provides a stable network endpoint for a set of pods. It routes traffic to matching pods, so clients can reach them through a consistent IP address and DNS name even when individual pods are replaced or their IP addresses change.

Submit

16. An Ingress can route traffic to multiple services based on ______ and ______ matching.

Explanation

An Ingress can direct incoming HTTP or HTTPS traffic to different backend services by examining the request’s hostname and URL path. For example, requests to different domains—or to different paths on the same domain—can be routed to the appropriate service.

Submit

17. What is the purpose of the ExternalName Service type?

Explanation

An ExternalName Service creates a DNS alias within the cluster that points to an external DNS name. It lets applications use a Kubernetes Service name to access a resource outside the cluster without routing or proxying traffic through Kubernetes.

Submit

18. To route traffic to an external database outside the cluster, use an ______ Service.

Explanation

In Kubernetes, an ExternalName Service provides a DNS alias for a hostname outside the cluster. When clients resolve the Service name, Kubernetes DNS returns a CNAME pointing to the configured external hostname, allowing applications to use a stable in-cluster name without creating pods, selectors, or proxying traffic through a cluster IP.

Submit

19. An Ingress rule with a path of /api will route requests to:

Explanation

An Ingress path’s matching behavior depends on its `pathType`. With `Prefix`, `/api` matches requests whose paths begin with `/api` at a path-element boundary, such as `/api/users`. With `Exact`, it matches only `/api`; other path types may define different matching behavior.

Submit

20. To enable sticky sessions in a Service, set sessionAffinity to ______ or ClientIP.

Explanation

Kubernetes Services support two session affinity settings: `None` and `ClientIP`. Setting `sessionAffinity` to `None` disables session-based routing, while `ClientIP` directs requests from the same client IP to the same backend.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which Service type routes traffic only to pods within the same...
Service endpoints are automatically managed by Kubernetes when pods:
What is the default service type if no type is specified in a Service...
The kube-proxy component in Kubernetes is responsible for:
An Ingress resource requires TLS configuration to:
What does the targetPort field specify in a Service definition?
To expose a service on every node's IP at a static port, use a ______...
Which annotation is commonly used to configure an Ingress controller...
What is a SessionAffinity setting in a Service used for?
In Kubernetes, selector fields in a Service definition are used to:
Which Service type is best for exposing a service to external traffic...
To use Ingress resources, your cluster must have an ______ installed.
What does an Ingress resource do in Kubernetes?
A NodePort Service exposes an application on a port range of:
What is the primary purpose of a Kubernetes Service?
An Ingress can route traffic to multiple services based on ______ and...
What is the purpose of the ExternalName Service type?
To route traffic to an external database outside the cluster, use an...
An Ingress rule with a path of /api will route requests to:
To enable sticky sessions in a Service, set sessionAffinity to ______...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!