Rest and Microservices Interview Questions

Veenarao
3 min readNov 20, 2023

--

Dear Readers, Please find the list of commonly asked questions.I have come across these questions most of the times while giving numerous interviews.

These question will test your knowledge about REST API, REST concepts, and Microservices architecture.

REST API
REST API

REST

  1. what is REST API?
  2. Why is REST stateless?
  3. Principles of REST?
  4. Features of REST?
  5. Difference between REST and SOAP?
  6. What is REST resource?
  7. Application State vs Resource State?
  8. URL VS URI?
  9. What are the different HTTP methods?
  10. What are different HTTP response status codes?
  11. What are the different data formats used in REST?
  12. What is idempotent operation? which method performs?
  13. POST vs PUT ?
  14. PUT VS PATCH?
  15. PathParam vs QueryParam?
  16. How is versioning handled?
  17. How can REST API’s be tested?
  18. How Rest API can be authenticated and authorized?
  19. What is content negotiation?
  20. How API can be documented?
  21. How error responses handled in REST?
  22. How is pagination handled?
  23. What is CORS?
  24. Use of Caching in REST?
  25. Use of OPTIONS in REST?
  26. Best practices to design a rest endpoint?
  27. Is there any restriction on the payload size sent via the POST method?

Microservices

Microservices Architecture
Microservices Architecture
  1. Monolithic vs SOA vs Microservice
  2. Explain Microservice architecture?
  3. How do u migrate from Monolithic to Microservice?
  4. What challenges faced while developing Microservices?
  5. Design Principles in MicroService
  6. Have you worked on any design patterns in Microservices?How have u implemented it?
  7. How do Microservices communicate with each other?
  8. How to scale Microservices?
  9. What is API gateway?
  10. What is SAGA design pattern?
  11. Microservice Service A calls to Service B and Service B calls to service C ,if Service B is down or not responding then how to handle this situation in Microservices ,Or which design pattern is suitable for this scenario ?
  12. How data partition and data replication works in Microservices?
  13. What are the different Deployment strategies used in Microservices?
  14. How Microservices can be secured?
  15. How Microservices can impact on database design?
  16. How Microservices can be available with zero down time?
  17. Whats the use of docker in Microservices?
  18. How are Microservices tested?
  19. How are Microservices monitored?
  20. How to manage consistency and performance in Microservices?

That’s all for now about some of the frequently asked REST and Microservices interview questions for beginners and experienced Java developers. These questions are also very useful to brush up on your knowledge about the topics.

  • Thank you for reading this article. Please provide your valuable suggestions/ feedback.
  • Clap and Share if you liked the content.
  • 📰 Read more content on my Medium (on Java Developer interview questions)
  • 🔔 Follow me on : LinkedIn

Please find my other useful articles on Java Developer interview questions

Following are some of the famously asked Java8 Interview Questions

Frequently asked Java Programs

Dear Readers, these are the commonly asked java programs to check your ability on writing the logic

SpringBoot Interview Questions | Medium

--

--