Courseiva

CCNA Traffic Management Questions

75 of 113 questions · Page 1/2 · Traffic Management · Answers revealed

1
MCQhard

Which resource configuration is necessary to allow a service to communicate with a database outside the mesh using TLS?

A.Only PeerAuthentication
B.Only Gateway
C.Only VirtualService
D.ServiceEntry and DestinationRule
AnswerD

Both are required to handle discovery and TLS policy.

Why this answer

A ServiceEntry is needed to register the database host, and a DestinationRule is needed to define TLS settings.

2
MCQhard

How do you handle SNI-based routing in a Gateway?

A.Gateway TLS section
B.VirtualService
C.DestinationRule
D.ServiceEntry
AnswerA

The TLS block manages SNI and protocol handling.

Why this answer

The TLS block in the Gateway server configuration handles SNI and certificate management.

3
MCQhard

You notice your traffic is not being routed correctly despite a VirtualService. Which step is most likely to resolve common issues?

A.Delete the Gateway
B.Increase the sidecar memory limit
C.Restart the ingress gateway
D.Ensure DestinationRule subsets match VirtualService destination labels
AnswerD

Mismatching subsets is the most common cause of routing failure.

Why this answer

Ensuring the DestinationRule exists with the correct subsets is mandatory for VirtualService routing.

4
Multi-Selectmedium

Which resources control mTLS settings? (Choose TWO)

Select 2 answers
A.Gateway
B.DestinationRule
C.PeerAuthentication
D.ServiceEntry
E.VirtualService
AnswersB, C

Client-side configuration.

Why this answer

PeerAuthentication and DestinationRule (for client-side) control mTLS.

5
MCQmedium

What is the purpose of the 'sidecar' resource in Istio?

A.To encrypt traffic
B.To limit the configuration sent to a proxy
C.To manage external services
D.To define load balancing
AnswerB

Sidecar limits service discovery scope.

Why this answer

Sidecar limits the visibility of services for a specific proxy, reducing memory consumption.

6
MCQhard

When using a ServiceEntry for a TCP service, what protocol should be specified?

A.HTTP
B.HTTPS
C.GRPC
D.TCP
AnswerD

TCP is the correct protocol for non-HTTP services.

Why this answer

The resolution must be set to DNS or STATIC, and the protocol must match the traffic type (TCP).

7
MCQhard

How do you configure a connection timeout for an external service?

A.EnvoyFilter
B.DestinationRule
C.VirtualService timeout
D.ServiceEntry
AnswerC

timeout defines request duration.

Why this answer

In the VirtualService, the timeout field defines the request timeout duration.

8
MCQeasy

What is the primary function of the 'istio-proxy' container in a pod?

A.Running the business logic
B.Intercepting network traffic
C.Managing Kubernetes API
D.Monitoring disk usage
AnswerB

The sidecar intercepts traffic.

Why this answer

It intercepts all network traffic to and from the application container.

9
MCQeasy

You want to test a new version of a service by sending a copy of live traffic to it. What feature should you use?

A.subsetting
B.fault injection
C.mirroring
D.canary
AnswerC

Mirroring sends a copy of the request.

Why this answer

Traffic mirroring allows sending a copy of traffic to a different service without affecting the main response.

10
MCQeasy

What is the default load balancing policy if none is specified in the DestinationRule?

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

Round robin is the default policy.

Why this answer

Istio defaults to ROUND_ROBIN if not specified.

11
Multi-Selecteasy

Which TWO components must be configured to allow external traffic to enter the mesh?

Select 2 answers
A.DestinationRule
B.VirtualService
C.Gateway
D.PeerAuthentication
E.Sidecar
AnswersB, C

Essential for routing.

Why this answer

A Gateway is required to listen for traffic, and a VirtualService is required to route it to the correct service.

12
MCQmedium

What is the purpose of the 'retryOn' field in a VirtualService?

A.To limit total attempts
B.To specify wait time
C.To specify conditions for retrying
D.To enable circuit breaking
AnswerC

retryOn lists the triggers.

Why this answer

It specifies the conditions (e.g., 5xx, gateway-error) that trigger a retry.

13
MCQeasy

You need to expose a service to traffic outside the mesh using Istio. Which resource is required to configure the entry point for incoming traffic?

A.ServiceEntry
B.VirtualService
C.DestinationRule
D.Gateway
AnswerD

Gateway manages the ingress or egress traffic.

Why this answer

The Gateway resource describes a load balancer operating at the edge of the mesh.

14
MCQeasy

What is the purpose of the 'istio-system' namespace?

A.Ingress only
B.App storage
C.Control plane
D.Proxy logs
AnswerC

Home of istiod.

Why this answer

It contains the Istio control plane components.

15
MCQeasy

Where do you configure the hostnames that a Gateway should accept?

A.DestinationRule
B.ServiceEntry
C.Gateway
D.VirtualService
AnswerC

Gateway configures the entry port and hosts.

Why this answer

The hosts field in the Gateway resource defines the allowed hostnames.

16
MCQeasy

Which command helps troubleshoot configuration issues by analyzing the cluster for errors?

A.istioctl analyze
B.istioctl debug
C.istioctl check
D.kubectl describe
AnswerA

istioctl analyze performs cluster diagnostic scans.

Why this answer

istioctl analyze scans for common misconfigurations in the cluster.

17
MCQhard

How do you force a connection pool to use HTTP/1.1 instead of HTTP/2?

A.VirtualService
B.DestinationRule
C.Gateway
D.ServiceEntry
AnswerB

ConnectionPool is in DestinationRule.

Why this answer

The http1MaxPendingRequests field in DestinationRule is used, but protocol selection is often automatic; for specific tuning, use connectionPool.

18
Multi-Selecthard

Which THREE features are supported by the Istio 'trafficPolicy' in a DestinationRule?

Select 3 answers
A.Connection pooling
B.Outlier detection
C.Traffic mirroring
D.Load balancing
E.Fault injection
AnswersA, B, D

Policy for connection limits.

Why this answer

Load balancing, connection pooling, and outlier detection are standard traffic policies.

19
MCQmedium

A team wants to perform a canary deployment by shifting 10% of traffic to a new version of their service. Which resource allows this weighting?

A.Sidecar
B.DestinationRule
C.Gateway
D.VirtualService
AnswerD

VirtualService supports traffic shifting via weighted routing.

Why this answer

VirtualService uses the weight field in the route block to distribute traffic percentages.

20
Multi-Selecthard

Which criteria can be used in a VirtualService 'match' block? (Choose THREE)

Select 3 answers
A.connectionPool
B.uri
C.headers
D.sourceLabels
E.weight
AnswersB, C, D

Valid match.

Why this answer

VirtualService matches support URI, HTTP headers, and source labels.

21
MCQmedium

To ensure traffic to a service is encrypted via mTLS, where should you verify the policy?

A.VirtualService
B.ServiceEntry
C.PeerAuthentication
D.Gateway
AnswerC

PeerAuthentication defines mTLS enforcement.

Why this answer

PeerAuthentication defines mTLS settings for the mesh.

22
Multi-Selectmedium

Which THREE configurations affect the way traffic is distributed across pods?

Select 3 answers
A.Load balancer policy
B.Traffic weight
C.Subset definitions
D.Gateway port
E.Retry policy
AnswersA, B, C

Defines distribution algorithm.

Why this answer

Subset definitions, loadBalancer policy, and VirtualService weights all influence distribution.

23
Multi-Selecthard

Which THREE are valid load balancing policies in Istio?

Select 3 answers
A.FAILOVER
B.RANDOM
C.LEAST_CONN
D.STICKY
E.ROUND_ROBIN
AnswersB, C, E

Valid policy.

Why this answer

ROUND_ROBIN, LEAST_CONN, and RANDOM are the built-in load balancing policies.

24
Multi-Selectmedium

Which actions can a VirtualService perform on a request? (Choose TWO)

Select 2 answers
A.route
B.scale
C.headers
D.filter
E.replicate
AnswersA, C

Valid action.

Why this answer

VirtualService can perform routing (to a specific destination) and header manipulation.

25
MCQeasy

Which command lists all virtual services in the current namespace?

A.kubectl get virtualservices
B.istioctl virtualservices
C.istioctl get vs
D.istioctl list virtualservice
AnswerA

This is the correct kubectl command.

Why this answer

kubectl get virtualservices is the standard command to list this CRD.

26
MCQmedium

You want to limit the number of concurrent connections to a service. Which field in the DestinationRule handles this?

A.connectionPool
B.outlierDetection
C.loadBalancer
D.portLevelSettings
AnswerA

connectionPool manages concurrent connections.

Why this answer

The connectionPool field in the trafficPolicy allows setting maxConnections for circuit breaking.

27
Multi-Selectmedium

Which TWO actions can a VirtualService perform on a request?

Select 2 answers
A.Throttle bandwidth
B.Define mTLS mode
C.Rewrite URI
D.Redirect request
E.Encrypt traffic
AnswersC, D

Supported.

Why this answer

VirtualServices can rewrite paths and redirect traffic.

28
MCQmedium

How do you define a circuit breaker that trips after 3 consecutive errors?

A.ServiceEntry
B.Gateway
C.VirtualService
D.DestinationRule
AnswerD

DestinationRule defines circuit breaking logic.

Why this answer

The outlierDetection field in DestinationRule uses consecutiveGatewayErrors.

29
MCQeasy

Which command is used to view the current Istio configuration resources in a namespace?

A.istioctl proxy-config
B.istioctl dashboard
C.istioctl analyze
D.kubectl get
AnswerD

kubectl get lists resources.

Why this answer

kubectl get is the standard tool to list Kubernetes resources, including Istio CRDs.

30
Multi-Selecthard

Which of the following are valid DestinationRule fields? (Choose THREE)

Select 3 answers
A.redirect
B.host
C.trafficPolicy
D.subsets
E.match
AnswersB, C, D

Valid field.

Why this answer

DestinationRule includes host, trafficPolicy, and subsets.

31
MCQhard

You want to perform a 'headers' modification on an incoming request. Which resource allows this?

A.DestinationRule
B.EnvoyFilter
C.Gateway
D.VirtualService
AnswerD

VirtualService has a headers field for mutations.

Why this answer

VirtualService allows header manipulation (add, remove, replace) in the route action.

32
MCQmedium

To strip a URL prefix before passing a request to a backend service, which field do you use?

A.prefix
B.rewrite
C.path
D.redirect
AnswerB

Rewrite modifies the path.

Why this answer

The rewrite field in a VirtualService can modify the URI path.

33
MCQmedium

When a request fails, where can you check the reason for the failure in the Istio ecosystem?

A.Kiali
B.DestinationRule status
C.istioctl analyze
D.Gateway logs
AnswerA

Kiali is the visualization and observability tool.

Why this answer

Kiali provides visual traffic flow analysis and error code identification.

34
Multi-Selecthard

Which are valid match conditions in VirtualService? (Choose THREE)

Select 3 answers
A.headers
B.timeout
C.uri
D.weight
E.port
AnswersA, C, E

Valid match.

Why this answer

Match conditions include headers, uri, and port.

35
Multi-Selectmedium

Which of these are valid load balancer algorithms in DestinationRule? (Choose TWO)

Select 2 answers
A.RANDOM_HASH
B.PRIORITY
C.FIRST_COME
D.ROUND_ROBIN
E.LEAST_CONN
AnswersD, E

Valid algorithm.

Why this answer

ROUND_ROBIN and LEAST_CONN are valid load balancer settings in Istio.

36
Multi-Selectmedium

Which TWO parameters are used to define a 'match' criteria in a VirtualService?

Select 2 answers
A.timeout
B.subset
C.retries
D.headers
E.authority
AnswersD, E

Valid match condition.

Why this answer

Headers and authority (or URI) are valid match conditions.

37
MCQhard

How do you implement a circuit breaker to eject a pod that returns 5xx errors?

A.DestinationRule outlierDetection
B.PeerAuthentication
C.VirtualService fault injection
D.VirtualService retry policy
AnswerA

OutlierDetection is the mechanism for ejecting unhealthy hosts.

Why this answer

OutlierDetection within the DestinationRule manages circuit breaking by ejecting unhealthy instances.

38
Multi-Selecthard

What are valid fields in the VirtualService 'http' route? (Choose TWO)

Select 2 answers
A.mTLS
B.podSelector
C.match
D.tls
E.route
AnswersC, E

Valid field.

Why this answer

VirtualService route blocks use 'route' and 'match'.

39
MCQmedium

You want to access an external API (e.g., api.google.com) from within your mesh. What must you configure?

A.DestinationRule
B.ServiceEntry
C.VirtualService
D.EnvoyFilter
AnswerB

ServiceEntry registers external hosts.

Why this answer

ServiceEntry allows adding entries to the Istio internal service registry for external endpoints.

40
MCQhard

You need to inspect the envoy config for a specific pod. Which command do you use?

A.istioctl get config
B.kubectl get proxy
C.istioctl proxy-config all
D.istioctl inspect
AnswerC

proxy-config all shows full proxy state.

Why this answer

istioctl proxy-config all <pod-name> shows all configuration for that proxy.

41
Multi-Selecteasy

Which THREE are types of traffic management patterns?

Select 3 answers
A.Canary deployment
B.Circuit breaking
C.Traffic mirroring
D.Namespace isolation
E.Database sharding
AnswersA, B, C

Supported pattern.

Why this answer

Canary deployments, traffic mirroring, and circuit breaking are all core Istio patterns.

42
Multi-Selectmedium

Which of the following are valid traffic management components in Istio? (Choose TWO)

Select 2 answers
A.ClusterRole
B.Deployment
C.VirtualService
D.ServiceAccount
E.DestinationRule
AnswersC, E

Valid component.

Why this answer

VirtualService and DestinationRule are the core traffic management resources.

43
MCQeasy

What protocol does the Gateway resource support?

A.Only HTTP
B.Only TCP
C.HTTP, HTTPS, GRPC, and TCP
D.Only TLS
AnswerC

Gateways are protocol-agnostic for the defined ports.

Why this answer

Gateways support HTTP, HTTPS, GRPC, and TCP protocols.

44
MCQeasy

Which resource is used to provide a unified entry point for multiple services?

A.ServiceEntry
B.Gateway
C.VirtualService
D.EnvoyFilter
AnswerB

Gateway is the standard ingress controller.

Why this answer

A Gateway resource, when combined with a VirtualService, provides a single ingress point.

45
MCQmedium

You need to ensure that traffic is only routed to healthy pods. What feature does this?

A.DestinationRule outlierDetection
B.ServiceEntry registry
C.PeerAuthentication
D.VirtualService weight
AnswerA

Outlier detection tracks and ejects unhealthy hosts.

Why this answer

Outlier detection in DestinationRule ejects unhealthy hosts from the load balancing pool.

46
MCQmedium

How do you specify a header-based match in a VirtualService?

A.In the 'subset' policy
B.In the 'destination' block
C.In the 'subset' definition
D.In the 'match' block
AnswerD

Match conditions are defined in the match block of the route.

Why this answer

The 'match' field allows conditions like 'headers' to be evaluated.

47
Multi-Selecthard

Which THREE settings are required in a VirtualService for a canary deployment?

Select 3 answers
A.tcp
B.http routes
C.tls
D.weight
E.hosts
AnswersB, D, E

Routes define the destination subsets.

Why this answer

Canary deployments require host definition, http/tcp route definitions, and weight assignments.

48
MCQmedium

What is the function of the 'weight' parameter in a VirtualService route?

A.To specify the TTL of a request
B.To split traffic between multiple destinations
C.To limit bandwidth usage
D.To set the priority of a rule
AnswerB

Weight defines the traffic distribution percentage.

Why this answer

Weight determines the percentage of traffic directed to a specific destination.

49
MCQhard

You want to limit the total number of concurrent connections to a service. Where is this defined?

A.DestinationRule
B.AuthorizationPolicy
C.Gateway
D.VirtualService
AnswerA

connectionPool handles connection limits.

Why this answer

connectionPool settings in the DestinationRule control connection limits.

50
Multi-Selectmedium

Which of these are valid sub-commands for istioctl? (Choose TWO)

Select 2 answers
A.restart
B.analyze
C.proxy-config
D.start
E.debug
AnswersB, C

Valid command.

Why this answer

istioctl analyze and istioctl proxy-config are valid commands.

51
MCQhard

How do you define a regex match in a VirtualService?

A.uri-regex
B.match-regex
C.regex field
D.pattern field
AnswerC

Standard field for regex.

Why this answer

The match block URI uses the 'regex' field for pattern matching.

52
Multi-Selecthard

Which parameters can be configured in a VirtualService retry policy? (Choose TWO)

Select 2 answers
A.maxConnections
B.attempts
C.connectionPool
D.outlierDetection
E.perTryTimeout
AnswersB, E

Valid parameter.

Why this answer

attempts and perTryTimeout are the primary fields for retry policies.

53
Multi-Selectmedium

What are the primary ways to limit traffic to a service? (Choose TWO)

Select 2 answers
A.VirtualService
B.Gateway
C.ServiceEntry
D.Sidecar
E.DestinationRule
AnswersA, E

Routing.

Why this answer

You can use VirtualService (for routing) and DestinationRule (for circuit breaking/load balancing).

54
Multi-Selectmedium

Which of the following are valid Gateway configurations? (Choose TWO)

Select 2 answers
A.servers
B.subsets
C.selector
D.retry
E.endpoints
AnswersA, C

Required for Gateway.

Why this answer

Gateways require a 'selector' to find the ingress pods and 'servers' to define listeners.

55
MCQmedium

Which load balancing policy would you choose to ensure requests from the same user always hit the same pod?

A.LEAST_CONN
B.consistentHash
C.ROUND_ROBIN
D.PASSTHROUGH
AnswerB

Consistent hashing provides session affinity.

Why this answer

Consistent hashing based on a header or cookie ensures session stickiness.

56
Multi-Selecteasy

Which TWO resources are essential for configuring traffic splitting between versions?

Select 2 answers
A.VirtualService
B.ServiceEntry
C.Sidecar
D.Gateway
E.DestinationRule
AnswersA, E

Defines routing.

Why this answer

A VirtualService is required to define the traffic weights, and a DestinationRule is required to define the subsets (versions).

57
Multi-Selectmedium

Which are valid uses for ServiceEntry? (Choose THREE)

Select 3 answers
A.Configure external TLS
B.Load balance ingress
C.Limit mesh size
D.Register external services
E.Define DNS resolution
AnswersA, D, E

Valid use.

Why this answer

ServiceEntry is used for external service registry, TLS for external hosts, and DNS resolution.

58
MCQhard

A VirtualService is not correctly routing traffic to a new version. Which tool helps verify the actual route configuration loaded in the proxy?

A.istioctl describe
B.istioctl analyze
C.kubectl logs
D.istioctl proxy-config routes
AnswerD

proxy-config routes shows the live routing configuration.

Why this answer

istioctl proxy-config routes displays the routing table as understood by the Envoy proxy.

59
MCQmedium

You want to inject a 5-second delay into requests for testing. Which resource allows this?

A.VirtualService
B.Sidecar
C.EnvoyFilter
D.DestinationRule
E.Gateway
AnswerA

VirtualService fault injection defines delays.

Why this answer

VirtualService allows fault injection configuration including delays.

60
Multi-Selecthard

Which THREE fields are found within the 'trafficPolicy' block of a DestinationRule?

Select 3 answers
A.loadBalancer
B.retries
C.connectionPool
D.mirroring
E.outlierDetection
AnswersA, C, E

Defines LB policy.

Why this answer

loadBalancer, connectionPool, and outlierDetection are the primary components of a trafficPolicy.

61
MCQeasy

Where do you define the hosts that a Gateway will listen on?

A.Gateway
B.ServiceEntry
C.DestinationRule
D.VirtualService
AnswerA

Gateway uses hosts for the listener configuration.

Why this answer

The hosts field inside the servers block of a Gateway resource defines the hostnames.

62
MCQeasy

To perform a canary deployment, you have two versions of a service. Which resource do you use to split traffic between them?

A.DestinationRule
B.Gateway
C.Sidecar
D.VirtualService
AnswerD

VirtualService handles the routing logic and traffic weights.

Why this answer

VirtualService supports weight-based routing to split traffic between subsets.

63
MCQmedium

A DestinationRule is configured with a 'v1' subset but traffic is failing. Where should you check for the label match?

A.EnvoyFilter
B.VirtualService
C.DestinationRule spec
D.Gateway spec
AnswerC

The subset labels must match the pod labels in the DR spec.

Why this answer

DestinationRule uses 'subsets' that map to 'labels' on Kubernetes pods.

64
MCQmedium

Which type of routing allows you to route to different services based on URL path?

A.DestinationRule
B.Gateway
C.VirtualService
D.ServiceEntry
AnswerC

VirtualService enables path-based routing.

Why this answer

VirtualService 'match' can use 'uri' with 'prefix' or 'exact' matches to route to different services.

65
MCQmedium

Which resource type is used for mTLS policy?

A.PeerAuthentication
B.VirtualService
C.DestinationRule
D.Gateway
AnswerA

Enforces mTLS.

Why this answer

PeerAuthentication is the specific CRD for mTLS.

66
MCQhard

How do you specify a custom header match in a VirtualService?

A.Using a DestinationRule
B.Using a ServiceEntry
C.Using a Gateway
D.Using the match field in a VirtualService
AnswerD

match allows defining criteria like headers to select routes.

Why this answer

The match block within a VirtualService route supports header matching using the headers key.

67
MCQhard

You want to inject a fault to test application resilience. Which field in the VirtualService supports this?

A.weight
B.fault
C.retry
D.mirror
AnswerB

fault allows injecting aborts or delays.

Why this answer

The fault field in the route block allows for abort or delay injection.

68
MCQhard

You need to route traffic to a service based on the 'x-user-type' header. How is this defined?

A.ServiceEntry
B.DestinationRule subset
C.Gateway host
D.VirtualService match
AnswerD

match block handles header routing.

Why this answer

The match field in a VirtualService can include a 'headers' condition with exact or regex matching.

69
MCQhard

You have an external dependency that is not in the Kubernetes registry. How do you allow the mesh services to communicate with it?

A.Create a VirtualService
B.Create a ServiceEntry
C.Create an EnvoyFilter
D.Create a DestinationRule
AnswerB

ServiceEntry allows manual registration of services outside the mesh.

Why this answer

ServiceEntry is required to include external endpoints in the Istio service registry.

70
MCQeasy

What is the command to view the status of all pods including proxies?

A.kubectl get pods
B.istioctl pods
C.istioctl status
D.kubectl describe proxy
AnswerA

This lists pods and their readiness.

Why this answer

kubectl get pods shows the status of containers, including the istio-proxy sidecar.

71
MCQhard

You need to define a local service that is not in the cluster. How?

A.DestinationRule
B.VirtualService
C.Gateway
D.ServiceEntry
AnswerD

ServiceEntry registers services.

Why this answer

ServiceEntry with location: MESH_INTERNAL allows defining services that are technically outside the K8s registry but internal to the mesh.

72
MCQhard

How do you configure an Istio Gateway to handle HTTPS?

A.DestinationRule
B.VirtualService
C.Gateway
D.ServiceEntry
AnswerC

Gateway handles TLS termination.

Why this answer

A Gateway requires a 'servers' block with 'tls' settings and a reference to a Kubernetes secret.

73
MCQmedium

You need to restrict traffic to a specific subset of a service defined in a DestinationRule. What should you use in your VirtualService destination block?

A.host
B.subset
C.weight
D.port
AnswerB

subset maps to the named subset in DestinationRule.

Why this answer

The subset field in the destination object refers to the named subset in the DestinationRule.

74
Multi-Selecthard

Which TWO settings are configured within the 'outlierDetection' block?

Select 2 answers
A.interval
B.maxRetries
C.timeout
D.weight
E.consecutive5xxErrors
AnswersA, E

Time between checks.

Why this answer

consecutive5xxErrors and interval determine how a host is ejected from the load balancing pool.

75
MCQmedium

If you want to perform traffic shadowing, which field do you use?

A.redirect
B.weight
C.fault
D.mirror
AnswerD

mirror is for shadowing.

Why this answer

The mirror field in a VirtualService enables traffic shadowing.

Page 1 of 2 · 113 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Traffic Management questions.