Courseiva

CCNA Traffic Management Questions

38 of 113 questions · Page 2/2 · Traffic Management · Answers revealed

76
MCQmedium

Which field in the VirtualService allows you to redirect an incoming request to a different path?

A.rewrite
B.mirror
C.redirect
D.match
AnswerC

redirect sends a 301 response.

Why this answer

The 'redirect' field in the VirtualService route allows for URI or authority redirection.

77
MCQmedium

Which field in VirtualService is used for A/B testing?

A.redirect
B.weight
C.match
D.subset
AnswerB

weight defines traffic splits.

Why this answer

The weight field is used to split traffic between versions (subsets) for A/B testing.

78
MCQmedium

You want to enforce mTLS globally for all services in the cluster. Which resource should you apply?

A.ServiceEntry
B.PeerAuthentication
C.AuthorizationPolicy
D.DestinationRule
AnswerB

PeerAuthentication defines the mTLS mode for the mesh.

Why this answer

PeerAuthentication at the root namespace (istio-system) enforces global mTLS.

79
Multi-Selecthard

What information can you get from 'istioctl proxy-config'? (Choose THREE)

Select 3 answers
A.virtualservices
B.deployments
C.clusters
D.endpoints
E.routes
AnswersC, D, E

Valid command.

Why this answer

proxy-config allows viewing routes, endpoints, and clusters.

80
MCQeasy

What is the standard path to install istioctl?

A.apt-get
B.kubectl plugin
C.Binary download
D.npm install
AnswerC

Standard method.

Why this answer

Downloading the binary from the Istio release page is the standard method.

81
MCQmedium

What happens if you have two VirtualServices for the same host?

A.The last one wins
B.Both ignored
C.They are merged
D.Error thrown
AnswerC

Istio attempts to merge them.

Why this answer

Istio merges them if possible, or the behavior is undefined/conflicting depending on the match criteria.

82
MCQmedium

When configuring a retry policy for a VirtualService, which parameter defines the maximum time allowed for a single attempt?

A.perTryTimeout
B.timeout
C.maxRetries
D.retryOn
AnswerA

perTryTimeout is the timeout for each individual attempt.

Why this answer

The perTryTimeout field controls the duration for an individual attempt within a retry policy.

83
MCQeasy

You need to expose an application running in the mesh to traffic from outside the cluster. Which resource is required to define the entry point?

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

Gateway defines the entry point for traffic entering the mesh.

Why this answer

Gateway resources are used to configure load balancers operating at the edge of the mesh.

84
Multi-Selecthard

What are the types of resolution in a ServiceEntry? (Choose TWO)

Select 2 answers
A.DYNAMIC
B.NONE
C.STATIC
D.DNS
E.EXTERNAL
AnswersB, D

Valid type.

Why this answer

ServiceEntry supports DNS and NONE resolution types.

85
MCQeasy

Which component is responsible for enforcing traffic policies in the data plane?

A.Envoy proxy
B.Ingress Gateway
C.istiod
D.Kiali
AnswerA

Envoy is the data plane proxy.

Why this answer

The Envoy proxy (injected as a sidecar) handles all data plane traffic management.

86
MCQeasy

What is the primary purpose of the 'subset' field in a VirtualService destination?

A.To route to a specific version/label set
B.To specify a namespace
C.To handle failover
D.To limit traffic to one pod
AnswerA

Subsets map to specific labels.

Why this answer

It references the named subset defined in the corresponding DestinationRule.

87
MCQmedium

You want to route traffic to a specific version of a service based on a header. Where do you define the subset?

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

Subsets are defined within the DestinationRule.

Why this answer

Subsets are defined in the DestinationRule to map labels to specific versions.

88
MCQhard

You need to route traffic for an external service that uses TLS. How do you configure the ServiceEntry?

A.By using an EnvoyFilter
B.By creating a Gateway
C.By creating a ServiceEntry with resolution DNS
D.Using a VirtualService only
AnswerC

ServiceEntry with DNS resolution handles external TLS hosts.

Why this answer

The ServiceEntry must define resolution and location, and the destination port must specify the protocol.

89
MCQhard

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

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

DestinationRule defines outlierDetection for circuit breaking.

Why this answer

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

90
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

The timeout field sets the per-request deadline.

Why this answer

The timeout field in the HTTPRoute of a VirtualService dictates the deadline.

91
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

Default behavior.

Why this answer

Istio routes traffic to all available pods in the service in a round-robin fashion.

92
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
D.Gateway
AnswerA

VirtualService supports weighted routing rules.

Why this answer

VirtualService allows weight-based routing to different subsets.

93
MCQmedium

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

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

VirtualService contains the retries field.

Why this answer

Retries are configured within the HTTPRoute block of a VirtualService.

94
MCQhard

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

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

The 'timeout' field is defined in the HTTPRoute object.

Why this answer

Timeouts are a property of the route in a VirtualService.

95
MCQmedium

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

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

subsets defines traffic destinations by labels.

Why this answer

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

96
MCQeasy

What is the purpose of 'istioctl analyze'?

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

It scans for errors.

Why this answer

To identify configuration issues across the mesh.

97
Multi-Selecteasy

Which THREE of these are valid reasons to use a ServiceEntry?

Select 3 answers
A.Expose an external REST API
B.Manage Gateway ingress
C.Manage an external database
D.Redirect traffic to another host
E.Configure mTLS for internal services
AnswersA, C, D

Correct use case.

Why this answer

ServiceEntry is used to expose external APIs, add external databases, or redirect traffic to a different domain entirely.

98
MCQeasy

What is the default Istio load balancing algorithm?

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

ROUND_ROBIN is the default load balancing algorithm.

Why this answer

ROUND_ROBIN is the default load balancing strategy in Istio.

99
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

Valid field.

Why this answer

TrafficPolicy allows setting connectionPool, loadBalancer, and outlierDetection.

100
Multi-Selecthard

Which are valid connectionPool settings? (Choose THREE)

Select 3 answers
A.grpc
B.http2
C.http
D.tcp
E.udp
AnswersB, C, D

Valid field.

Why this answer

connectionPool allows settings for tcp, http, and http2.

101
Multi-Selectmedium

Which commands verify Istio configurations? (Choose TWO)

Select 2 answers
A.istioctl check-config
B.kubectl verify
C.kubectl status
D.istioctl analyze
E.istioctl proxy-config
AnswersD, E

Config verification.

Why this answer

istioctl analyze and istioctl proxy-config are used for verification.

102
Multi-Selectmedium

Which protocols can be defined in a Gateway server? (Choose THREE)

Select 3 answers
A.UDP
B.TCP
C.HTTP
D.FTP
E.HTTPS
AnswersB, C, E

Valid protocol.

Why this answer

Gateways support HTTP, HTTPS, and TCP.

103
MCQhard

You have multiple VirtualServices for the same host. How does Istio determine which one to use?

A.Istio merges them
B.Alphabetical order
C.The one in the default namespace
D.The latest one applied
AnswerA

Istio merges routes for the same host.

Why this answer

Istio merges them based on the configuration logic, but you should avoid duplicate rules to prevent unpredictable behavior.

104
MCQhard

You have a Gateway but traffic is blocked. Which resource most likely governs the connection permission?

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

AuthorizationPolicy defines who can access what.

Why this answer

AuthorizationPolicy handles the access control between services and gateways.

105
Multi-Selectmedium

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

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

Enables mTLS.

Why this answer

PeerAuthentication (for mTLS mode) and AuthorizationPolicy (for access control) are key.

106
Multi-Selectmedium

What are common reasons to use a ServiceEntry? (Choose THREE)

Select 3 answers
A.To enable mTLS for an external service
B.To configure ingress gateway ports
C.To add an external service to the mesh registry
D.To encrypt internal pod traffic
E.To manage routing for external traffic
AnswersA, C, E

Standard use case.

Why this answer

ServiceEntries allow adding external endpoints, enabling TLS for external services, and managing DNS-based resolution for external hosts.

107
MCQeasy

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

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

Visual dashboard.

Why this answer

Kiali is the standard visualization tool for Istio.

108
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 traffic for observation.

Why this answer

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

109
MCQmedium

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

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

Redirect sends a specific response code to the client.

Why this answer

The redirect field within the HTTPRoute allows URI or authority changes.

110
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

Selector binds the resource to a specific ingress controller.

Why this answer

A Gateway requires a selector to bind to ingress gateways and servers for port configuration.

111
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

503 is the standard error when destinations are missing.

Why this answer

If no pods exist, the proxy will return a 503 error because it has no destination endpoints.

112
MCQmedium

What is the benefit of defining a 'sidecar' resource in Istio?

A.Improve proxy performance/memory usage
B.Enable mTLS
C.Increase security
D.Manage routing
AnswerA

Sidecar limits the scope of service discovery.

Why this answer

It restricts the configuration pushed to Envoy to only what the service needs, reducing memory usage.

113
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

This command displays the Envoy proxy configuration.

Why this answer

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

← PreviousPage 2 of 2 · 113 questions total

Ready to test yourself?

Try a timed practice session using only Traffic Management questions.