Courseiva

CCNA Resilience And Fault Injection Questions

60 questions · Resilience And Fault Injection topic · All types, answers revealed

1
Multi-Selectmedium

Which THREE fields are found in the 'http' connectionPool configuration?

Select 3 answers
A.idleTimeout
B.maxRequestsPerConnection
C.maxConnections
D.http2MaxRequests
E.maxRetries
AnswersA, B, D

Limits connection idle time.

Why this answer

http2MaxRequests, maxRequestsPerConnection, and idleTimeout are valid fields.

2
MCQmedium

You want to limit the number of concurrent connections to the 'payment' service to 100. Where is this configuration set?

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

Connection pool settings are defined in the DestinationRule under trafficPolicy.

Why this answer

Connection pool settings are configured under trafficPolicy in the DestinationRule.

3
MCQmedium

What happens if a request times out in Istio?

A.The request is retried automatically.
B.The proxy returns a 408 Request Timeout.
C.The request is passed to another healthy host.
D.The proxy returns a 504 Gateway Timeout.
E.The connection is closed without an error.
AnswerD

This is the default standard error returned by Envoy when a timeout is reached.

Why this answer

If a request exceeds the timeout, the proxy terminates the request and returns a 504 Gateway Timeout.

4
Multi-Selecthard

Which TWO of the following are true about Istio Circuit Breakers?

Select 2 answers
A.They operate at the proxy level.
B.They require a central controller check.
C.They are configured via ServiceEntry.
D.They only trigger on 5xx errors.
E.They can be applied to specific subsets.
AnswersA, E

The sidecar enforces it.

Why this answer

Circuit breaking is implemented in the proxy and applies to individual load balancer pools.

5
Multi-Selecthard

Which TWO fields are required when configuring an 'abort' fault injection in a VirtualService?

Select 2 answers
A.httpStatus
B.maxDuration
C.grpcStatus
D.delay
E.percentage
AnswersA, E

Defines the error code to return.

Why this answer

Abort requires both the percentage and the specific status code to be returned.

6
Multi-Selectmedium

You want to configure your microservice to be more resilient. Which THREE of the following are valid fields within an 'outlierDetection' policy in a DestinationRule?

Select 3 answers
A.consecutive5xxErrors
B.interval
C.http2MaxRequests
D.baseEjectionTime
E.maxRequestsPerConnection
AnswersA, B, D

A valid field.

Why this answer

The outlierDetection object supports consecutive5xxErrors, interval, and baseEjectionTime.

7
MCQmedium

What is the default value for 'consecutive5xx' in OutlierDetection?

A.10
B.20
C.0
D.5
E.1
AnswerD

The standard default is 5.

Why this answer

The default value for consecutive5xx in Istio/Envoy is 5.

8
MCQeasy

You need to limit the number of concurrent connections to the 'orders' service. Which field in the DestinationRule do you configure?

A.trafficPolicy.connectionPool.tcp.maxConnections
B.trafficPolicy.connectionPool.http.maxRequests
C.trafficPolicy.circuitBreaker.maxConnections
D.trafficPolicy.outlierDetection.maxConnections
E.trafficPolicy.loadBalancer.maxConnections
AnswerA

This field specifically governs the maximum concurrent TCP connections.

Why this answer

The connectionPool settings within a DestinationRule allow you to control maxConnections for TCP or maxRequestsPerConnection for HTTP.

9
MCQhard

You want to configure a circuit breaker that only allows 100 concurrent requests to a service. Which field is correct?

A.trafficPolicy.outlierDetection.maxRequests
B.trafficPolicy.connectionPool.http.http2MaxRequests
C.trafficPolicy.circuitBreaker.maxRequests
D.trafficPolicy.connectionPool.tcp.maxConnections
E.trafficPolicy.connectionPool.http.maxRequests
AnswerE

This field caps the number of concurrent requests in the pool.

Why this answer

trafficPolicy.connectionPool.http.http1MaxPendingRequests or maxRequests (in versions) is used to control concurrency.

10
MCQmedium

Which field in the trafficPolicy of a DestinationRule controls the maximum number of pending requests in the connection pool?

A.maxRequests
B.pendingLimit
C.connectionLimit
D.maxPendingRequests
AnswerD

maxPendingRequests controls the limit of queued requests.

Why this answer

maxRequestsPerConnection is used for HTTP/1.1 and maxPendingRequests for total pending requests.

11
Multi-Selecteasy

Which TWO of the following are valid HTTP fault injection delay settings?

Select 2 answers
A.maxDelay
B.fixedDelay
C.randomDelay
D.percentage
E.minDelay
AnswersB, D

Defines the duration of the delay.

Why this answer

fixedDelay and percentage are the two required components.

12
Multi-Selecthard

Which THREE of the following are valid sub-fields of 'outlierDetection'?

Select 3 answers
A.maxEjectionPercent
B.consecutive5xx
C.retryOn
D.maxConnections
E.baseEjectionTime
.interval
AnswersA, E

Limits number of ejected pods.

Why this answer

interval, baseEjectionTime, and maxEjectionPercent are core fields of outlierDetection.

13
MCQmedium

You need to limit the number of concurrent connections to the 'order-service' to prevent cascading failures. Which Istio resource should you configure?

A.Sidecar
B.VirtualService
C.DestinationRule
D.EnvoyFilter
AnswerC

DestinationRule is the correct resource to define connectionPool settings.

Why this answer

The DestinationRule resource allows you to define traffic policies, including connection pool settings, which control concurrent connections and requests.

14
MCQeasy

How do you specify the percentage of traffic that should experience a fault?

A.Using a 'weight' field.
B.Using a 'percentage' object with a 'value' field.
C.Using a 'threshold' field.
D.Using the 'ratio' field.
E.Using a 'rate' field in the VirtualService.
AnswerB

This is the correct nested structure for defining the fault rate.

Why this answer

The 'percentage' field within the fault injection block uses a 'value' field (0-100).

15
MCQeasy

Which setting is used to limit the number of retries for a request?

A.retryLimit
B.maxRetries
C.retryCount
D.attempts
E.maxAttempts
AnswerD

The 'attempts' field defines the maximum number of retry tries.

Why this answer

The 'retries' policy in a VirtualService allows you to define the number of attempts.

16
Multi-Selecteasy

Which TWO are common causes for a service to be ejected by Outlier Detection?

Select 2 answers
A.Consecutive gateway failures.
B.Consecutive 5xx responses.
C.High disk usage on the pod.
D.Too many users logged in.
E.High CPU usage on the pod.
AnswersA, B

Primary network indicator.

Why this answer

Repeated 5xx errors and gateway failures are the two primary reasons.

17
MCQmedium

What is the consequence of having a timeout that is shorter than the average latency of the service?

A.Increased 504 Gateway Timeout errors.
B.Faster response times.
C.Increased throughput.
D.Automatic retries.
E.Better connection pooling.
AnswerA

The proxy will cut off slow but otherwise healthy requests, returning 504.

Why this answer

If the timeout is too short, requests will be terminated prematurely, causing valid requests to fail.

18
MCQhard

Which of the following describes the difference between Circuit Breaking and Outlier Detection?

A.Circuit Breaking is for ingress, Outlier Detection is for egress.
B.Circuit Breaking is proactive, Outlier Detection is reactive.
C.Outlier Detection is for connection pooling.
D.Circuit Breaking only works on TCP.
E.Circuit Breaking monitors request load, Outlier Detection monitors host health.
AnswerE

Correct distinction: CB manages concurrency/load, OD manages instance reliability.

Why this answer

Circuit Breaking is for request limits (concurrency), while Outlier Detection is for host health (ejection).

19
MCQeasy

Which of the following is a valid method for performing fault injection?

A.Using a ServiceEntry to redirect traffic.
B.Using a DestinationRule to drop connections.
C.Using a VirtualService to inject delays.
D.Using an EnvoyFilter to rewrite headers.
E.Using a Gateway to block traffic.
AnswerC

VirtualService allows the 'fault' block to inject delays or aborts.

Why this answer

Istio supports both delay and abort faults via VirtualService.

20
MCQhard

Which of the following is true regarding Outlier Detection in Istio?

A.It only works with TCP services.
B.It can be configured in a VirtualService.
C.It automatically ejects instances that return 5xx errors.
D.It is used to rate limit traffic.
E.It requires an external monitoring tool.
AnswerC

This is its primary function when configured.

Why this answer

Outlier Detection requires a destination rule and works by ejecting unhealthy instances based on their error rates.

21
MCQmedium

You want to ensure that a request to the 'search' service fails fast if it takes longer than 2 seconds. How is this configured?

A.In the EnvoyFilter, set 'timeout: 2s'.
B.In the Gateway, set 'timeout: 2s'.
C.In the VirtualService, set 'timeout: 2s' in the route rule.
D.In the DestinationRule, set 'timeout: 2s'.
E.In the ServiceEntry, set 'timeout: 2s'.
AnswerC

The timeout field in the route rule is the standard way to limit request time.

Why this answer

The timeout field in a VirtualService route rule controls the request duration limit.

22
MCQmedium

What is the recommended way to test fault injection in a production environment?

A.Using header-based matches in a VirtualService.
B.Injecting faults in the code.
C.Using a separate mesh for testing.
D.Enabling it for 1% of traffic using weight.
E.Applying it globally to all users.
AnswerA

This isolates the impact to test traffic, minimizing risk.

Why this answer

Using header-based matching allows you to target faults to specific test traffic without impacting all users.

23
MCQhard

You want to ensure that a pod is only ejected if it fails consistently. Which setting is most appropriate?

A.Decrease interval, decrease consecutive5xx.
B.Decrease interval, increase consecutive5xx.
C.Increase interval, increase consecutive5xx.
D.Disable outlierDetection and use only circuitBreaking.
E.Increase interval, decrease consecutive5xx.
AnswerC

Increasing both makes the detector less sensitive to transient spikes.

Why this answer

A combination of a longer interval and a higher consecutive error threshold ensures only sustained failures trigger ejection.

24
MCQmedium

To test how your application handles service unavailability, you want to return an HTTP 503 error for 20% of requests to the 'catalog' service. Which fault injection setting do you use?

A.circuitBreaker
B.outlierDetection
C.delay
D.abort
AnswerD

Abort is the correct mechanism for simulating service errors.

Why this answer

The abort fault injection allows specifying a status code and percentage.

25
MCQhard

When using 'maxRequests' in connectionPool, what happens when the threshold is reached?

A.Additional requests are rejected with a 503.
B.The client is disconnected.
C.The timeout is extended.
D.Requests are queued until capacity is available.
E.The service is automatically scaled.
AnswerA

When the connection pool is full, new requests are rejected immediately.

Why this answer

In Envoy, maxRequests is a circuit-breaking limit that rejects new requests with a 503 error when the limit is exceeded.

26
MCQeasy

What is the primary purpose of adding a timeout to a service call?

A.To hide errors from the user.
B.To prevent resource exhaustion from hanging requests.
C.To load balance more effectively.
D.To increase throughput.
E.To encrypt traffic.
AnswerB

By failing fast, you release resources and prevent cascading failure.

Why this answer

Timeouts prevent resources from being held indefinitely by slow or hung services.

27
Multi-Selecteasy

Which TWO conditions can trigger Outlier Detection ejection?

Select 2 answers
A.consecutive5xx
B.maxConnections
C.timeout
D.consecutiveGatewayFailure
E.latencyThreshold
.maxRequests
AnswersA, D

Standard error trigger.

Why this answer

Outlier detection uses both consecutive 5xx errors and consecutive gateway failures.

28
MCQmedium

You are testing resilience. You want to inject an HTTP 503 error for 20% of traffic to the 'catalog' service. Which fault setting is correct?

A.abort: { code: 503, percent: 20 }
B.abort: { status: 503, percentage: { value: 20 } }
C.fault: { abort: 503, rate: 0.2 }
D.abort: { status: 503, ratio: 0.2 }
E.error: { status: 503, percentage: 20 }
AnswerB

Correct structure for abort fault injection.

Why this answer

The fault injection abort policy requires an HTTP status code and a percentage.

29
MCQhard

A service is returning 5xx errors frequently. You want to eject instances that return 5 consecutive 5xx errors. Which OutlierDetection setting is required?

A.consecutive5xx: 5
B.interval: 5s
C.maxEjectionPercent: 5
D.consecutiveErrors: 5
E.baseEjectionTime: 5s
AnswerA

This accurately defines the threshold for consecutive 5xx responses before ejection.

Why this answer

consecutive5xx is the field used to trigger ejection based on the count of 5xx errors.

30
MCQmedium

Which field defines how long an ejected pod remains out of the rotation?

A.maxEjectionPercent
B.baseEjectionTime
C.interval
D.minHealthPercent
E.consecutive5xx
AnswerB

This field specifies the length of the ejection period.

Why this answer

baseEjectionTime determines the duration an instance is excluded from the load balancing pool.

32
Multi-Selectmedium

Which THREE items can you configure in a VirtualService to improve resilience?

Select 3 answers
A.Retries
B.Connection Pool
C.Timeouts
D.Outlier Detection
E.Fault Injection
AnswersA, C, E

Handles transient failures.

Why this answer

Timeouts, Retries, and Fault Injection are all controlled within a VirtualService.

33
Multi-Selecthard

Which THREE things happen when a request fails and a retry policy is active?

Select 3 answers
A.Ejects the host immediately.
B.Checks if the error code matches 'retryOn'.
C.Attempts the request again.
D.Waits for the specified backoff period.
E.Opens the circuit breaker.
AnswersB, C, D

Validates if the retry is allowed.

Why this answer

The sidecar checks the retry condition, waits for the backoff, and attempts the request again until the limit.

34
Multi-Selectmedium

Which THREE of the following are valid fields in a 'retry' policy?

Select 3 answers
A.perTryTimeout
B.retryOn
C.attempts
D.backoff
E.maxDuration
.maxRetries
AnswersA, B, C

Timeout for each retry.

Why this answer

attempts, perTryTimeout, and retryOn are common retry policy fields.

35
MCQeasy

An application is experiencing intermittent errors. You decide to use outlier detection to eject unhealthy pods. Which field in the DestinationRule controls the ejection of hosts after a certain number of 5xx errors?

A.baseEjectionTime
B.interval
C.consecutive5xxErrors
D.maxConnections
AnswerC

This is the correct field for triggering host ejection based on error counts.

Why this answer

The 'consecutive5xxErrors' field in the 'outlierDetection' section of a DestinationRule is used to eject unhealthy hosts.

36
MCQhard

What is the purpose of 'minHealthPercent' in the OutlierDetection configuration?

A.It sets the frequency of health checks.
B.It defines the threshold for the circuit breaker to trip.
C.It sets the minimum load for a host to be considered healthy.
D.It ensures at least this percentage of pods remain healthy.
E.It limits the number of hosts that can be ejected to keep the cluster healthy.
AnswerE

This prevents 'ejection storms' where too many pods are removed at once.

Why this answer

It prevents the ejection of hosts if it would cause the total cluster health to fall below a specific percentage.

37
MCQeasy

You need to ensure that a request to the 'orders' service times out if it takes longer than 2 seconds. Which field in the VirtualService should you configure?

A.deadline
B.timeout
C.maxRequestDuration
D.requestTimeout
AnswerB

The timeout field is the standard way to define request duration limits.

Why this answer

The timeout setting is defined within the route rule of a VirtualService.

38
MCQhard

You have a DestinationRule with outlier detection enabled. If a host returns 5 consecutive 5xx errors and the 'interval' is set to 1s, what happens if 'baseEjectionTime' is 30s?

A.It is ejected for 30 seconds
B.It is ejected for 1 second
C.It is removed permanently
D.It is ignored because the interval is too small
AnswerA

baseEjectionTime defines the duration of the ejection.

Why this answer

The host is ejected from the load balancing pool for 30 seconds.

39
MCQeasy

In a VirtualService, where is the fault injection policy defined?

A.Within the 'hosts' field.
B.Within the 'subset' definition.
C.Within the 'outlierDetection' block.
D.Within the 'trafficPolicy' block.
E.Within the 'http' route block.
AnswerE

This is where routing rules and their associated fault policies reside.

Why this answer

The fault field is defined inside the route action block of a VirtualService.

40
MCQhard

How do you define a circuit breaker that limits the number of pending requests?

A.maxRequestsInQueue
B.maxPending
C.pendingRequestsLimit
D.maxPendingRequests
E.http1MaxPendingRequests
AnswerE

This controls the queue size for HTTP requests.

Why this answer

The 'http1MaxPendingRequests' field is used to limit the number of pending requests in the connection pool.

41
MCQmedium

You want to simulate a 5-second network latency for 10% of requests to the 'cart' service. Which VirtualService configuration is correct?

A.fault: { delay: { percentage: { value: 10 }, fixedDelay: 5s } }
B.fault: { delay: { fixedDelay: 5s } }
C.fault: { delay: 5s, weight: 0.1 }
D.fault: { delay: { percentage: 10, latency: 5s } }
E.fault: { abort: { percentage: 10, duration: 5s } }
AnswerA

The correct structure for fault injection involves defining the delay duration and the percentage of requests.

Why this answer

The fault injection delay policy requires both a percentage and a fixedDelay duration.

42
MCQeasy

What is the default timeout for an HTTP request in Istio when no VirtualService is defined?

A.5 seconds
B.15 seconds
C.10 seconds
D.30 seconds
E.60 seconds
.0 (no timeout)
AnswerB

15 seconds is the standard default timeout value in the Envoy proxy configuration managed by Istio.

Why this answer

Istio defaults to 15 seconds for request timeouts if not explicitly configured.

43
Multi-Selectmedium

Which THREE settings are part of the 'outlierDetection' configuration in a DestinationRule?

Select 3 answers
A.interval
B.baseEjectionTime
C.requestRetryCount
D.maxConnectionTimeout
E.consecutive5xxErrors
AnswersA, B, E

Defines the duration of the analysis window.

Why this answer

The standard fields include consecutive5xxErrors, interval, and baseEjectionTime.

44
Multi-Selecthard

Which TWO parameters affect the 'aggressiveness' of Outlier Detection?

Select 2 answers
A.baseEjectionTime
B.minHealthPercent
C.interval
D.consecutive5xx
E.maxEjectionPercent
AnswersC, D

Shorter interval = faster checks.

Why this answer

A short interval and a low consecutive error threshold make the system more aggressive.

45
Multi-Selectmedium

Which THREE components are involved in configuring a robust resilience strategy?

Select 3 answers
A.ServiceEntry
B.DestinationRule
C.VirtualService
D.Retries
E.IngressGateway
AnswersB, C, D

Handles circuit breaking/outlier detection.

Why this answer

VirtualService, DestinationRule, and Retries/Timeouts (within VS) are key.

46
MCQhard

You want to configure outlier detection to eject hosts that return 5xx errors. Is it possible to monitor more than just 5xx codes?

A.Yes, using the 'consecutiveGatewayFailure' field.
B.Yes, but only via an EnvoyFilter.
C.No, you must use circuit breaking for other codes.
D.Yes, using the 'regex' field.
E.No, only 5xx is supported.
AnswerA

This allows targeting specific types of errors commonly associated with network/mesh issues.

Why this answer

Outlier detection supports consecutive Gateway errors (502, 503, 504) as well as 5xx codes.

47
Multi-Selecteasy

Which TWO of the following are valid fields within a DestinationRule's 'trafficPolicy'?

Select 2 answers
A.retryPolicy
B.virtualHosts
C.faultInjection
D.connectionPool
E.outlierDetection
AnswersD, E

Valid field for defining connection limits.

Why this answer

connectionPool and outlierDetection are primary components of the trafficPolicy.

48
MCQhard

You notice that a pod is being ejected by Outlier Detection despite only having occasional errors. How do you increase the interval between ejection scans?

A.Set outlierDetection.interval to a higher value.
B.Disable outlierDetection.
C.Set outlierDetection.baseEjectionTime to a higher value.
D.Set outlierDetection.maxEjectionPercent to a higher value.
E.Set outlierDetection.consecutive5xx to a higher value.
.Set connectionPool.tcp.maxConnections to a lower value.
AnswerA

Increasing the interval makes the detector scan less frequently, reducing the likelihood of premature ejection.

Why this answer

The interval field in OutlierDetection determines how often the health check is performed.

49
MCQeasy

Which field in a VirtualService can you use to retry a request?

A.attemptCount
B.retryPolicy
C.faultRetry
D.retries
E.repeat
AnswerD

This is the block for configuring retries.

Why this answer

The 'retries' field in the HTTP route block allows defining retry attempts and timeout per try.

50
MCQeasy

Which resource is used to configure circuit breaking for a service?

A.PeerAuthentication
C.VirtualService
D.DestinationRule
E.EnvoyFilter
AnswerD

DestinationRule contains the trafficPolicy block for circuit breaking.

Why this answer

DestinationRule is the resource where circuit breaking settings are defined within the trafficPolicy.

51
MCQmedium

What happens when a circuit breaker trips?

A.The service is deleted.
B.Traffic is no longer sent to the instance.
C.All traffic is redirected to a static page.
D.The entire mesh is shut down.
E.The pod is restarted.
AnswerB

The circuit breaker 'opens,' preventing further requests from reaching the unhealthy target.

Why this answer

The circuit breaker stops sending traffic to the unhealthy host, protecting the system from overload.

52
MCQmedium

Which component is responsible for the actual enforcement of circuit breaking and fault injection?

A.Kubernetes API Server
B.Istiod
C.Envoy proxy
D.Prometheus
E.Ingress Gateway
AnswerC

Envoy is the data plane proxy that enforces the rules defined in the CRDs.

Why this answer

The Envoy proxy (sidecar) performs the enforcement based on the configuration pushed by Istiod.

53
MCQeasy

Where do you define the connection pool settings for a service?

B.VirtualService
C.ServiceEntry
D.Sidecar
E.DestinationRule
AnswerE

DestinationRules define how traffic is handled once it reaches a destination, including connection pooling.

Why this answer

Connection pool settings are part of the trafficPolicy within a DestinationRule.

54
MCQhard

In OutlierDetection, what is the effect of setting 'maxEjectionPercent' to 0?

A.It makes the ejection time infinite.
B.It forces all hosts to be healthy.
C.It ejects hosts immediately.
D.It disables outlier detection.
E.It ejects all hosts.
AnswerD

If no hosts can be ejected, the feature cannot function.

Why this answer

Setting this to 0 effectively disables outlier detection, as no hosts can be ejected.

55
MCQmedium

When configuring circuit breaking, what does 'maxRequestsPerConnection' control?

A.The number of concurrent requests.
B.The number of requests per individual connection.
C.The total number of requests sent to a service.
D.The latency of each request.
E.The size of the request body.
AnswerB

This limits how many requests a single keep-alive connection processes before being closed.

Why this answer

It limits the number of requests that can be sent over a single keep-alive connection, useful to prevent connection starvation.

56
MCQeasy

Can you configure fault injection for specific traffic patterns, such as user headers?

A.No, fault injection is global for the service.
B.No, it must be applied via global EnvoyFilter.
C.Yes, by adding a 'match' criteria in the VirtualService.
D.Yes, but only via DestinationRule.
E.Yes, but only for egress traffic.
AnswerC

The 'match' field allows you to apply faults only to specific traffic (e.g., specific header values).

Why this answer

Yes, fault injection can be scoped to specific route matches in a VirtualService.

57
Multi-Selecthard

Which TWO options are required to properly implement an abort fault injection in a VirtualService?

Select 2 answers
A.headers
B.httpStatus
C.percentage
D.match
E.fixedDelay
AnswersB, C

Required to define the error to return.

Why this answer

To implement an abort, you must specify the 'percentage' and the 'httpStatus' code within the 'fault' block.

58
Multi-Selectmedium

Which TWO of the following are valid fault injection types in Istio?

Select 2 answers
A.retry
B.timeout
C.redirect
D.delay
E.abort
AnswersD, E

Injects a time delay into the request.

Why this answer

Istio natively supports abort (returning an error) and delay (simulating latency).

59
Multi-Selecthard

Which THREE settings are part of the 'connectionPool' configuration in a DestinationRule?

Select 3 answers
B.http2
C.grpc
D.tls
E.tcp
AnswersA, B, E

Contains connection settings for HTTP.

Why this answer

tcp, http, and http2 are the three protocol-specific pools within the connectionPool object.

60
MCQhard

To test the resilience of your microservice architecture, you want to introduce a 5-second delay to 50% of the requests directed to the 'catalog-service'. Where do you define this configuration?

A.DestinationRule
B.VirtualService
D.ServiceEntry
AnswerB

Fault injection is specifically supported within VirtualService routing rules.

Why this answer

Fault injection policies are defined within the 'http' routing rules of a VirtualService.

Ready to test yourself?

Try a timed practice session using only Resilience And Fault Injection questions.