Amazon OpenSearch Service
Managed search and log analytics (the old Elasticsearch Service). For the exam, almost everything reduces to one question: which storage tier should this index live on — and the money is in noticing that data which has stopped changing does not need expensive hot nodes.
Search và log analytics dạng managed (Elasticsearch Service ngày xưa). Với bài thi, gần như mọi thứ quy về một câu: index này nên nằm ở tier lưu trữ nào — và tiền nằm ở chỗ nhận ra dữ liệu đã ngừng thay đổi thì không cần hot node đắt tiền.
The three tiersBa tier
The cost question and the compliance question are separate tracks. Answers that solve one by sacrificing the other — deleting the S3 originals, or keeping ten hot nodes for read-only data — are the wrong ones.
Bài toán chi phí và bài toán tuân thủ là hai đường riêng. Đáp án nào giải cái này bằng cách hy sinh cái kia — xoá bản gốc trong S3, hoặc giữ mười hot node cho dữ liệu chỉ đọc — là đáp án sai.
| Hot | UltraWarm | Cold | |
|---|---|---|---|
| WritableGhi được | ✓ | ✗ | ✗ |
| Queryable right nowQuery được ngay | ✓ | ✓ | ✗ — attach first✗ — phải gắn lại |
| Where the bytes liveByte nằm ở đâu | node storagestorage của node | S3 + cachecache | S3 |
| Reach for it whenDùng khi | still indexing, or latency-critical searchcòn đang index, hoặc search cần độ trễ thấp | index is finished but still queried regularlyindex đã xong nhưng vẫn query đều | rarely opened, kept "just in case"hiếm khi mở, giữ "phòng khi cần" |
When OpenSearch is the wrong answerKhi OpenSearch là đáp án sai
| RequirementYêu cầu | Better fitHợp hơn |
|---|---|
| Occasional SQL over logs already in S3, nothing to run between queriesThỉnh thoảng chạy SQL trên log đã nằm trong S3, giữa các lần query không cần gì chạy | Athena |
| Search a few CloudWatch log groups ad hocTìm nhanh trong vài CloudWatch log group | CloudWatch Logs Insights |
| Petabyte BI warehouse with joins and complex SQLKho BI cỡ petabyte với join và SQL phức tạp | Redshift |
| Time-series metrics from sensors, with interpolationMetric time-series từ sensor, có nội suy | Timestream |
| Full-text / relevance search, log dashboards, near-real-timeSearch toàn văn / theo độ liên quan, dashboard log, gần realtime | OpenSearch |
- Ingestion paths worth recognising: Firehose → OpenSearch (fully managed), OpenSearch Ingestion (managed Data Prepper pipelines), or your own Lambda/agent.Các đường ingest nên nhận ra: Firehose → OpenSearch (managed hoàn toàn), OpenSearch Ingestion (pipeline Data Prepper managed), hoặc Lambda/agent tự viết.
- A provisioned domain in a VPC needs its own access policy and security groups — fine-grained access control (FGAC) handles per-index/per-field permissions.Domain provisioned trong VPC cần access policy riêng và security group — fine-grained access control (FGAC) lo quyền theo index/theo field.
- Provisioned OpenSearch is managed, not serverless — a common trap in "which of these is serverless" questions. OpenSearch Serverless collections are the serverless one.OpenSearch provisioned là managed, không phải serverless — bẫy hay gặp trong câu "cái nào là serverless". Collection của OpenSearch Serverless mới là cái serverless.
Exam reflexesPhản xạ thi
- "Data is read-only after ingest, kept 1 month, then the index is deleted, and we must retain the raw input" → shrink the hot tier, add UltraWarm, transition indices on ingest + S3 lifecycle to Glacier Deep Archive after a month."Dữ liệu chỉ đọc sau khi ingest, giữ 1 tháng, rồi xoá index, và phải giữ lại input gốc" → thu nhỏ tier hot, thêm UltraWarm, chuyển index ngay khi ingest + S3 lifecycle sang Glacier Deep Archive sau một tháng.
- "Replace all data nodes with UltraWarm nodes" → invalid. Hot nodes are still needed to ingest, and UltraWarm needs dedicated masters."Thay toàn bộ data node bằng UltraWarm node" → không hợp lệ. Vẫn cần hot node để ingest, và UltraWarm cần dedicated master.
- "Add cold storage nodes" → invented. And any option that deletes the S3 input to save money fails the compliance line."Thêm cold storage node" → bịa. Và option nào xoá input trong S3 để tiết kiệm là phạm dòng yêu cầu compliance.
- Moving data to Glacier Deep Archive at ingest time is wrong — you'd have to restore it if you needed to re-index. Move it after the analysis window closes.Chuyển dữ liệu sang Glacier Deep Archive ngay lúc ingest là sai — cần index lại thì phải restore. Chuyển sau khi cửa sổ phân tích đóng.