CoreDNS and Network Policies for Microservices Quiz Home โบ Kubernetes CKA & CKAD โบ CoreDNS and Network Policies for Microservices ๐ Kubernetes (CKA & CKAD) – CoreDNS and Network Policies for Microservices 20 questions ยท 15 min timer ยท Explanations included ยท Free 1. How can you restrict egress traffic from a pod to a specific external IP address using NetworkPolicies? Use 'ipBlock' in the 'egress' section of the NetworkPolicy. Set 'policyTypes' to 'Ingress'. Use 'podSelector' with the external IP address. Use 'namespaceSelector' with the external IP address. None Show Hint To restrict egress traffic to a specific external IP address, use 'ipBlock' in the 'egress' section of the NetworkPolicy to define the allowed IP addresses. 2. How can you ensure that a NetworkPolicy applies to all pods in a specific namespace? Use a 'podSelector' with an empty selector. Set 'policyTypes' to 'All'. Use a 'namespaceSelector' with an empty selector. Use a 'namespaceSelector' with a label selector matching the namespace. None Show Hint To apply a NetworkPolicy to all pods in a specific namespace, use a 'namespaceSelector' with a label selector that matches the desired namespace. Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Loading questions... Click Submit to see your final score! Previous Start Quiz Next Time's up