Question 1
Topic: Database Fundamentals
Skill tested: Selects a database structure that matches relationship, query, and scaling requirements.
A logistics company stores shipment events from thousands of mobile scanners. Events arrive at high volume, vary slightly by scanner model, and are usually retrieved by shipment ID and time range. The system must scale out across multiple nodes, and the team does not require joins between event records. A separate relational system already holds customers and billing data. Which approach best fits the event-store requirement without forcing a rigid schema or adding unnecessary relational operations?
A document-oriented NoSQL store accommodates evolving event attributes and can be designed to scale horizontally. Indexing shipment ID and event time supports the stated access pattern without requiring joins. Extending the billing database with normalized scanner-specific tables adds schema and join overhead that the workload does not need. A single relational table could work, but it does not directly address the stated scale-out and variable-record requirements as well. An expiring cache is not an appropriate authoritative store when shipment history must remain available.