You need to design a product catalog system that can handle millions of products and thousands of concurrent users. Which architectural approach best supports scalability and fast product search?
Think about how to handle large data volumes and fast search queries efficiently.
Option D uses a distributed NoSQL database that can scale horizontally and a search engine optimized for fast queries, making it the best choice for scalability and performance.
Your product catalog expects 10,000 requests per second at peak. Each request reads product details averaging 5 KB. What is the approximate network bandwidth needed to handle this load?
Calculate bandwidth as requests per second multiplied by data size per request, then convert to Mbps.
10,000 requests/sec * 5 KB = 50,000 KB/sec = 50 MB/sec. 50 MB/sec * 8 = 400 Mbps. Considering overhead, 500 Mbps is a safe estimate.
Which tradeoff is most accurate when deciding between SQL and NoSQL databases for a product catalog with complex relationships and frequent updates?
Consider consistency, query complexity, and scalability tradeoffs.
SQL databases provide ACID transactions and complex joins but can be harder to scale horizontally. NoSQL databases scale easily but often relax consistency and lack complex join support.
Products have widely varying attributes (e.g., electronics vs. clothing). Which design approach best supports flexible attribute storage without schema changes?
Think about flexibility and ease of adding new attributes.
Document-oriented NoSQL databases allow storing flexible attributes as key-value pairs, enabling easy schema evolution without downtime.
Which component sequence best ensures consistent product updates with minimal downtime and supports rollback in case of errors?
Consider the logical order for safe updates and testing before production deployment.
First validate data, then write to staging, test on staging, and finally promote to production to ensure consistency and rollback capability.
