Sample questions
Question 1Easy
- A database cluster
- A load balancer with multiple listener ports and routing rules
- One deployable application with all features
- Many services deployed independently
Answer: C. One deployable application with all features
Explanation
All modules run and deploy together as one unit.
Step-by-step solution
- A monolith is one application.
- All its features are built, run and deployed together.
- A database cluster or a load balancer alone is not a monolith.
- So a monolith is one deployable application with all features (option C).
Why the other options are wrong
- A. A database cluster is data infrastructure, not an application.
- B. A load balancer with routing rules is infrastructure, not an application.
- D. Many independently deployed services describe microservices.
Tip: Monolith: one deployable unit. Microservices: many units deployed separately.
Question 2Easy
Which HTTP status code fits a request rejected by a rate limiter?
- 301 Moved Permanently
- 429 Too Many Requests
- 500 Internal Server Error
- 404 Not Found
Answer: B. 429 Too Many Requests
Explanation
429 tells clients to slow down, often with a Retry-After header.
Step-by-step solution
- Rate-limited requests are rejected for too many requests.
- The standard code is 429.
- Often with Retry-After header.
Why the other options are wrong
- A. 301 is redirect.
- C. 500 is a server fault.
- D. 404 is not found.
Question 3Easy
Health check endpoints like /health in microservices are used by:
- Load balancers and orchestrators to route and restart
- Compilers to verify that the code builds before it is deployed
- Databases to create indexes
- End users to view their account
Answer: A. Load balancers and orchestrators to route and restart
Explanation
Infrastructure polls them to remove unhealthy instances from rotation or restart them.
Step-by-step solution
- A health endpoint reports whether an instance is working.
- Load balancers and orchestrators poll it.
- An unhealthy instance is removed from rotation or restarted.
- So /health is used by load balancers and orchestrators (option A).
Why the other options are wrong
- B. Compilers do not poll running services, so this is not the health check's job.
- C. Databases do not use /health to create indexes.
- D. End users do not use a health endpoint to view accounts.
Tip: Health endpoints serve the infrastructure, not the end users.
Question 4Easy
What is service discovery?
- How services find the current addresses of other services
- Discovering new customers for a service through analytics
- A tool for searching source code
- Listing APIs in documentation
Answer: A. How services find the current addresses of other services
Explanation
Instances come and go; a registry (Consul, Kubernetes DNS, Eureka) tracks healthy instances so callers can find them.
Step-by-step solution
- Service instances start, stop and move, so their addresses change.
- A service registry tracks which instances are healthy and where they are.
- Callers ask the registry to find a current address.
- So service discovery is how services find the current addresses of others (option A).
Why the other options are wrong
- B. Finding customers through analytics is a marketing idea, not service discovery.
- C. Searching source code is a developer tool, not service discovery.
- D. Listing APIs in documentation is not how services find each other.
Tip: Service discovery answers: where is the healthy instance of service X right now?
Question 5Medium
What is a service mesh (e.g. Istio, Linkerd) mainly used for?
- Writing business logic
- Handling service-to-service traffic: mTLS, retries, metrics
- Generating API documentation automatically from the source code of every service
- Storing service data
Answer: B. Handling service-to-service traffic: mTLS, retries, metrics
Explanation
Sidecar or node proxies handle networking concerns uniformly so services do not each implement them.
Step-by-step solution
- A service mesh runs a proxy beside each service, or on each node.
- All service-to-service traffic passes through these proxies.
- The proxies handle mTLS, retries and metrics uniformly.
- So a service mesh handles service-to-service traffic such as mTLS, retries and metrics (option B).
Why the other options are wrong
- A. Business logic stays in the services, not the mesh.
- C. Generating API docs from source is a documentation tool task.
- D. Storing service data is the job of each service's database.
Tip: A mesh moves network concerns out of each service's code.
Question 6Medium
For a small new product with a team of four, which is usually the sensible default?
- A well-structured modular monolith
- Fifty microservices from day one
- One microservice per database table
- A separate Kubernetes cluster for every feature so teams never share infrastructure
Answer: A. A well-structured modular monolith
Explanation
Microservices add operational overhead that pays off with scale and many teams; a modular monolith can be split later.
Step-by-step solution
- A small team with a new product has limited operations capacity.
- Microservices add deployment and operations overhead.
- A well-structured modular monolith keeps one deploy and can be split later.
- So for four people, a modular monolith is the usual default (option A).
Why the other options are wrong
- B. Fifty services for a team of four adds overhead with no benefit.
- C. One service per table multiplies overhead and splits data needlessly.
- D. A cluster per feature is costly and not needed for a small team.
Tip: Start with a modular monolith; split out services only when team or scale demands it.
Question 7Medium
The Backend for Frontend (BFF) pattern means:
- Frontend code running on the database
- One backend shared by all frontends with no changes
- A backup backend kept on standby in case the main one fails
- A separate API layer tailored to each client type
Answer: D. A separate API layer tailored to each client type
Explanation
Each BFF shapes data for its client's needs without bloating a single general API.
Step-by-step solution
- A BFF is a backend layer built for one kind of client.
- It shapes data for a web app, a mobile app or another client.
- This keeps a single general API from being bloated.
- So BFF means a separate API layer tailored to each client type (option D).
Why the other options are wrong
- A. Frontend code does not run on the database in this pattern.
- B. One backend shared with no changes is the opposite of a BFF.
- C. A standby backend is failover, not the BFF pattern.
Tip: One backend per client type keeps each API simple for its client.
Question 8Medium
The strangler fig pattern helps teams:
- Merge all microservices back into a single deployable unit when they become too many
- Migrate a monolith gradually by routing features to new services
- Delete unused code automatically
- Rewrite the whole system in one release
Answer: B. Migrate a monolith gradually by routing features to new services
Explanation
New functionality is built alongside the old system and traffic moves piece by piece until the monolith can be retired.
Step-by-step solution
- The strangler fig pattern builds new features as services beside the old system.
- Traffic is routed piece by piece from the monolith to the new services.
- When everything has moved, the monolith is retired.
- So it helps teams migrate gradually by routing features to new services (option B).
Why the other options are wrong
- A. The pattern moves away from a monolith; it does not merge services back.
- C. The pattern is about moving routes, not deleting unused code.
- D. A one-release rewrite is the risky approach the pattern avoids.
Tip: Strangler fig: move the system one route at a time, not in one big rewrite.
Question 9Hard
Service A calls B, which calls C, each with 99.9% availability and all required. What is the best case availability of the chain?
- About 99.7%
- 100%
- 99.9%
- 99.97%
Answer: A. About 99.7%
Explanation
Required dependencies multiply: 0.999³ ≈ 0.997. Deep synchronous call chains erode availability.
Step-by-step solution
- All three services are required, so their availabilities multiply.
- 0.999 × 0.999 × 0.999 = 0.999³ ≈ 0.997.
- That is about 99.7%.
- So the best case is about 99.7% (option A).
Why the other options are wrong
- B. 100% is impossible when each service fails 0.1% of the time.
- C. 99.9% is one service's availability, not the chain's.
- D. 99.97% is higher than the product of three 99.9% services allows.
Tip: Required dependencies in a chain multiply their availabilities, so the total is lower.
Question 10Hard
Client-side vs server-side service discovery:
- Client-side means users type IP addresses
- They are identical except for the programming language used to implement them
- Client-side: caller queries a registry and picks; server-side: a balancer does it
- Server-side means the database stores routes
Answer: C. Client-side: caller queries a registry and picks; server-side: a balancer does it
Explanation
Client-side discovery puts the logic in a library in each caller; server-side hides it behind a load balancer or proxy.
Step-by-step solution
- Client-side discovery: client asks a registry and chooses an instance.
- Server-side: a load balancer does it.
- The difference is who does the lookup.
Why the other options are wrong
- A. Users do not type IPs.
- B. They differ architecturally.
- D. A database is not the router.
Practise all 21 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →