Question 1
Which component is required for an Ingress to function?
Service Account
ConfigMap
Ingress Controller
Pod Security Policy
Question 2
Which Kubernetes object stores the IP addresses and ports of Pods linked to a Service?
Ingress
Secret
Endpoint
ConfigMap
Question 3
Which of the following statements about Ingress and Gateway API is true?
Ingress supports weighted routing and traffic splitting by default
Gateway API is protocol-agnostic and supports multi-layer routing
Ingress is primarily for outbound traffic
Gateway API cannot manage HTTP traffic
Question 4
You have two services: serviceA and serviceB. You want requests to example.com/serviceA to go to serviceA and example.com/serviceB to serviceB. Which feature of Ingress do you use?
TLS termination
Path-based routing
LoadBalancer
NodePort
Question 5
An Ingress Controller is not forwarding traffic as expected. You suspect the rules are incorrect. What is the first step?
Delete the cluster
Modify the Ingress YAML and reapply it
Recreate all Pods
Create a new Namespace
Question 6
You want to expose your backend service myapp-service on myapp.example.com with HTTPS. You already have a TLS certificate. Which steps must you perform?
Create an Ingress resource referencing the TLS secret and set host to myapp.example.com
Install an Ingress Controller if not already present
Create a Kubernetes Secret containing the TLS certificate and key
All of the above
Question 7
Your Ingress resource is working for HTTP but HTTPS requests fail. You realize the TLS secret is missing. How do you create it?
Create a Secret of type kubernetes.io/tls with the certificate and key in base64
Install a NodePort service
Add a LoadBalancer service
Restart the cluster
Question 8
After updating an Ingress rule, how can you verify if the changes are applied correctly?
kubectl get ingress <ingress-name>
Sending test requests using curl
Checking DNS mapping if required
All of the above
Question 9
You need to temporarily rollback an Ingress after a misconfiguration caused traffic failures. What is the correct procedure?
Apply the previous version of the Ingress YAML using kubectl apply -f old-ingress.yaml
Delete all Pods in the cluster
Restart the cluster
Change the service ports
Question 10
What does path-based routing in an Ingress allow you to do?
Route requests based on hostnames
Route requests to different services based on URL paths
Terminate TLS traffic
Create secrets
There are 10 questions to complete.