# Istio quiz questions

> 70 multiple-choice questions on service mesh traffic management, mTLS, authorization policies and ambient mode, with answers and explanations.

Quiz page: https://k8wiz.com/istio/difficulty

## Beginner (Easy): 24 questions

Interactive quiz: https://k8wiz.com/istio/quiz/easy

### What is Istio?

Istio, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-istio

- A. A container orchestration platform
- B. A service mesh for managing microservices
- C. A Kubernetes distribution
- D. A container runtime

**Answer:** A service mesh for managing microservices

**Explanation:** Istio is an open-source service mesh that provides a way to control how microservices share data with one another. It includes APIs that let it integrate into any logging platform, telemetry, or policy system.

### Which of the following is NOT a core component of Istio?

Istio, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-core-component-of-istio

- A. Pilot
- B. Mixer
- C. Citadel
- D. Kubelet

**Answer:** Kubelet

**Explanation:** Kubelet is a component of Kubernetes, not Istio. Istio's core components include Pilot (for service discovery and traffic management), Mixer (for policy enforcement and telemetry collection), and Citadel (for security).

### What is a sidecar in the context of Istio?

Istio, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/what-is-a-sidecar-in-the-context-of-istio

- A. A separate microservice that handles authentication
- B. A proxy container deployed alongside application containers
- C. A backup service that takes over when the main service fails
- D. A monitoring agent installed on the host machine

**Answer:** A proxy container deployed alongside application containers

**Explanation:** In Istio, a sidecar is a proxy container (Envoy) that is deployed alongside each application container. The sidecar intercepts all network communication to and from the application container, enabling Istio to manage traffic, enforce policies, and collect metrics.

### Which proxy does Istio use for its data plane?

Istio, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/which-proxy-does-istio-use-for-its-data-plane

- A. NGINX
- B. HAProxy
- C. Envoy
- D. Traefik

**Answer:** Envoy

**Explanation:** Istio uses Envoy as its proxy for the data plane. Envoy is a high-performance proxy developed in C++ that handles all inbound and outbound traffic for services in the service mesh.

### What is the purpose of Istio's control plane?

Istio, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-control-plane

- A. To directly handle application traffic
- B. To configure and manage the proxies (data plane)
- C. To store application data
- D. To run application containers

**Answer:** To configure and manage the proxies (data plane)

**Explanation:** Istio's control plane is responsible for configuring and managing the proxies (data plane). It handles service discovery, configuration, and certificate distribution to the Envoy proxies.

### Which Kubernetes resource is used to define routing rules in Istio?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/which-kubernetes-resource-is-used-to-define-routing-rules-in-istio

- A. Service
- B. Deployment
- C. VirtualService
- D. ConfigMap

**Answer:** VirtualService

**Explanation:** In Istio, VirtualService is the Kubernetes resource used to define routing rules. It specifies how requests are routed to a service within the mesh.

### What is the purpose of an Istio Gateway?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-an-istio-gateway

- A. To manage internal service-to-service communication
- B. To manage ingress and egress traffic for the mesh
- C. To store configuration data
- D. To authenticate users

**Answer:** To manage ingress and egress traffic for the mesh

**Explanation:** An Istio Gateway is used to manage ingress and egress traffic for the mesh. It defines entry points into the mesh and allows you to specify which traffic is allowed to enter or leave.

### What command is used to install Istio using the Istio CLI?

Istio, Easy (Beginner), Installation. https://k8wiz.com/uquiz/what-command-is-used-to-install-istio-using-the-istio-cli

- A. istio install
- B. istioctl install
- C. kubectl apply -f istio.yaml
- D. helm install istio

**Answer:** istioctl install

**Explanation:** The command 'istioctl install' is used to install Istio using the Istio CLI (istioctl). This command installs Istio with the default configuration or with a specified profile.

### How does Istio inject sidecar proxies into Kubernetes pods?

Istio, Easy (Beginner), Installation. https://k8wiz.com/uquiz/how-does-istio-inject-sidecar-proxies-into-kubernetes-pods

- A. By manually adding the sidecar container to each deployment
- B. By using a Kubernetes admission controller to automatically inject the sidecar
- C. By replacing the Kubernetes scheduler
- D. By modifying the container runtime

**Answer:** By using a Kubernetes admission controller to automatically inject the sidecar

**Explanation:** Istio uses a Kubernetes admission controller to automatically inject the Envoy sidecar proxy into pods when they are created. This is typically enabled by adding a label to the namespace or pod template.

### What is the purpose of Istio's DestinationRule resource?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-destinationrule-resource

- A. To define the available versions of a service
- B. To route traffic to different services
- C. To configure connection pools and outlier detection
- D. To authenticate users

**Answer:** To configure connection pools and outlier detection

**Explanation:** DestinationRule in Istio is used to configure traffic policies such as load balancing, connection pool settings, and outlier detection (circuit breaking) after routing has occurred.

### Which of the following is NOT a benefit of using Istio?

Istio, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-benefit-of-using-istio

- A. Automatic load balancing
- B. Fine-grained traffic control
- C. Automatic scaling of applications
- D. Enhanced security with mutual TLS

**Answer:** Automatic scaling of applications

**Explanation:** Automatic scaling of applications is not a direct benefit of Istio. While Istio provides traffic management, security, and observability, application scaling is typically handled by Kubernetes features like Horizontal Pod Autoscaler.

### What is the default protocol used by Istio for service-to-service communication?

Istio, Easy (Beginner), Networking. https://k8wiz.com/uquiz/what-is-the-default-protocol-used-by-istio-for-service-to-service-communication

- A. HTTP/1.1
- B. HTTP/2
- C. gRPC
- D. TCP

**Answer:** HTTP/2

**Explanation:** Istio uses HTTP/2 as the default protocol for service-to-service communication. HTTP/2 provides features like multiplexing, header compression, and server push that make it well-suited for microservices communication.

### What is the purpose of Istio's ServiceEntry resource?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-serviceentry-resource

- A. To define internal services
- B. To add external services to Istio's service registry
- C. To create new Kubernetes services
- D. To expose internal services externally

**Answer:** To add external services to Istio's service registry

**Explanation:** ServiceEntry in Istio is used to add external services to Istio's service registry. This allows services within the mesh to access external services as if they were part of the mesh.

### How can you enable automatic sidecar injection for a namespace in Istio?

Istio, Easy (Beginner), Installation. https://k8wiz.com/uquiz/how-can-you-enable-automatic-sidecar-injection-for-a-namespace-in-istio

- A. By adding the 'istio-injection=enabled' label to the namespace
- B. By adding the sidecar container to each deployment manually
- C. By using the 'istioctl inject' command for each deployment
- D. By modifying the Istio control plane configuration

**Answer:** By adding the 'istio-injection=enabled' label to the namespace

**Explanation:** To enable automatic sidecar injection for a namespace in Istio, you need to add the 'istio-injection=enabled' label to the namespace. This tells Istio's admission controller to automatically inject the Envoy sidecar into all pods created in that namespace.

### What is the purpose of Istio's RequestAuthentication resource?

Istio, Easy (Beginner), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-requestauthentication-resource

- A. To authenticate requests using JWT tokens
- B. To authenticate users with username and password
- C. To authenticate service-to-service communication
- D. To authenticate API keys

**Answer:** To authenticate requests using JWT tokens

**Explanation:** RequestAuthentication in Istio is used to validate JWT tokens in requests. It specifies the issuer, audiences, and public keys to use for JWT validation.

### Which mutual TLS mode does an Istio sidecar workload accept by default when no PeerAuthentication policy applies to it?

Istio, Easy (Beginner), Security. https://k8wiz.com/uquiz/which-mutual-tls-mode-does-an-istio-sidecar-workload-accept-by-default-when-no-peerauthentication-policy-applies-to-it

- A. STRICT
- B. PERMISSIVE
- C. DISABLE
- D. ISTIO_MUTUAL

**Answer:** PERMISSIVE

**Explanation:** Without a policy, Istio uses PERMISSIVE, so workloads accept both mutual TLS and plain text. Sidecars still send mutual TLS to each other through auto mTLS, but clients without a proxy can connect in plain text. ISTIO_MUTUAL is a DestinationRule TLS mode for clients, not a PeerAuthentication mode.

### Where do you create an Istio PeerAuthentication policy that applies to the whole mesh?

Istio, Easy (Beginner), Security. https://k8wiz.com/uquiz/where-do-you-create-an-istio-peerauthentication-policy-that-applies-to-the-whole-mesh

- A. In the default namespace, with an empty selector
- B. In any namespace, with the label istio.io/mesh-wide
- C. In kube-system, next to the cluster DNS service
- D. In the root namespace, istio-system by default, with no selector

**Answer:** In the root namespace, istio-system by default, with no selector

**Explanation:** A PeerAuthentication in Istio's root namespace without a selector is the mesh-wide policy. A policy without a selector in any other namespace covers only that namespace. Narrower policies win, so namespace and workload policies can still make exceptions to the mesh default.

### On Istio metrics reported by the destination proxy, which connection_security_policy value means the request used mutual TLS?

Istio, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/on-istio-metrics-reported-by-the-destination-proxy-which-connection_security_policy-value-means-the-request-used-mutual-tls

- A. mutual_tls
- B. istio_mutual
- C. strict
- D. mtls_enabled

**Answer:** mutual_tls

**Explanation:** Istio sets connection_security_policy to mutual_tls when the connection used Istio's mutual TLS and the destination reports the metric. Querying istio_requests_total for reporter="destination" and any other value finds the plain-text clients to fix before switching to STRICT. On metrics reported by the source the label is unknown.

### Which namespace label tells Istio to inject sidecars from a specific control plane revision during a canary upgrade?

Istio, Easy (Beginner), Installation. https://k8wiz.com/uquiz/which-namespace-label-tells-istio-to-inject-sidecars-from-a-specific-control-plane-revision-during-a-canary-upgrade

- A. istio-injection=<revision>
- B. istio.io/rev=<revision>
- C. sidecar.istio.io/rev=<revision>
- D. istio.io/control-plane=<revision>

**Answer:** istio.io/rev=<revision>

**Explanation:** The istio.io/rev label selects the revision (or revision tag) whose injector handles pods in the namespace. The istio-injection label only takes enabled or disabled, and it takes precedence over istio.io/rev, so remove it when you switch a namespace to a revision.

### In an Istio sidecar access log, which Envoy response flag on a 503 means the cluster had no healthy endpoint to send the request to?

Istio, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/in-an-istio-sidecar-access-log-which-envoy-response-flag-on-a-503-means-the-cluster-had-no-healthy-endpoint-to-send-the-request

- A. UH
- B. UF
- C. NR
- D. UO

**Answer:** UH

**Explanation:** UH stands for no healthy upstream: the cluster exists but has no healthy endpoint, for example because a DestinationRule subset selects no pods. UF means the connection to an upstream failed, NR means no route matched, and UO means a circuit breaker limit was reached.

### With Istio access logging sent to standard output, which container's logs show the Envoy access log lines for a sidecar-injected pod?

Istio, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/with-istio-access-logging-sent-to-standard-output-which-containers-logs-show-the-envoy-access-log-lines-for-a-sidecar-injected-p

- A. The istio-init container
- B. The application container
- C. The istiod container
- D. The istio-proxy container

**Answer:** The istio-proxy container

**Explanation:** Envoy runs in the istio-proxy sidecar container and prints access logs to its standard output, so you read them with kubectl logs POD -c istio-proxy. istio-init only sets up traffic redirection and exits before the app starts, and istiod is the control plane, which does not proxy requests.

### What is the default value of meshConfig.outboundTrafficPolicy.mode in Istio?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/what-is-the-default-value-of-meshconfigoutboundtrafficpolicymode-in-istio

- A. REGISTRY_ONLY
- B. ALLOW_ANY
- C. ALLOW_ANY_DYNAMIC_DNS
- D. PASSTHROUGH

**Answer:** ALLOW_ANY

**Explanation:** Istio's mesh config defaults to ALLOW_ANY, so sidecars pass traffic for unknown hosts through to the IP the application requested. REGISTRY_ONLY has to be set explicitly, and only then are hosts without a Kubernetes service or ServiceEntry dropped. PASSTHROUGH is not a valid mode.

### With outboundTrafficPolicy set to REGISTRY_ONLY, what does a sidecar return for a plain HTTP request on port 80 to an external host with no ServiceEntry?

Istio, Easy (Beginner), Traffic Management. https://k8wiz.com/uquiz/with-outboundtrafficpolicy-set-to-registry_only-what-does-a-sidecar-return-for-a-plain-http-request-on-port-80-to-an-external-ho

- A. 403 Forbidden
- B. 503 Service Unavailable
- C. 502 Bad Gateway
- D. 404 Not Found

**Answer:** 502 Bad Gateway

**Explanation:** In REGISTRY_ONLY mode Istio adds a catch-all virtual host named block_all to the sidecar's HTTP routes, and it answers with a direct 502 response. HTTPS and raw TCP connections to unknown hosts get no status code at all, because the sidecar closes the connection instead.

### Which Envoy cluster name shows up in Istio access logs and metrics for outbound traffic dropped by REGISTRY_ONLY?

Istio, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/which-envoy-cluster-name-shows-up-in-istio-access-logs-and-metrics-for-outbound-traffic-dropped-by-registry_only

- A. BlackHoleCluster
- B. PassthroughCluster
- C. InboundPassthroughCluster
- D. EgressGatewayCluster

**Answer:** BlackHoleCluster

**Explanation:** Istio sends unknown outbound traffic to BlackHoleCluster when the mode is REGISTRY_ONLY. It is a static cluster with no endpoints, so nothing reaches the destination. PassthroughCluster is the one used for unknown hosts under ALLOW_ANY.

## Advanced (Medium): 22 questions

Interactive quiz: https://k8wiz.com/istio/quiz/medium

### What is the purpose of Istio's AuthorizationPolicy resource?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-authorizationpolicy-resource

- A. To authenticate users
- B. To control which services can access other services
- C. To encrypt traffic
- D. To generate authentication tokens

**Answer:** To control which services can access other services

**Explanation:** AuthorizationPolicy in Istio is used to control which services can access other services. It allows you to define fine-grained access control policies based on source, destination, method, path, and other attributes.

### Which of the following is NOT a traffic management feature of Istio?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-traffic-management-feature-of-istio

- A. Request routing
- B. Fault injection
- C. Traffic shifting
- D. Auto-scaling

**Answer:** Auto-scaling

**Explanation:** Auto-scaling is not a traffic management feature of Istio. Istio provides features like request routing, fault injection, and traffic shifting, but auto-scaling is typically handled by Kubernetes features like Horizontal Pod Autoscaler.

### What is a 'subset' in Istio's DestinationRule?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/what-is-a-subset-in-istios-destinationrule

- A. A group of similar services
- B. A named version of a service
- C. A subset of traffic to be routed
- D. A group of users

**Answer:** A named version of a service

**Explanation:** In Istio's DestinationRule, a subset is a named version of a service. Subsets are defined based on labels and are used for traffic splitting between different versions of a service.

### How does Istio implement mutual TLS (mTLS) between services?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/how-does-istio-implement-mutual-tls-mtls-between-services

- A. By requiring developers to implement TLS in their applications
- B. By using Envoy proxies to handle TLS termination and origination
- C. By using a separate TLS proxy for each service
- D. By modifying the Kubernetes API server

**Answer:** By using Envoy proxies to handle TLS termination and origination

**Explanation:** Istio implements mutual TLS (mTLS) between services by using Envoy proxies to handle TLS termination and origination. The proxies establish TLS connections with each other, and the Istio control plane manages the certificate distribution.

### What is the purpose of Istio's PeerAuthentication resource?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-peerauthentication-resource

- A. To authenticate users
- B. To authenticate requests using JWT tokens
- C. To configure mutual TLS settings for service-to-service communication
- D. To authenticate API keys

**Answer:** To configure mutual TLS settings for service-to-service communication

**Explanation:** PeerAuthentication in Istio is used to configure mutual TLS settings for service-to-service communication. It allows you to specify whether mTLS is required, optional, or disabled for services.

### Which component of Istio is responsible for certificate generation and distribution?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/which-component-of-istio-is-responsible-for-certificate-generation-and-distribution

- A. Pilot
- B. Mixer
- C. Citadel
- D. Galley

**Answer:** Citadel

**Explanation:** Citadel is the component of Istio responsible for certificate generation and distribution. It acts as a Certificate Authority (CA) and issues certificates to services for mutual TLS authentication.

### What is the purpose of Istio's VirtualService 'match' field?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-virtualservice-match-field

- A. To match services with their deployments
- B. To specify conditions for when routing rules apply
- C. To match users with their permissions
- D. To match certificates with services

**Answer:** To specify conditions for when routing rules apply

**Explanation:** The 'match' field in Istio's VirtualService is used to specify conditions for when routing rules apply. It allows you to define routing rules based on attributes like HTTP headers, URI, method, etc.

### How can you implement canary deployments using Istio?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-canary-deployments-using-istio

- A. By using Kubernetes Deployments with different labels
- B. By using VirtualService and DestinationRule to split traffic between versions
- C. By using Istio's built-in canary deployment feature
- D. By using separate namespaces for each version

**Answer:** By using VirtualService and DestinationRule to split traffic between versions

**Explanation:** Canary deployments in Istio are implemented by using VirtualService and DestinationRule to split traffic between different versions of a service. VirtualService defines the routing rules, and DestinationRule defines the subsets (versions) of the service.

### What is the purpose of Istio's ServiceEntry protocol field?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-serviceentry-protocol-field

- A. To specify the protocol used by the service (HTTP, TCP, etc.)
- B. To define custom protocols
- C. To encrypt the protocol
- D. To translate between protocols

**Answer:** To specify the protocol used by the service (HTTP, TCP, etc.)

**Explanation:** The protocol field in Istio's ServiceEntry is used to specify the protocol used by the service, such as HTTP, HTTPS, TCP, etc. This helps Istio understand how to handle the traffic to the service.

### What is the purpose of Istio's EnvoyFilter resource?

Istio, Medium (Advanced), Advanced Configuration. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-envoyfilter-resource

- A. To filter environment variables
- B. To customize the Envoy proxy configuration
- C. To filter traffic based on environment
- D. To create new Envoy proxies

**Answer:** To customize the Envoy proxy configuration

**Explanation:** EnvoyFilter in Istio is used to customize the Envoy proxy configuration. It allows you to modify the generated Envoy configuration to add, modify, or remove filters, listeners, routes, etc.

### Which of the following is NOT a valid mTLS mode in Istio's PeerAuthentication?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-mtls-mode-in-istios-peerauthentication

- A. STRICT
- B. PERMISSIVE
- C. DISABLE
- D. OPTIONAL

**Answer:** OPTIONAL

**Explanation:** OPTIONAL is not a valid mTLS mode in Istio's PeerAuthentication. The valid modes are STRICT (require mTLS), PERMISSIVE (allow both mTLS and plain text), and DISABLE (no mTLS).

### What is the purpose of Istio's Gateway 'servers' field?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-gateway-servers-field

- A. To define the physical servers where the gateway runs
- B. To define the virtual servers (ports, protocols, and hosts) exposed by the gateway
- C. To define the backend servers
- D. To define the server-side configuration

**Answer:** To define the virtual servers (ports, protocols, and hosts) exposed by the gateway

**Explanation:** The 'servers' field in Istio's Gateway is used to define the virtual servers exposed by the gateway. Each server specifies a port, protocol, and hosts that the gateway will listen on.

### How can you implement fault injection in Istio?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-fault-injection-in-istio

- A. By manually introducing errors in your application code
- B. By using VirtualService to inject delays or aborts
- C. By using a separate fault injection service
- D. By modifying the Envoy proxy directly

**Answer:** By using VirtualService to inject delays or aborts

**Explanation:** Fault injection in Istio is implemented by using VirtualService to inject delays or aborts. This allows you to test the resilience of your services by simulating failures without modifying your application code.

### What is the purpose of Istio's 'outlierDetection' field in DestinationRule?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-outlierdetection-field-in-destinationrule

- A. To detect outliers in metrics
- B. To detect and remove abnormal services
- C. To implement circuit breaking by ejecting unhealthy hosts
- D. To detect and block malicious traffic

**Answer:** To implement circuit breaking by ejecting unhealthy hosts

**Explanation:** The 'outlierDetection' field in Istio's DestinationRule is used to implement circuit breaking by ejecting unhealthy hosts from the load balancing pool. It specifies conditions for when a host should be considered unhealthy and removed from the pool.

### What is the purpose of Istio's Sidecar resource?

Istio, Medium (Advanced), Advanced Configuration. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-sidecar-resource

- A. To inject sidecar containers
- B. To configure which services a sidecar can see
- C. To define sidecar behavior
- D. To authenticate sidecars

**Answer:** To configure which services a sidecar can see

**Explanation:** The Sidecar resource in Istio is used to configure which services a sidecar can see. It allows you to limit the services that a sidecar proxy is aware of, which can improve performance by reducing the amount of configuration sent to the proxy.

### A DestinationRule sets trafficPolicy.tls.mode: DISABLE for a host. What happens when that host's Istio PeerAuthentication changes to STRICT?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/a-destinationrule-sets-trafficpolicytlsmode-disable-for-a-host-what-happens-when-that-hosts-istio-peerauthentication-changes-to

- A. Istio ignores the DestinationRule and uses mutual TLS anyway
- B. The API server rejects the new PeerAuthentication policy
- C. Clients send plain text because of the rule, and their requests fail
- D. The host falls back to PERMISSIVE mode for those clients only

**Answer:** Clients send plain text because of the rule, and their requests fail

**Explanation:** Auto mTLS only decides what clients send when nothing overrides it, and a DestinationRule with tls.mode DISABLE explicitly turns mutual TLS off on the client side. A STRICT server then rejects those plain-text connections. Remove the tls block or set ISTIO_MUTUAL before locking the host down.

### What does setting presence: REQUIRED on a jwtRules entry of an Istio RequestAuthentication do?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-does-setting-presence-required-on-a-jwtrules-entry-of-an-istio-requestauthentication-do

- A. Requests without that rule's token get a 401, even if another rule's token is valid
- B. Requests without that rule's token get a 403 from the AuthorizationPolicy
- C. The rule's token is validated first, before any other rule is checked
- D. Requests with no token at all are rejected, but one valid token is enough

**Answer:** Requests without that rule's token get a 401, even if another rule's token is valid

**Explanation:** The presence field, added in Istio 1.32, defaults to OPTIONAL, where a missing token is allowed as long as no invalid token is present. With REQUIRED, the token must be present and valid or the request is rejected with 401 Unauthorized. Marking every rule REQUIRED enforces that all configured tokens arrive together.

### Which Istio 1.32 mesh config setting turns off the sidecar's default retry of inbound requests that were reset before reaching the application?

Istio, Medium (Advanced), Traffic Management. https://k8wiz.com/uquiz/which-istio-132-mesh-config-setting-turns-off-the-sidecars-default-retry-of-inbound-requests-that-were-reset-before-reaching-the

- A. defaultHttpRetryPolicy: {}
- B. inboundTrafficPolicy: {retries: 0}
- C. defaultRetryPolicy: {attempts: 0}
- D. defaultInboundHttpRetryPolicy: {}

**Answer:** defaultInboundHttpRetryPolicy: {}

**Explanation:** Sidecars retry inbound requests twice on reset-before-request, and before 1.32 this was hardcoded. The new defaultInboundHttpRetryPolicy field tunes attempts, retryOn and backoff, and an empty object disables inbound retries mesh-wide. defaultHttpRetryPolicy only governs outbound traffic.

### After enabling ENABLE_GATEWAY_API_HTTPROUTE_AUTH on istiod, an EnvoyFilter that patches the gateway filter envoy.filters.http.rbac no longer affects ALLOW policies. Why?

Istio, Medium (Advanced), Advanced Configuration. https://k8wiz.com/uquiz/after-enabling-enable_gateway_api_httproute_auth-on-istiod-an-envoyfilter-that-patches-the-gateway-filter-envoyfiltershttprbac-n

- A. The flag moves all authorization checks into the ext_authz filter
- B. The ALLOW filter on the gateway is now named istio.authorization.allow
- C. EnvoyFilter resources are ignored on gateways that use HTTPRoute
- D. The ALLOW filter is now emitted as a route-level filter only

**Answer:** The ALLOW filter on the gateway is now named istio.authorization.allow

**Explanation:** With the flag on, Istio 1.32 emits the ALLOW action's HTTP filter on ingress gateways as istio.authorization.allow, while DENY and AUDIT keep envoy.filters.http.rbac. Patches matching the old name silently stop applying to ALLOW. Add a second EnvoyFilter that matches the new name, or leave the flag off.

### A client sidecar's Istio access log shows 503 UO for calls to a service. What rejected those requests?

Istio, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/a-client-sidecars-istio-access-log-shows-503-uo-for-calls-to-a-service-what-rejected-those-requests

- A. The server pod closed the connection mid-request
- B. A connectionPool limit in the DestinationRule
- C. A VirtualService with no route for the host
- D. Outlier detection ejecting every endpoint

**Answer:** A connectionPool limit in the DestinationRule

**Explanation:** UO means upstream overflow: the client proxy rejected the request because a circuit breaker limit from the DestinationRule connectionPool, such as http1MaxPendingRequests, was reached. The upstream_rq_pending_overflow stat on that cluster confirms it. Ejected endpoints show up as UH instead.

### An Istio Telemetry resource filters access logs with response.code >= 500, and failed connections never appear in the logs. Which filter expression also keeps them?

Istio, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/an-istio-telemetry-resource-filters-access-logs-with-responsecode-500-and-failed-connections-never-appear-in-the-logs-which-filt

- A. has(response.code) && response.code >= 500
- B. response.code >= 500 || response.code == 0
- C. !has(response.code) || response.code >= 500
- D. response.code >= 500 && !has(response.flags)

**Answer:** !has(response.code) || response.code >= 500

**Explanation:** When a connection fails, there is no response.code attribute at all, so a filter that only compares the code drops those entries. The Istio docs recommend !has(response.code) || response.code >= 500 to keep both server errors and failed connections. Testing for code 0 does not help because the attribute is missing, not zero.

### Why does Istio's egress guide use resolution: DNS rather than NONE in a ServiceEntry for an external HTTP host?

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/why-does-istios-egress-guide-use-resolution-dns-rather-than-none-in-a-serviceentry-for-an-external-http-host

- A. NONE stops the sidecar from adding X-Envoy headers to requests
- B. NONE requires an egress gateway to forward the external traffic
- C. NONE turns off access logging and metrics for the external host
- D. NONE lets a client spoof the Host header and reach any IP

**Answer:** NONE lets a client spoof the Host header and reach any IP

**Explanation:** With NONE, the sidecar forwards to the IP the application connected to and trusts the Host header to identify the service. A client could name an allowed host while sending traffic to a different IP. With DNS, the sidecar ignores the original IP and resolves the host itself.

## Expert (Hard): 24 questions

Interactive quiz: https://k8wiz.com/istio/quiz/hard

### What is the purpose of Istio's WorkloadEntry resource?

Istio, Hard (Expert), Advanced Configuration. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-workloadentry-resource

- A. To define a workload in the mesh
- B. To add non-Kubernetes workloads to the mesh
- C. To specify workload requirements
- D. To authenticate workloads

**Answer:** To add non-Kubernetes workloads to the mesh

**Explanation:** WorkloadEntry in Istio is used to add non-Kubernetes workloads to the mesh. It allows you to represent external workloads (like VMs) as if they were Kubernetes workloads, enabling them to participate in the service mesh.

### What is the purpose of Istio's WorkloadGroup resource?

Istio, Hard (Expert), Advanced Configuration. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-workloadgroup-resource

- A. To group similar workloads
- B. To define a template for WorkloadEntry resources
- C. To manage workload scaling
- D. To authenticate groups of workloads

**Answer:** To define a template for WorkloadEntry resources

**Explanation:** WorkloadGroup in Istio is used to define a template for WorkloadEntry resources. It provides a way to describe a collection of workloads with common properties, similar to how a Kubernetes Deployment describes a set of Pods.

### What is the purpose of Istio's 'consistentHash' load balancing in DestinationRule?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-consistenthash-load-balancing-in-destinationrule

- A. To ensure all requests go to the same endpoint
- B. To distribute requests evenly
- C. To route requests with the same key to the same endpoint
- D. To hash and encrypt the request

**Answer:** To route requests with the same key to the same endpoint

**Explanation:** The 'consistentHash' load balancing in Istio's DestinationRule is used to route requests with the same key to the same endpoint. This is useful for applications that require session affinity or stateful operations.

### How can you implement rate limiting in Istio?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-rate-limiting-in-istio

- A. By using Kubernetes resource limits
- B. By using Istio's built-in rate limiting feature
- C. By using an external rate limiting service with EnvoyFilter
- D. By modifying the application code

**Answer:** By using an external rate limiting service with EnvoyFilter

**Explanation:** Rate limiting in Istio is typically implemented by using an external rate limiting service with EnvoyFilter. Istio does not have a built-in rate limiting feature, but it can be integrated with external rate limiting services like Envoy's rate limit service.

### What is the purpose of Istio's 'locality' field in DestinationRule?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-locality-field-in-destinationrule

- A. To specify the geographic location of services
- B. To configure locality-aware load balancing
- C. To define local services
- D. To restrict services to a specific locality

**Answer:** To configure locality-aware load balancing

**Explanation:** The 'locality' field in Istio's DestinationRule is used to configure locality-aware load balancing. It allows you to prioritize routing to endpoints in the same locality (region/zone) to reduce latency and costs.

### What is the purpose of Istio's 'mirror' field in VirtualService?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-mirror-field-in-virtualservice

- A. To create a backup of the service
- B. To mirror traffic to another service for testing or monitoring
- C. To reflect traffic back to the sender
- D. To create a mirror image of the configuration

**Answer:** To mirror traffic to another service for testing or monitoring

**Explanation:** The 'mirror' field in Istio's VirtualService is used to mirror traffic to another service for testing or monitoring. It sends a copy of the requests to the mirrored service without affecting the original request path.

### How can you implement A/B testing using Istio?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-ab-testing-using-istio

- A. By using separate deployments for A and B
- B. By using VirtualService to route traffic based on headers or other attributes
- C. By using Istio's built-in A/B testing feature
- D. By modifying the application code

**Answer:** By using VirtualService to route traffic based on headers or other attributes

**Explanation:** A/B testing in Istio is implemented by using VirtualService to route traffic based on headers or other attributes. This allows you to direct specific users or requests to different versions of a service for testing purposes.

### What is the purpose of Istio's 'portLevelSettings' field in DestinationRule?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-portlevelsettings-field-in-destinationrule

- A. To configure settings for specific ports
- B. To map ports between services
- C. To restrict access to certain ports
- D. To define port names

**Answer:** To configure settings for specific ports

**Explanation:** The 'portLevelSettings' field in Istio's DestinationRule is used to configure settings for specific ports. It allows you to override the default traffic policy for specific ports of a service.

### What is the purpose of Istio's 'delegate' field in VirtualService?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-delegate-field-in-virtualservice

- A. To delegate authority to another service
- B. To delegate routing rules to another VirtualService
- C. To delegate authentication to an external service
- D. To delegate configuration to the control plane

**Answer:** To delegate routing rules to another VirtualService

**Explanation:** The 'delegate' field in Istio's VirtualService is used to delegate routing rules to another VirtualService. This allows you to split complex routing configurations across multiple VirtualService resources.

### How can you implement traffic mirroring with percentage-based control in Istio?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-traffic-mirroring-with-percentage-based-control-in-istio

- A. By using the 'mirror_percent' field in VirtualService
- B. By using multiple VirtualServices with different weights
- C. By using EnvoyFilter to modify the mirroring behavior
- D. By using a custom mixer adapter

**Answer:** By using the 'mirror_percent' field in VirtualService

**Explanation:** Traffic mirroring with percentage-based control in Istio is implemented by using the 'mirror_percent' field in VirtualService. This field allows you to specify what percentage of traffic should be mirrored to the target service.

### What is the purpose of Istio's 'exportTo' field in VirtualService and DestinationRule?

Istio, Hard (Expert), Advanced Configuration. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-exportto-field-in-virtualservice-and-destinationrule

- A. To export metrics to external systems
- B. To control the visibility of the resource across namespaces
- C. To export the configuration to other clusters
- D. To export traffic to external services

**Answer:** To control the visibility of the resource across namespaces

**Explanation:** The 'exportTo' field in Istio's VirtualService and DestinationRule is used to control the visibility of the resource across namespaces. It allows you to specify which namespaces can use the resource.

### What is the purpose of Istio's 'subjectAltNames' field in DestinationRule?

Istio, Hard (Expert), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-subjectaltnames-field-in-destinationrule

- A. To specify alternative names for the service
- B. To specify the Subject Alternative Names for certificate verification
- C. To define alternative subjects for authorization
- D. To provide aliases for the service

**Answer:** To specify the Subject Alternative Names for certificate verification

**Explanation:** The 'subjectAltNames' field in Istio's DestinationRule is used to specify the Subject Alternative Names for certificate verification. It allows you to specify which SANs should be expected in the server certificate when establishing TLS connections.

### How can you implement header-based routing in Istio?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/how-can-you-implement-header-based-routing-in-istio

- A. By using Kubernetes annotations
- B. By using VirtualService with header-based match conditions
- C. By modifying the Envoy configuration directly
- D. By using a custom mixer adapter

**Answer:** By using VirtualService with header-based match conditions

**Explanation:** Header-based routing in Istio is implemented by using VirtualService with header-based match conditions. This allows you to route traffic based on the presence, absence, or value of HTTP headers.

### What is the purpose of Istio's 'corsPolicy' field in VirtualService?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-corspolicy-field-in-virtualservice

- A. To implement Cross-Origin Resource Sharing policies
- B. To define core service policies
- C. To configure cross-service routing
- D. To set up service correlation

**Answer:** To implement Cross-Origin Resource Sharing policies

**Explanation:** The 'corsPolicy' field in Istio's VirtualService is used to implement Cross-Origin Resource Sharing (CORS) policies. It allows you to control which origins, methods, and headers are allowed when browsers make cross-origin requests to your services.

### What is the purpose of Istio's 'trafficPolicy.connectionPool' field in DestinationRule?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/what-is-the-purpose-of-istios-trafficpolicyconnectionpool-field-in-destinationrule

- A. To manage a pool of connections for load balancing
- B. To configure connection pooling settings like max connections and timeouts
- C. To define connection priorities
- D. To authenticate connection requests

**Answer:** To configure connection pooling settings like max connections and timeouts

**Explanation:** The 'trafficPolicy.connectionPool' field in Istio's DestinationRule is used to configure connection pooling settings like maximum connections, maximum pending requests, and timeouts. This helps to prevent overloading services and improve resilience.

### In Istio ambient mode, which component handles mTLS and L4 policy for the pods on each node?

Istio, Hard (Expert), Architecture. https://k8wiz.com/uquiz/in-istio-ambient-mode-which-component-handles-mtls-and-l4-policy-for-the-pods-on-each-node

- A. An Envoy sidecar in every pod
- B. A waypoint proxy in every namespace
- C. ztunnel, a per-node proxy
- D. istiod, which proxies all traffic

**Answer:** ztunnel, a per-node proxy

**Explanation:** Ambient mode removes sidecars. ztunnel runs as a DaemonSet, carries pod traffic in mTLS over HBONE tunnels and enforces L4 authorization. L7 features need a waypoint proxy, which you deploy only where you need it.

### A namespace runs in Istio ambient mode. You need HTTP header-based routing and L7 authorization for one of its services. What do you add?

Istio, Hard (Expert), Architecture. https://k8wiz.com/uquiz/a-namespace-runs-in-istio-ambient-mode-you-need-http-header-based-routing-and-l7-authorization-for-one-of-its-services-what-do-y

- A. A sidecar.istio.io/inject annotation on the service
- B. An EnvoyFilter on ztunnel
- C. A waypoint proxy, with the namespace or service labeled to use it
- D. Nothing, because ztunnel handles L7 routing

**Answer:** A waypoint proxy, with the namespace or service labeled to use it

**Explanation:** ztunnel only works at L4. For HTTP routing, retries, fault injection or L7 AuthorizationPolicy, you deploy a waypoint, an Envoy-based proxy you can create with 'istioctl waypoint apply'. Then you label the namespace or service with istio.io/use-waypoint so its traffic goes through it.

### A workload has AuthorizationPolicies with CUSTOM, DENY, and ALLOW actions. In what order does Istio check them?

Istio, Hard (Expert), Security. https://k8wiz.com/uquiz/a-workload-has-authorizationpolicies-with-custom-deny-and-allow-actions-in-what-order-does-istio-check-them

- A. CUSTOM, then DENY, then ALLOW
- B. ALLOW, then DENY, then CUSTOM
- C. In the order the policies were created
- D. DENY first, then CUSTOM, then ALLOW

**Answer:** CUSTOM, then DENY, then ALLOW

**Explanation:** Istio checks the layers in order CUSTOM, DENY, ALLOW, and a request that matches a denying policy in an earlier layer stops there. If no ALLOW policy applies to the workload, the request is allowed. If any ALLOW policy applies, at least one must match or the request is denied. That last rule is why adding a single ALLOW policy can block traffic it doesn't mention.

### The mesh-wide PeerAuthentication in istio-system sets STRICT. The namespace has one that sets PERMISSIVE. A workload-specific policy sets portLevelMtls to DISABLE for port 8080. Which mode applies to port 8080 of that workload?

Istio, Hard (Expert), Security. https://k8wiz.com/uquiz/the-mesh-wide-peerauthentication-in-istio-system-sets-strict-the-namespace-has-one-that-sets-permissive-a-workload-specific-poli

- A. STRICT
- B. PERMISSIVE
- C. None, because the policies conflict and the workload rejects traffic
- D. DISABLE

**Answer:** DISABLE

**Explanation:** The most specific PeerAuthentication wins. A policy with a selector for the workload overrides the namespace policy, which overrides the mesh-wide one in the root namespace. Port-level settings override the policy's own mode for that port. So port 8080 accepts plain text, and the workload's other ports use the workload policy's mode, or PERMISSIVE from the namespace if it sets none.

### An application in an Istio sidecar pod fails at startup because its first outbound calls happen before the Envoy sidecar is ready. Which setting fixes this?

Istio, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/an-application-in-an-istio-sidecar-pod-fails-at-startup-because-its-first-outbound-calls-happen-before-the-envoy-sidecar-is-read

- A. A longer initialDelaySeconds on the app's readiness probe
- B. PILOT_ENABLE_PROTOCOL_SNIFFING=false on istiod
- C. restartPolicy: Never on the pod
- D. holdApplicationUntilProxyStarts: true

**Answer:** holdApplicationUntilProxyStarts: true

**Explanation:** The containers in a pod start together, so the app can send traffic while Envoy has no configuration yet, and those requests fail. holdApplicationUntilProxyStarts, set mesh-wide in meshConfig.defaultConfig or per pod with the proxy.istio.io/config annotation, starts the sidecar first and holds the app until Envoy is ready. On clusters with native sidecar containers, Istio can also run the proxy as a native sidecar, which avoids the race.

### You create an Istio PeerAuthentication with a workload selector in the root namespace, istio-system. What does Istio do with it?

Istio, Hard (Expert), Security. https://k8wiz.com/uquiz/you-create-an-istio-peerauthentication-with-a-workload-selector-in-the-root-namespace-istio-system-what-does-istio-do-with-it

- A. It applies the policy to matching workloads in every namespace
- B. It ignores the policy, because root-namespace policies need no selector
- C. It applies the policy only to matching workloads in istio-system
- D. It merges the selector into the mesh-wide default policy

**Answer:** It ignores the policy, because root-namespace policies need no selector

**Explanation:** The PeerAuthentication API states that policies with workload selectors are ignored when deployed in the root namespace. A root-namespace policy is only meaningful as the mesh-wide default without a selector. To target specific workloads, put the policy with its selector in their own namespace.

### An Istio 1.32 DestinationRule sets outlierDetection.failurePercentageThreshold: 30 for a busy service with three pods. Why is no pod ever ejected for its failure rate?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/an-istio-132-destinationrule-sets-outlierdetectionfailurepercentagethreshold-30-for-a-busy-service-with-three-pods-why-is-no-pod

- A. The threshold only applies when consecutive5xxErrors is set to 0
- B. Failure rate ejection needs maxEjectionPercent set to 100
- C. Envoy skips failure percentage ejection in clusters with fewer than 5 hosts
- D. The threshold counts only gateway errors, not other 5xx responses

**Answer:** Envoy skips failure percentage ejection in clusters with fewer than 5 hosts

**Explanation:** Istio sets the threshold and enables enforcement but leaves Envoy's failure_percentage_minimum_hosts at its default of 5, and failure_percentage_request_volume at 50 requests per interval. A three-pod service is below the host minimum, so only the consecutive error counters can eject its pods.

### You add subset v2 to a DestinationRule and route a VirtualService to it in the same kubectl apply. Some requests fail with 503 for a few seconds. Why?

Istio, Hard (Expert), Traffic Management. https://k8wiz.com/uquiz/you-add-subset-v2-to-a-destinationrule-and-route-a-virtualservice-to-it-in-the-same-kubectl-apply-some-requests-fail-with-503-fo

- A. kubectl applies a VirtualService only after the next sidecar restart
- B. New subsets receive no endpoints until outlier detection clears them
- C. The sidecar rejects routes to a subset until istioctl analyze passes
- D. The VirtualService can reach proxies before the subset definition

**Answer:** The VirtualService can reach proxies before the subset definition

**Explanation:** Istio propagates configuration to istiod and the proxies in an eventually consistent way, so one kubectl apply does not guarantee order. If the VirtualService arrives first, Envoy refers to a subset cluster that does not exist yet and returns 503 until the DestinationRule lands. Use make-before-break: add the subset, wait, then update the VirtualService.

### A namespace's default Sidecar has egress hosts "./*" and "istio-system/*", and the mesh uses ALLOW_ANY. What happens to calls from that namespace to an external host with a ServiceEntry in another namespace?

Istio, Hard (Expert), Advanced Configuration. https://k8wiz.com/uquiz/a-namespaces-default-sidecar-has-egress-hosts-and-istio-system-and-the-mesh-uses-allow_any-what-happens-to-calls-from-that-names

- A. They fail with 502, because the host is outside the Sidecar's egress scope
- B. They succeed as passthrough traffic, because scoping does not block traffic
- C. They fail the TLS handshake, because BlackHoleCluster receives the connection
- D. They succeed through the ServiceEntry, because exportTo overrides the Sidecar

**Answer:** They succeed as passthrough traffic, because scoping does not block traffic

**Explanation:** The Sidecar resource only trims the configuration a proxy receives. A host outside its egress hosts is treated as unmatched traffic, and under ALLOW_ANY unmatched traffic goes to PassthroughCluster, so the call works but without the ServiceEntry's settings. To block it, set the outbound traffic policy to REGISTRY_ONLY in the mesh or on the Sidecar.
