Compare access patterns
| Need | Common service direction | Key concern |
|---|---|---|
| Query files in S3 | Athena + Glue Catalog | Scan volume and file layout |
| Warehouse reporting | Redshift | Data model, distribution and workload |
| Event stream processing | Kinesis services | Partitioning, ordering and consumers |
| Search and log indexing | OpenSearch | Index mappings, shards and capacity |
| ETL and catalog metadata | Glue | Jobs, schema evolution and permissions |
A data lake stores source/processed files; a catalog describes schemas and locations. Schema-on-read shifts validation into processing/query time. A warehouse organizes data for analytical queries. None of these replaces an operational database simply because all contain “data”.
Athena lab
- Upload a tiny synthetic CSV to a private S3 prefix with columns order_id, city and amount. Do not upload customer data.
- Configure an Athena workgroup with a controlled output location and limits.
- Define an external table manually or use a narrowly scoped Glue crawler.
- Run a grouped query and inspect bytes scanned and output location.
SELECT city, COUNT(*) AS orders, SUM(amount) AS revenue
FROM academy_orders
GROUP BY city
ORDER BY revenue DESC;- Convert a copy to Parquet and compare scanning behaviour. Partition by a query-relevant date dimension, avoiding excessive tiny files/partitions.
Streaming design
A stream partition key influences ordering and distribution. Consumers need checkpoints and replay behaviour; events may arrive late or duplicated. Decide event time versus processing time. Buffering into S3 can decouple ingestion from downstream analytics.
Search design
OpenSearch is optimized for indexed search, not arbitrary transactional integrity. Indexing is another data copy requiring retention, access controls and deletion handling. Plan mappings before indexing inconsistent types under the same field.
Verification and cleanup
Compare query totals with the original tiny CSV. A plausible chart is not proof the parser used correct types. Remove crawler/jobs, query output and paid clusters/endpoints after the exercise. Retain only deliberate sample data.
Official references
Ravindra’s Tip
Athena में SELECT आसान है, लेकिन scan होने वाला data bill बढ़ाता है। सही format और partitioning का असर समझो।
Interview and revision check
Why compare Athena totals with the original sample?
Parsing, schema or partition mistakes can produce plausible but wrong results. Known small data provides a checkable ground truth.
Ravindra Bagale · Cloud & DevOps Academy · Handbook and project downloads