Microservices MCQs with answers Page - 5

Here, you will find a collection of MCQ questions on Microservices. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Arogya • 850 Points
Hero

Q. Which annotation registers a service as a Eureka client?

  • (A) @EnableDiscoveryClient
  • (B) @Component
  • (C) @Autowired
  • (D) @Repository

A

Arogya • 850 Points
Hero

Q. What is the default Eureka Server port?

  • (A) 8080
  • (B) 8761
  • (C) 3306
  • (D) 9090

A

Arogya • 850 Points
Hero

Q. What information does a service register with Eureka?

  • (A) Source code
  • (B) IP address and port
  • (C) Database password
  • (D) User credentials

A

Arogya • 850 Points
Hero

Q. How does Eureka detect if a service is alive?

  • (A) Manual checking
  • (B) Heartbeat mechanism
  • (C) Database query
  • (D) Log monitoring

A

Arogya • 850 Points
Hero

Q. What happens if a service stops sending heartbeats?

  • (A) Eureka restarts the service
  • (B) Service is removed from registry
  • (C) Database is cleared
  • (D) Server crashes

A

Arogya • 850 Points
Hero

Q. Which property sets the Eureka server URL in client configuration?

  • (A) spring.datasource.url
  • (B) eureka.client.serviceUrl.defaultZone
  • (C) server.port
  • (D) spring.application.name

A

Arogya • 850 Points
Hero

Q. Which load balancer works with Eureka in Spring Cloud?

  • (A) Ribbon
  • (B) Hibernate
  • (C) JPA
  • (D) Servlet

A

Arogya • 850 Points
Hero

Q. What is self-preservation mode in Eureka?

  • (A) Deletes all services
  • (B) Prevents mass eviction during network failure
  • (C) Restarts server automatically
  • (D) Stops all clients

A

Arogya • 850 Points
Hero

Q. Eureka server dashboard is accessible at:

  • (A) /home
  • (B) /eureka
  • (C) /dashboard
  • (D) /admin

A

Arogya • 850 Points
Hero

Q. Which communication is used between services discovered by Eureka?

  • (A) REST/HTTP
  • (B) FTP
  • (C) SMTP
  • (D) Bluetooth

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ