QuizzesSpring Cloud Gateway — Concept Check
intermediate
microservices

Spring Cloud Gateway — Concept Check

Questions on Spring Cloud Gateway. Spring Cloud Gateway is a reactive API gateway built on Project Reactor; predicates match routes and filters (add headers, retry, rate-limit) process requests and responses.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Spring Cloud Gateway — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A microservice architecture uses Spring Cloud Gateway. A request to '/api/orders/123' is forwarded to the 'order-service'. What path does the order-service receive?

    • A/orders/123
    • B/api/123
    • C/api/orders/123
    • D/123
  2. 2.A developer configures a route with 'RewritePath=/api/auth/(?<segment>.*), /${segment}'. What is the new path for '/api/auth/login'?

    • A/auth/login
    • B/login
    • C/api/auth/login
    • D/api/login
  3. 3.A route in Spring Cloud Gateway uses the 'RequestRateLimiter' filter. What happens if a user exceeds the burst capacity?

    • ARequests are queued
    • BRequests are denied with a 429 error
    • CRequests are allowed
    • DRequests are throttled
  4. 4.A request to '/api/payments/charge' fails due to service unavailability. What happens next if the 'Retry' filter is configured?

    • AThe request is retried
    • BThe request is forwarded to a fallback
    • CThe request is dropped
    • DThe request is logged and ignored
  5. 5.A Spring Cloud Gateway route uses a 'CircuitBreaker' filter with a fallback URI. What occurs when the circuit is open?

    • ARequests are retried
    • BRequests are forwarded to the fallback URI
    • CRequests are logged
    • DRequests are dropped
  6. 6.A route uses the 'TokenRelay' filter. What does this filter do?

    • AValidates JWT tokens
    • BAdds a Bearer token to requests
    • CStrips the Authorization header
    • DForwards the Bearer token to upstream services
  7. 7.A developer configures a 'GlobalFilter' for JWT validation. What happens if a request lacks a valid token?

    • AThe request is rejected with a 401 status
    • BThe request is retried
    • CThe request is forwarded without validation
    • DThe request is logged and ignored
  8. 8.What does the 'AddRequestHeader' filter do in Spring Cloud Gateway?

    • AInjects headers into requests
    • BLimits request size
    • CModifies the request path
    • DRemoves headers from requests