REST APIs, Security and Microservices Interview Questions for Java Full Stack with React
25 REST APIs, Security and Microservices questions with answers for java full stack with react roles — 7 easy, 12 medium, 6 hard.
About REST APIs, Security and Microservices
This topic covers designing clean REST APIs and securing them. You will revise HTTP methods and status codes, validation, versioning, CORS, JWT authentication, the Spring Security filter chain, password hashing and role-based access. It also covers microservice patterns such as API gateways, service discovery, circuit breakers, sagas and rate limiting that interviewers ask mid and senior candidates.
Which HTTP methods are safe and which are idempotent?
Show answer
Explain the common HTTP status codes a REST API should return.
Show answer
What is the difference between authentication and authorization?
Show answer
Write a basic CRUD REST controller in Spring Boot.
Show answer
How do you store user passwords securely in Spring Boot? Show the code.
Show answer
How do you work with frontend developers and testers on API changes?
Show answer
How does JWT-based authentication work?
Show answer
What is CORS and how do you configure it for a React frontend?
Show answer
Compare monolithic and microservices architecture.
Show answer
What roles do an API gateway and service discovery play in microservices?
Show answer
Add request validation to a registration API.
Show answer
Call another microservice from Spring Boot using RestClient with a timeout.
Show answer
Your React app gets 403 Forbidden on POST requests to Spring Boot, but GET works. What is the likely cause?
Show answer
Your public API is being hit by too many requests from a few clients. How do you add rate limiting?
Show answer
Users must upload files up to 200 MB. How do you design the upload API?
Show answer
How do you version a REST API?
Show answer
Tell me about a production incident you handled.
Show answer
How do you handle a requirement that is unclear or keeps changing?
Show answer
How does the Spring Security filter chain process a request?
Show answer
What is the circuit breaker pattern and how is it implemented in Spring?
Show answer
Configure Spring Security 6 for a stateless JWT-secured REST API.
Show answer
A user's JWT is stolen and you need to invalidate it before expiry. How would you design for this?
Show answer
An order service and a payment service have separate databases. How do you keep data consistent when placing an order?
Show answer
A downstream service is slow, and your API threads are all stuck waiting. What do you do?
Show answer
Frequently asked questions
How important is REST APIs, Security and Microservices in Java Full Stack with React interviews?
This topic covers designing clean REST APIs and securing them. You will revise HTTP methods and status codes, validation, versioning, CORS, JWT authentication, the Spring Security filter chain, password hashing and role-based access. It also covers microservice patterns such as API gateways, service discovery, circuit breakers, sagas and rate limiting that interviewers ask mid and senior candidates.
How should I use the REST APIs, Security and Microservices sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.