Courseiva

CCNA Traffic Management Questions

18 of 93 questions · Page 2/2 · Traffic Management topic · Answers revealed

76
MCQhard

A service is experiencing high latency. You want to implement a circuit breaker to prevent cascading failures. Which resource do you use?

B.DestinationRule
C.VirtualService
D.EnvoyFilter
AnswerB

DestinationRule defines traffic policies for a service, including outlier detection, which ejects unhealthy hosts and implements circuit breaking. This satisfies the requirement to prevent cascading failures during high latency by limiting traffic to failing endpoints, unlike VirtualService, which handles routing rules rather than health-based ejection.

Why this answer

DestinationRule allows the configuration of traffic policies including circuit breaking via the outlierDetection field.

77
MCQmedium

You have a service that occasionally hangs. You want to ensure that if a request takes longer than 2 seconds, it fails immediately. Which field do you configure?

A.delay
B.maxConnections
C.maxRetries
D.timeout
AnswerD

Configuring the timeout field enforces the 2-second limit, causing the request to fail immediately once that duration elapses. This directly satisfies the stem's constraint of aborting slow or hanging requests rather than letting them continue indefinitely, which is exactly the behaviour required for the occasionally hanging service.

Why this answer

In Istio's traffic management API, the timeout field on an HTTP route specifies how long a request may take before Envoy aborts it and returns a 504. Setting timeout: 2s on the route ensures any request exceeding two seconds fails immediately rather than hanging. This is the correct knob for bounding request latency at the mesh layer.

Exam trap

ICA often tests the confusion between fault-injection fields (delay, abort) and resilience fields (timeout, retries), since both appear in VirtualService HTTP route specs.

How to eliminate wrong answers

Option A is wrong because delay injects a fixed latency into a percentage of requests for fault-injection testing — it adds time, it does not cap it. Option B is wrong because maxConnections is a DestinationRule connection-pool setting that limits concurrent TCP connections to an upstream, not request duration. Option C is wrong because maxRetries controls how many times Envoy retries a failed request, which can actually extend total latency rather than fail fast.

78
MCQmedium

What is the default behavior when no VirtualService is defined for a service?

A.Round-robin routing
B.Traffic is dropped
C.503 error
D.Traffic is blocked
AnswerA

Without a VirtualService, Istio's sidecar proxies fall back to Envoy's native load-balancing across all endpoints discovered for the service, defaulting to round-robin distribution. No layer-7 traffic rules are applied, so routing remains at layer 4 with equal weighting per healthy endpoint, satisfying the scenario's absence of any defined VirtualService.

Why this answer

In Istio, when a Kubernetes Service has no VirtualService attached, the sidecar proxies fall back to Envoy's default load-balancing behavior, which is round-robin across the healthy endpoints discovered via the service registry (Pilot/xDS). No routing rules means no traffic manipulation — the request simply flows to the next endpoint in rotation. This is the baseline behavior before any Istio traffic management is layered on.

Exam trap

ICA often tests the misconception that Istio intercepts and blocks traffic by default — candidates confuse 'no VirtualService' with 'no routing,' when in reality Envoy applies its native round-robin default.

How to eliminate wrong answers

Option B is wrong because traffic is never dropped by default — Istio's data plane only drops traffic when an explicit fault injection, authorization denial, or misconfigured route is applied. Option C is wrong because a 503 is returned only when there are no healthy upstream endpoints or when a route explicitly returns an error (e.g., fault.abort with HTTP 503), not as a default. Option D is wrong because blocking traffic requires an explicit AuthorizationPolicy or PeerAuthentication STRICT mode misconfiguration, not the absence of a VirtualService.

79
MCQeasy

You need to route 10% of traffic to a new version of your service. Which object do you configure?

A.VirtualService
B.DestinationRule
C.ServiceEntry
AnswerA

Istio splits traffic through VirtualService routing rules, where weighted destinations distribute percentages across subsets. Configuring a 90/10 weight split in the VirtualService's HTTP route satisfies the requirement to send 10% of traffic to the new version.

Why this answer

VirtualService allows weight-based routing to different subsets.

80
MCQeasy

A developer needs to expose an internal service to external clients through the Istio ingress gateway on port 443 using TLS termination at the gateway. The service listens on port 80 inside the mesh. Which pairing of resources is required?

A.A Gateway with servers.port 80 and a VirtualService that adds a tls block with mode SIMPLE and the certificate secret.
B.A VirtualService with tls.match.sniHosts on port 443 and a ServiceEntry that maps the external host to the internal service.
C.A Gateway with servers.port 443 and tls.mode PASSTHROUGH, plus a DestinationRule that terminates TLS for the service.
D.A Gateway with servers.port 443 and tls.mode SIMPLE referencing a secret, plus a VirtualService bound to that Gateway routing to the service on port 80.
AnswerD

The Gateway defines the ingress listener on port 443 with TLS termination via tls.mode SIMPLE and a referenced certificate secret, while the VirtualService binds to that Gateway using the gateways field and routes to the internal service on port 80. This is the standard ingress pattern for terminating TLS at the gateway. Both resources are required and must reference each other correctly.

Why this answer

External HTTPS exposure with termination at the ingress gateway requires a Gateway listener on port 443 whose tls block uses SIMPLE mode with a certificate secret, paired with a VirtualService that binds to that Gateway and routes to the internal service port. The Gateway opens and secures the listener, and the VirtualService supplies the routing rules. Neither resource alone completes the configuration, and TLS termination settings must live on the Gateway.

Exam trap

The trap here is placing TLS termination settings on the VirtualService, when certificate and TLS mode configuration belongs on the Gateway listener.

81
MCQmedium

You are observing 503 errors. You want to automatically retry failed requests. Where is this configured?

A.ServiceEntry
B.VirtualService
C.DestinationRule
AnswerB

Retry policies are configured in the VirtualService's HTTP route, where the retries block specifies attempts, perTryTimeout and retryOn conditions. This satisfies automatic retrying of failed requests, including 503 responses, before returning an error to the caller.

Why this answer

Retry behavior for failed requests in Istio is configured in the VirtualService under the HTTP route's retries field. You specify attempts, perTryTimeout, retryOn conditions (e.g., 5xx, gateway-error, connect-failure), and retryRemoteLocalities. This is the correct location because VirtualService controls request routing and resilience policies at the route level.

Exam trap

ICA often tests whether candidates confuse DestinationRule (passive health checks, load balancing, circuit breaking) with VirtualService (routing, retries, timeouts, fault injection), so the trap is picking DestinationRule for retry configuration.

How to eliminate wrong answers

Option A is wrong because ServiceEntry is used to register external services into Istio's service registry so they can be routed to — it does not define retry policies. Option C is wrong because DestinationRule defines traffic policies like load balancing, connection pool settings, and outlier detection (passive health checking), but retries are an active request-level policy handled by VirtualService. Option D is wrong because Gateway configures ingress/egress listeners (ports, hosts, TLS) at the mesh edge and has no retry configuration.

82
MCQhard

You need to enforce a 5-second timeout on all calls to a specific service. Where is this configured?

B.VirtualService
C.DestinationRule
D.ServiceEntry
AnswerB

VirtualService HTTP route rules carry a timeout field that caps the total duration of a request to the destination, so setting it to 5s enforces the limit. DestinationRule governs connection pooling and outlier detection, not request timeouts.

Why this answer

Timeouts are a property of the route in a VirtualService.

83
MCQmedium

Which field in the DestinationRule allows defining different versions of a service?

A.hosts
B.trafficPolicy
C.subsets
D.loadBalancer
AnswerC

The subsets field in a DestinationRule groups endpoints by label, typically the version label, enabling traffic policies and routing to target distinct service versions. It satisfies the versioning requirement because VirtualService routing rules reference these named subsets to split traffic.

Why this answer

The subsets block in DestinationRule allows grouping pods by label to create versions.

84
MCQeasy

What is the purpose of 'istioctl analyze'?

A.Scale deployments
B.Check proxy version
C.Visualize traffic
D.Identify configuration issues
AnswerD

`istioctl analyze` performs static analysis of Istio configuration, checking YAML resources and live cluster state against known validation rules. It surfaces misconfigurations such as conflicting virtual services, missing gateways, or invalid selectors before they cause runtime failures, satisfying the need to identify configuration issues proactively rather than debugging symptoms after deployment.

Why this answer

To identify configuration issues across the mesh.

85
MCQeasy

What is the default Istio load balancing algorithm?

A.ROUND_ROBIN
B.RANDOM
C.PASSTHROUGH
D.LEAST_CONN
AnswerA

ROUND_ROBIN is Istio's default load balancing algorithm, distributing requests sequentially across healthy endpoints in each locality. This satisfies the stem's constraint of identifying the out-of-the-box behaviour, requiring no DestinationRule traffic policy override. Other algorithms such as LEAST_REQUEST, RANDOM and PASSTHROUGH demand explicit configuration.

Why this answer

ROUND_ROBIN is the default load balancing strategy in Istio.

86
Multi-Selecthard

Which items can be configured under DestinationRule trafficPolicy? (Choose THREE)

Select 3 answers
A.connectionPool
B.rewrite
C.headers
D.outlierDetection
E.loadBalancer
AnswersA, D, E

connectionPool sits within DestinationRule trafficPolicy and defines TCP or HTTP connection limits to an upstream service, including maxConnections, http1MaxPendingRequests and http2MaxRequests. It satisfies the question by being one of the traffic policy fields governing how connections are managed.

Why this answer

In Istio, a DestinationRule's trafficPolicy block governs how traffic is handled after routing has selected a destination, and it explicitly supports connectionPool (A), which sets TCP/HTTP connection limits such as maxConnections, http1MaxPendingRequests, and http2MaxRequests for the destination's sidecar connections. It also supports outlierDetection (D), which implements passive health checking by ejecting unhealthy hosts from the load-balancing pool based on consecutive 5xx errors or gateway failures. loadBalancer (E) is likewise a valid trafficPolicy field, configuring the algorithm (ROUND_ROBIN, LEAST_REQUEST, RANDOM, PASSTHROUGH) and consistent-hash options for distributing requests across the destination's endpoints. By contrast, rewrite (B) and headers (C) are HTTP route-level manipulations that belong to a VirtualService's route rules, not to DestinationRule trafficPolicy, so they are not configurable there.

87
Multi-Selectmedium

Which TWO mechanisms are used to secure traffic within the mesh?

Select 2 answers
B.PeerAuthentication
C.VirtualService
D.ServiceEntry
E.AuthorizationPolicy
AnswersB, E

PeerAuthentication enforces mutual TLS between sidecars, encrypting all service-to-service traffic inside the mesh. This directly satisfies the stem's requirement for securing intra-mesh traffic, since Istio's data plane authenticates both ends of every connection using workload identities issued by the mesh's certificate authority.

Why this answer

In Istio, PeerAuthentication is the correct mechanism for securing traffic within the mesh because it defines the mutual TLS (mTLS) mode (STRICT, PERMISSIVE, DISABLE) that governs how workloads authenticate each other's identities at the transport level. AuthorizationPolicy is also correct because it enforces access control on in-mesh traffic, deciding which identities (derived from mTLS) may perform which operations on which workloads. Together, PeerAuthentication establishes the cryptographic identity and encryption for service-to-service communication, while AuthorizationPolicy uses that identity to allow or deny requests inside the mesh.

Gateway is not correct here because it manages ingress/egress traffic at the mesh edge, not intra-mesh security. VirtualService is not correct because it handles routing rules such as traffic splitting and retries, not security. ServiceEntry is not correct because it registers external services into the mesh registry, which is a service-discovery concern rather than a security mechanism.

88
MCQeasy

Which tool provides a GUI for visualizing your traffic management rules?

A.Prometheus
B.Grafana
C.Kiali
D.istioctl
AnswerC

Kiali is the Istio console that renders the service mesh topology and traffic-management rules graphically, satisfying the stem's GUI visualisation requirement. It reads Istio configuration directly, showing virtual services, destination rules and their routing relationships.

Why this answer

Kiali is the standard visualization tool for Istio.

89
MCQmedium

What does the 'mirror' feature in a VirtualService do?

A.Sends a copy of live traffic to a test service
B.Splits traffic 50/50
C.Encrypts traffic
D.Retries failed requests
AnswerA

Mirroring duplicates each live request and dispatches the copy to a shadow destination alongside the primary service. The primary response still returns to the caller, so the test service receives realistic production traffic without affecting users, enabling safe validation before promotion.

Why this answer

Mirroring sends a copy of traffic to a different service without affecting the primary response.

90
MCQmedium

Which field in the VirtualService allows you to redirect traffic to a different URI?

A.delegate
B.redirect
C.mirror
D.rewrite
AnswerB

The redirect field in the VirtualService rewrites the request's URI and authority, sending traffic to a different destination than the original request. It satisfies the requirement to redirect traffic to a different URI without altering the client.

Why this answer

In Istio's VirtualService resource, the redirect field is specifically designed to issue an HTTP 301/302 redirect to a different URI or authority, replacing the original request target. It is mutually exclusive with route and rewrite, and is evaluated at the virtual host level before any route matching occurs. This makes redirect the correct field when the goal is to send clients to a new URI rather than transparently rewriting the path.

Exam trap

The trap here is confusing redirect with rewrite — both alter the URI, but rewrite forwards the request to the backend with a modified path, while redirect returns a 3xx response telling the client to make a new request. Candidates often pick rewrite because it 'changes the URI'.

How to eliminate wrong answers

Option A is wrong because delegate is used to delegate route processing to another VirtualService within the same namespace, not to redirect traffic to a different URI. Option C is wrong because mirror copies live traffic to a shadow destination for testing (traffic shadowing) while still serving the original request, not redirecting it. Option D is wrong because rewrite modifies the URI path or host header in-flight while forwarding the request to the same destination, rather than issuing a redirect response to the client.

91
Multi-Selectmedium

Which TWO fields are mandatory in a Gateway resource?

Select 2 answers
A.subsets
B.tls
C.selector
D.hosts
E.servers
AnswersC, E

The selector field is mandatory because it defines which pods the Gateway's configuration applies to, using label matching. Without it, the Gateway resource cannot bind to any workload, so Istio rejects the manifest during validation.

Why this answer

In an Istio Gateway resource, the servers field (E) is mandatory because it defines the ports, protocols, hosts, and TLS settings that the gateway listens on—without at least one server entry the gateway has nothing to configure. The selector field (C) is also mandatory since it binds the Gateway to the specific Envoy proxy pods (via labels such as istio: ingressgateway) that should implement the configuration. The subsets field (A) belongs to a DestinationRule's traffic policy, not to a Gateway, so it is not required here.

The tls field (B) is optional and only needed when a server terminates or originates TLS. The hosts field (D) is configured inside each server entry, not as a top-level mandatory Gateway field.

Exam trap

ICA often tests the confusion between Gateway's required top-level fields (selector, servers) and nested optional fields (tls, hosts) that candidates mistakenly treat as mandatory.

92
MCQmedium

If a VirtualService has a route to a service that has no pods matching the label, what happens?

A.503 Service Unavailable
B.Traffic is routed to the default
C.Traffic is dropped
D.Traffic is routed to external
AnswerA

A route to a service with no matching pods yields a 503 Service Unavailable, because Istio's Envoy sidecars have no healthy upstream endpoints to load-balance to. The VirtualService route resolves, but the destination host's endpoint list is empty, so requests fail at the data plane rather than returning 404.

Why this answer

In Istio, a VirtualService route points to a Kubernetes Service by name. If that Service has no endpoints because no pods match its label selector, Envoy has no healthy upstream cluster members to route to. Istio's default behavior in this case is to return HTTP 503 Service Unavailable (with the 'no healthy upstream' response flag), rather than silently dropping or rerouting traffic.

Exam trap

The trap is assuming Istio has a built-in fallback or default route; in reality, an empty endpoint set yields an explicit 503, and candidates who pick 'dropped' or 'default' misunderstand Istio's fail-fast routing behavior.

How to eliminate wrong answers

Option B is wrong because Istio does not have an implicit 'default' route that catches traffic when a destination has no endpoints; routing is explicit in the VirtualService, and an empty endpoint set produces a 503, not a fallback. Option C is wrong because traffic is not silently dropped — Envoy actively responds with a 503 status, which is observable in telemetry and logs. Option D is wrong because Istio does not automatically route to external services; egress to external hosts requires an explicit ServiceEntry and route configuration.

93
MCQeasy

Which command is used to view the effective configuration of a specific Envoy proxy?

A.istioctl dashboard
B.istioctl proxy-config
C.kubectl get virtualservice
D.kubectl describe
AnswerB

`istioctl proxy-config` queries a specific Envoy's live xDS state, dumping listeners, clusters, routes and endpoints as actually applied. This satisfies the stem's requirement for the effective configuration of one named proxy, rather than the mesh-wide desired state that `istioctl analyze` or the IstioOperator spec would show.

Why this answer

istioctl proxy-config is the standard tool for inspecting sidecar config.

← PreviousPage 2 of 2 · 93 questions total

Ready to test yourself?

Try a timed practice session using only Traffic Management questions.