Eureka server interview questions

What you will learn here about Eureka

  • Eureka server interview questions

Eureka server interview questions

These are the most common asked interview questions.

1)Which of the following annotation enables netflix discovery client?

  1. @LoadBalanced
  2. @EnableDiscoveryClient
  3. @EnableEurekaServer
  4. @EnableEurekaClient

2)Eureka clients talk to Eureka Server in the same zone

  1. True
  2. False

3)What is the artifactid for the Eureka discovery client?

  1. hystrix-core
  2. spring-cloud-starter-netflix-eureka-server
  3. spring-cloud-starter-netflix-ribbion
  4. spring-cloud-starter-netflix-eureka-client

4)Eurekaserver works in both Standalone and Clustured modes.

  1. True
  2. False

5)What is the number of heartbeats expected from N instance/min?

  1. N*3
  2. N
  3. N*2
  4. N*4

6)What is the default port for Eureka server?

  1. 8671
  2. 8090
  3. 8081
  4. 8080

7)Which of the following is a netflix service discovery tool?

  1. etcd
  2. Eureka
  3. consul
  4. Apache Zookeeper

8)What is the value assigned to the property registerWithEureka in order for a service to act as Eureka server?

  1. True
  2. False

9)How many components does eureka have?

  1. 1
  2. 2
  3. 3
  4. 4

10)What is the primary feature of ribbion?

  1. Caching and Batching
  2. Load Balancing
  3. Fault Tolerance
  4. Service Discovery Integration

11)Which component specifies the mechanism we use to determine the servers availability in real-time?

  1. ServerList
  2. Rule
  3. PingUrl
  4. Ping

12)What is the bean name of Irule

  1. ribbonLoadBalancer
  2. ribbonClientConfig
  3. ribbonRule
  4. ribbonPing

13)Which component specifies the load balancing rule we use in application?

  1. ServerList
  2. Rule
  3. PingUrl
  4. Ping

14)What is the percentage of loss in the heartbeats for a eureka server to go into self-preservation mode?

  1. 0.25
  2. 0.35
  3. 0.2
  4. 0.15

15)Calling end-point “/service-registry” with GET returns the status of

  1. Registration
  2. ServiceDiscovery
  3. EurekaClient
  4. Service Registry

16)What is the artifactid for the Eureka server?

  1. hystrix-core
  2. spring-cloud-starter-netflix-eureka-client
  3. spring-cloud-starter-netflix-eureka-server
  4. spring-cloud-starter-netflix-ribbion

17)What load balancing strategy does ribbon follow?

  1. Zone Aware Round Robin LB
  2. Weighted Response Time LB
  3. Simple Round Robin LB
  4. All of the above

18)Ribbon client <clientName>.ribbon.NIWSServerListClassName should implement?

  1. ServerList
  2. ServerListFilter
  3. Irule
  4. IloadBalancer

19)What is the default Eureka lease renewal time?

  1. 30 sec
  2. 40 sec
  3. 35 sec
  4. 25 sec

20)The preoperty spring.cloud.discovery.client.health-indicator.enabled=false disables?

  1. composite HealthIndicator
  2. DiscoveryClientHealthIndicator
  3. Generic HealthIndicator
  4. InstanceIndicator

21)To create load balanced Resttemplate which annotation should be added to it?

  1. @LoadBalanced
  2. @EnableRibbon
  3. @RibbonClient
  4. @FeignClient

22)Netflix Ribbon is an Inter Process Communication(IPC) cloud library

  1. True
  2. False

23)When Eureka is used in conjuction with ribbon, it replaces Iping interface with?

  1. ServerListFilter
  2. NIWSDiscoveryPing
  3. DomainExtractingServerList
  4. DiscoveryEnabledNWSServerList

You may also like...