QuizzesClient-Side Load Balancing — Concept Check
intermediate
microservices

Client-Side Load Balancing — Concept Check

Questions on Client-Side Load Balancing. Spring Cloud LoadBalancer selects a service instance from the registry using round-robin or custom strategies, allowing callers to balance traffic without a dedicated proxy.

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 Client-Side Load Balancing — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer uses Spring Cloud LoadBalancer with a RestTemplate to connect to 'order-service'. The service registry shows multiple instances. What happens when a request is made?

    • AThe request is sent to a randomly chosen instance.
    • BThe request is sent to a dedicated proxy server.
    • CThe request is sent to the first instance in the list.
    • DThe request is sent to all instances simultaneously.
  2. 2.Your team replaces Netflix Ribbon with Spring Cloud LoadBalancer in a Spring Boot 2.x application. What configuration change is necessary?

    • AAdd a new dependency for Ribbon.
    • BDisable Ribbon explicitly in application.yml.
    • CNo configuration change is necessary.
    • DEnable Ribbon in application.yml.
  3. 3.A service using Spring Cloud LoadBalancer with WebClient is experiencing uneven load distribution. What could be a potential cause?

    • AThe load balancer is not integrated with the service registry.
    • BThe default round-robin strategy is not suitable for the traffic pattern.
    • CThe service instances are not registered in Eureka.
    • DThe WebClient is not annotated with @LoadBalanced.
  4. 4.In a reactive application, how do you enable client-side load balancing with Spring Cloud LoadBalancer?

    • AManually select service instances.
    • BConfigure a separate load balancer instance.
    • CUse a dedicated proxy server.
    • DAnnotate WebClient.Builder with @LoadBalanced.
  5. 5.A developer implements a custom load balancer strategy using ReactorServiceInstanceLoadBalancer. What is a possible reason for doing this?

    • ATo bypass the service registry entirely.
    • BTo ensure only one instance is ever used.
    • CTo apply a specific algorithm like least-connections.
    • DTo avoid using any load balancing strategy.
  6. 6.What is the role of the @LoadBalanced annotation in Spring Cloud LoadBalancer?

    • AIt disables all load balancing strategies.
    • BIt enables client-side load balancing on RestTemplate or WebClient.
    • CIt configures a dedicated proxy server for load balancing.
    • DIt registers the service with Eureka or Consul.
  7. 7.A developer notices that requests are not being balanced across instances as expected. What might be a common misunderstanding causing this issue?

    • AThinking that @LoadBalanced is unnecessary for WebClient.
    • BBelieving that load balancing requires no configuration.
    • CAssuming the default strategy is always optimal.
    • DAssuming the service registry updates automatically.
  8. 8.In Spring Cloud LoadBalancer, what happens if the service registry returns an empty list of instances?

    • AThe request is retried indefinitely.
    • BThe request is sent to a proxy server.
    • CThe request fails with an error.
    • DThe request is sent to a default instance.