QuizzesAdvanced Service Discovery with Eureka in Spring Cloud
advanced
spring

Advanced Service Discovery with Eureka in Spring Cloud

An advanced quiz on implementing and optimizing service discovery using Eureka in Spring Cloud.

20 minutes 10 questions Pass at 70%
Time Limit
20 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

10 questions on Advanced Service Discovery with Eureka in Spring Cloud. Work through them here, then start the quiz to answer them and see your score.

  1. 1.In a Spring Cloud Eureka setup, what is the primary role of the Eureka server?

    • ATo handle HTTP requests directly
    • BTo store and manage service registry information
    • CTo act as a load balancer
    • DTo provide a caching mechanism for microservices
  2. 2.Which property is used to disable the Eureka client from registering itself with the Eureka server?

    • Aeureka.client.enabled=false
    • Beureka.client.disable-registration=true
    • Ceureka.client.fetch-registry=false
    • Deureka.client.register-with-eureka=false
  3. 3.What is the default port on which a Eureka server runs?

    • A8888
    • B8080
    • C9090
    • D8761
  4. 4.How does Eureka handle service instance failures by default?

    • AIt marks the instance as 'down' but keeps it in the registry indefinitely
    • BIt waits for a configurable number of failed heartbeats before removing the instance
    • CIt automatically restarts the failed instance
    • DIt immediately removes the instance from the registry
  5. 5.What mechanism does Eureka use to ensure high availability and resilience?

    • APeer-to-peer replication
    • BMaster-slave architecture
    • CRound-robin scheduling
    • DLoad balancing
  6. 6.Which annotation is used to enable a Spring Boot application as a Eureka client?

    • A@EnableEurekaServer
    • B@EnableServiceRegistry
    • C@EnableDiscoveryClient
    • D@EnableEurekaClient
  7. 7.What is the purpose of the 'eureka.instance.prefer-ip-address' property?

    • ATo use the IP address instead of the hostname for service registration
    • BTo configure IP address logging
    • CTo prioritize IP-based routing over DNS
    • DTo enable IP-based authentication
  8. 8.What is the significance of the 'eureka.client.fetch-registry' property?

    • AIt sets the frequency of registry fetch operations
    • BIt enables automatic registry updates
    • CIt configures the client to store registry data locally
    • DIt determines if the client should fetch the registry from the server
  9. 9.In a Eureka-based architecture, what happens when a service instance is deregistered?

    • AIt triggers an alert to the system administrator
    • BIt is gradually phased out based on a configurable timeout
    • CIt remains in the registry but marked as inactive
    • DIt is immediately removed from the registry
  10. 10.How can you ensure that a Eureka client application only registers with a specific Eureka server?

    • ABy setting 'eureka.client.server-preference' to the server's IP
    • BBy using a dedicated network interface
    • CBy configuring a firewall rule
    • DBy setting 'eureka.client.service-url.defaultZone' to the specific server's URL