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 OpenSearch storage tiers and a parallel S3 retention track. Data is ingested from an S3 bucket into the hot tier, which uses data nodes with attached storage and supports both reads and writes at the highest cost. Once an index stops being written to, an Index State Management policy rolls it to the UltraWarm tier, which stores segments in S3 and caches them on warm nodes; it is read-only, slower than hot, and much cheaper. Older indices roll on to the cold tier, which keeps data in S3 with no standing compute and must be re-attached to UltraWarm before it can be queried. Separately, the raw input objects stay in the S3 bucket and an S3 lifecycle policy moves them to Glacier Deep Archive after a month for compliance retention. A note says UltraWarm requires dedicated master nodes and that some hot nodes must always remain for ingestion. S3 · raw input Standard ingest HOT data nodes · EBS / NVMe read + WRITE fastest · most expensive keep the minimum you need to ingest ISM ULTRAWARM S3 + warm-node cache READ-ONLY slower · far cheaper still queried routinely COLD S3, no compute attach to warm before querying cheapest tier UltraWarm requires dedicated master nodes · a query hits the warm cache, else pulls the segment from S3 and caches it meanwhile, the compliance copy lives entirely outside the cluster: S3 Standard raw input objects lifecycle S3 Glacier Deep Archive after 1 month · retained for compliance deleting this bucket to "save money" breaks the retain-a-copy-of-all-input requirement two independent savings: fewer hot nodes in the cluster, and cheaper storage class for the raw objects

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ạyAthena
Search a few CloudWatch log groups ad hocTìm nhanh trong vài CloudWatch log groupCloudWatch Logs Insights
Petabyte BI warehouse with joins and complex SQLKho BI cỡ petabyte với join và SQL phức tạpRedshift
Time-series metrics from sensors, with interpolationMetric time-series từ sensor, có nội suyTimestream
Full-text / relevance search, log dashboards, near-real-timeSearch toàn văn / theo độ liên quan, dashboard log, gần realtimeOpenSearch
  • 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.