CKA Services and Networking • Complete Question Bank
Complete CKA Services and Networking question bank — all 0 questions with answers and detailed explanations.
An Ingress resource is created with the following spec:
spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80
The backend service 'api-service' is in the same namespace as the Ingress. What must be true for the Ingress to route traffic to the service?
You have an Ingress resource with the following spec:
spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80
A client sends a request to http://example.com/api/v1/users. Which path is matched?
You apply the following NetworkPolicy:
apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress
What effect does this policy have?
An administrator creates a NetworkPolicy in namespace 'app' with the following YAML. Which statement is true about the policy?
apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress