Streaming, Search and Data Exchange Services
Overview
The analytics category (Task 3.7) includes services that ingest streams, search and analyse logs, process big data, and buy third-party data sets. Earlier lessons covered Athena, Glue, QuickSight, Kinesis and Redshift; this lesson fills the remaining in-scope services: MSK, OpenSearch Service, EMR and Data Exchange.
Think of a newsroom. Kinesis and MSK are the wire services delivering stories continuously. OpenSearch is the archive's search engine, EMR is a team of researchers crunching huge piles of documents, and Data Exchange is a subscription shop for purchased data sets.
Key Concepts
- Amazon MSK (Managed Streaming for Apache Kafka) runs Kafka clusters for streaming data without managing brokers.
- Amazon Kinesis is AWS's native streaming family; choose MSK when you need Kafka compatibility.
- Amazon OpenSearch Service provides search, log analytics and dashboards (OpenSearch/Elasticsearch-compatible).
- Amazon EMR runs big data frameworks (Spark, Hadoop, Hive, Presto) on managed clusters or serverless.
- AWS Data Exchange lets you find, subscribe to and use third-party data in the cloud.
- AWS Glue is serverless ETL and a data catalog; Lake Formation simplifies building and securing data lakes.
- Amazon QuickSight is serverless business intelligence; Athena queries S3 with SQL.
- Analytics pipelines are typically: ingest, store, process, analyse, visualise.
Detailed Notes
The pipeline view
| Stage | Services |
|---|---|
| Ingest | Kinesis Data Streams, Data Firehose, MSK, IoT Core |
| Store | S3 data lake, Redshift warehouse |
| Process | Glue, EMR, Lambda |
| Analyse | Athena, Redshift, OpenSearch |
| Visualise | QuickSight, OpenSearch Dashboards |
| Acquire external data | Data Exchange |
Streaming: Kinesis versus MSK
| Feature | Kinesis Data Streams | Amazon MSK |
|---|---|---|
| Technology | AWS-native | Apache Kafka |
| Choose when | New AWS-native pipeline, simple operations | Existing Kafka apps, Kafka ecosystem tools |
| Scaling | Shards (or on-demand mode) | Brokers and partitions (or serverless) |
| Management | Fully managed | Managed brokers, you manage topics and clients |
Amazon OpenSearch Service
OpenSearch stores JSON documents and offers fast full-text search and aggregations. Common uses: website search, log and clickstream analytics, security analytics and application monitoring. It ships with OpenSearch Dashboards for visualisation. It is not a relational database and is not intended as a system of record.
curl -XGET "https://search-domain.eu-west-1.es.amazonaws.com/products/_search" \
-H "Content-Type: application/json" \
-d '{ "query": { "match": { "name": "keyboard" } } }'
Amazon EMR
| Aspect | Detail |
|---|---|
| What | Managed big data platform for Spark, Hadoop, Hive, Presto, Flink |
| Modes | Clusters on EC2, EMR on EKS, EMR Serverless |
| Why | Petabyte-scale processing cheaper than building your own cluster, can use Spot instances |
| Typical jobs | ETL, machine learning data prep, log processing, genomics |
AWS Data Exchange
Data Exchange is a catalogue of third-party data products (financial markets, weather, healthcare, demographics). Subscribers receive data into S3 automatically, with licensing and billing handled by AWS. Providers can monetise their data sets.
| Aspect | Detail |
|---|---|
| Subscribe | Find a product, accept terms, receive updates in S3 |
| Billing | Through your AWS bill |
| Use cases | Enrich analytics with external data without building integrations |
Choosing
| Requirement | Service |
|---|---|
| Run Kafka without managing brokers | MSK |
| Search website or analyse logs | OpenSearch Service |
| Run Spark on huge data | EMR |
| Buy weather data for forecasts | Data Exchange |
| Serverless SQL on S3 | Athena |
| BI dashboards | QuickSight |
| ETL and catalog | Glue |
| Build secure data lake | Lake Formation |
Security notes
Most analytics services integrate with IAM, KMS encryption, VPC and CloudTrail. Lake Formation adds fine-grained table and column permissions on top of the Glue catalog.
Real World Example
A streaming media service already uses Apache Kafka on-premises, so it moves to Amazon MSK with no application rewrite. Playback events flow to an S3 data lake, EMR runs nightly Spark jobs to build recommendations, and OpenSearch powers the title search box and log dashboards.
Marketing buys regional demographic data through AWS Data Exchange and joins it with viewing data in Athena, presenting the results in QuickSight.
Architecture Diagram
- 1Events are ingested through MSK or Kinesis.
- 2Raw data lands in an S3 data lake.
- 3EMR or Glue transforms and enriches the data.
- 4OpenSearch serves search and log analytics.
- 5QuickSight visualises results; Data Exchange adds external data.
Best Practices
- ✓Choose MSK only when Kafka compatibility is required; otherwise consider Kinesis.
- ✓Use Spot instances for EMR task nodes to cut cost.
- ✓Do not use OpenSearch as the only copy of critical data.
- ✓Secure the lake with Lake Formation permissions and KMS encryption.
- ✓Review Data Exchange licence terms before using third-party data.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Managed Kafka" = MSK.
- "Search and log analytics" = OpenSearch Service.
- "Hadoop/Spark big data" = EMR.
- "Third-party data sets" = AWS Data Exchange.
Chapter quiz
Databases, Analytics, Integration and AI/ML · 10 questions
1.A company needs a relational database with automatic failover to a standby in another Availability Zone. Which feature provides this?
2.Which AWS service is a serverless NoSQL database offering single-digit millisecond performance at any scale?
3.A team wants to run SQL queries directly against data stored in Amazon S3 without managing any servers. Which service should they use?
4.An application publishes one event that must be delivered to several independent systems. Which service is designed for this publish/subscribe pattern?
5.Which service converts recorded speech into text?
6.A social network needs to find friends of friends and detect fraud rings in highly connected data. Which database service fits BEST?
7.A company moves an Oracle database to Aurora PostgreSQL. Which services together support this heterogeneous migration?
8.A team needs a durable, Redis-compatible in-memory database as its primary data store. Which service should it select?
9.A company already runs Apache Kafka applications and wants AWS to manage the brokers. Which service should it use?
10.An analytics team wants to buy third-party weather data and have it delivered automatically into S3. Which service provides this?
0 of 10 answered
Finished this lesson?
0 of 43 lessons done · 0% of the course

