Hint: Look for arrow notation showing flow direction [OK]
Common Mistakes:
Using '=' or ':' which are not flow indicators
Confusing bidirectional arrows for load balancer
Ignoring standard diagram conventions
3.
Consider this simplified request flow in a production system:
Client -> LoadBalancer -> Cache -> Database
If the cache has the requested data, what is the expected behavior?
medium
A. Request goes to the database every time
B. Cache sends request back to client
C. Request is served from the cache without hitting the database
D. Load balancer forwards request to multiple databases
Solution
Step 1: Understand cache role in request flow
Cache stores frequently requested data to serve requests quickly without querying the database.
Step 2: Analyze behavior when cache has data
If cache has data, it returns it directly, skipping the database to save time and resources.
Final Answer:
Request is served from the cache without hitting the database -> Option C
Quick Check:
Cache hit = serve from cache [OK]
Hint: Cache hit means no database query needed [OK]
Common Mistakes:
Assuming database is always queried
Thinking cache sends requests back to client
Confusing load balancer role
4.
In a production system, a developer notices that the load balancer is sending all traffic to a single server, causing overload. What is the likely cause?
medium
A. Database is down
B. Load balancer is misconfigured to use a single server
C. Cache is not storing data properly
D. Client is sending too many requests
Solution
Step 1: Identify symptoms of traffic overload on one server
All traffic going to one server suggests load balancer is not distributing requests evenly.
Step 2: Determine cause of uneven traffic distribution
Misconfiguration in load balancer settings can cause it to route all requests to a single server.
Final Answer:
Load balancer is misconfigured to use a single server -> Option B
Quick Check:
Uneven traffic = load balancer misconfig [OK]
Hint: Check load balancer settings for traffic distribution [OK]
Common Mistakes:
Blaming cache or database for traffic routing
Assuming client causes server overload
Ignoring load balancer role
5.
A production system needs to handle millions of users with minimal downtime. Which combination of advanced concepts best supports this goal?
hard
A. Load balancing, caching, and failover mechanisms
B. Single server deployment and manual backups
C. No caching and direct database access
D. Static content only with no scaling
Solution
Step 1: Identify key needs for high user load and uptime
Handling millions of users requires spreading load, fast responses, and recovery from failures.
Step 2: Match advanced concepts to these needs
Load balancing distributes traffic, caching speeds responses, and failover ensures system stays up if parts fail.
Final Answer:
Load balancing, caching, and failover mechanisms -> Option A