Eureka Interview Question-Answer

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

       A. 0.25

       B. 0.2

       C. 0.35

       D. 0.15

Ans : 0.15

Q.2 What is the artifactid for the Eureka discovery client?

       A. hystrix-core

       B. spring-cloud-starter-netflix-ribbon

       C. Spring-cloud-starter-netflix-eureka-server

       D. spring-cloud-starter-netflix-eureka-client

Ans : spring-cloud-starter-netflix-eureka-client

Q.3 By default eureka client starts in which status?


       B. DOWN

       C. UP

       D. STARTING

Ans : UP

Q.4 Which annotation is used to make application act as Eureka Server?

       A. @EnableEurekaServer

       B. @LoadBalanced

       C. @EnableEurekaClient

       D. @EnableDiscoveryClient

Ans : @EnableEurekaServer

Q.5 What is the default port for Eureka server?

       A. 8671

       B. 8081

       C. 8080

       D. 8090

Ans : 8671

Q.6 Which of the following annotation enables netflix discovery client?

       A. @LoadBalanced

       B. @EnableEurekaClient

       C. @EnableEurekaServer

       D. @EnableDiscoveryClient

Ans : @EnableEurekaClient

Q.7 Eureka is a client side service discovery.

       A. True

       B. False

Ans : True

Q.8 What is the value assigned to the property registerWithEureka in order for a sevice to act as Eureka server?

       A. True

       B. False

Ans : False

Q.9 What is the default Eureka lease renewal time?

       A. 40 sec

       B. 25 sec

       C. 30 sec

       D. 35 sec

Ans : 30 sec

Q.10 Which of the following is a netflix service discovery tool?

       A. Eureka

       B. etcd

       C. consul

       D. Apache Zookeeper

Ans : Eureka

Q.11 What is the number of heartbeats expected from N instances/min?

       A. N*3

       B. N*2

       C. N*4

       D. N

Ans : N*2

Q.12 How many components does eureka have?

       A. 1

       B. 2

       C. 3

       D. 4

Ans : 2

Q.13 What is the artifactid for the Eureka server?

       A. spring-cloud-starter-netflix-eureka-client

       B. spring-cloud-starter-netflix-ribbon

       C. Spring-cloud-starter-netflix-eureka-server

       D. hystrix-core

Ans : Spring-cloud-starter-netflix-eureka-server

Q.14 Eureka clients talk to Eureka Server in the same zone.

       A. True

       B. False

Ans : True

Q.15 What load balancing strategy does ribbon follow?

       A. Zone Aware Round Robin LB

       B. Weighted Response Time LB

       C. Simple Round Robin LB

       D. All of the options

Ans : All of the options

Q.16 RibbonServerList is bean name of which bean type?

       A. ServerListFilter<Server>

       B. IclientConfig

       C. ServerList<Server>

       D. ServerListUpdater

Ans : ServerList<Server>

Q.17 Which of the following feature of ribbon can detect the servers which are down?

       A. Fault Tolerance

       B. Service Discovery Integration

       C. Caching and Batching

       D. Load Balancing

Ans : Fault Tolerance

Q.18 To create load balanced Resttemplate which annotation should be added to it?

       A. @RibbonClient

       B. @LoadBalanced

       C. @FeignClient

       D. @EnableRibbon

Ans : @LoadBalanced

Q.19 Calling end-point “/service-registry” with GET returns the status of

       A. Registration

       B. ServiceDiscovery

       C. EurekaClient

       D. Service Registry

Ans : Registration

Q.20 Which component specifies the load balancing rule we use in application?

       A. Ping

       B. PingUrl

       C. Rule

       D. ServerList

Ans : Rule

Q.21 Ribbon client .ribbon.NIWSServerListClassName should implement?

       A. Irule

       B. IloadBalancer

       C. ServerList

       D. ServerListFilter

Ans : ServerList

Q.22 Soon after you click on the downloaded file.

       A. True

       B. False

Ans : False

Q.23 Netflix Ribbon is an Inter Process Communication (IPC) cloud library

       A. True

       B. False

Ans : True

Leave a Comment