SkillSprout
Chapter 5 · Lesson 6
Beginner
4 min read

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

StageServices
IngestKinesis Data Streams, Data Firehose, MSK, IoT Core
StoreS3 data lake, Redshift warehouse
ProcessGlue, EMR, Lambda
AnalyseAthena, Redshift, OpenSearch
VisualiseQuickSight, OpenSearch Dashboards
Acquire external dataData Exchange

Streaming: Kinesis versus MSK

FeatureKinesis Data StreamsAmazon MSK
TechnologyAWS-nativeApache Kafka
Choose whenNew AWS-native pipeline, simple operationsExisting Kafka apps, Kafka ecosystem tools
ScalingShards (or on-demand mode)Brokers and partitions (or serverless)
ManagementFully managedManaged 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.

bash
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

AspectDetail
WhatManaged big data platform for Spark, Hadoop, Hive, Presto, Flink
ModesClusters on EC2, EMR on EKS, EMR Serverless
WhyPetabyte-scale processing cheaper than building your own cluster, can use Spot instances
Typical jobsETL, 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.

AspectDetail
SubscribeFind a product, accept terms, receive updates in S3
BillingThrough your AWS bill
Use casesEnrich analytics with external data without building integrations

Choosing

RequirementService
Run Kafka without managing brokersMSK
Search website or analyse logsOpenSearch Service
Run Spark on huge dataEMR
Buy weather data for forecastsData Exchange
Serverless SQL on S3Athena
BI dashboardsQuickSight
ETL and catalogGlue
Build secure data lakeLake 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

Analytics pipeline with streaming and search
Architecture
AWS Cloud
MSK / Kinesisingest
S3 data lake
EMR / Glue
OpenSearch
QuickSight
  1. 1Events are ingested through MSK or Kinesis.
  2. 2Raw data lands in an S3 data lake.
  3. 3EMR or Glue transforms and enriches the data.
  4. 4OpenSearch serves search and log analytics.
  5. 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. 1.A company needs a relational database with automatic failover to a standby in another Availability Zone. Which feature provides this?

  2. 2.Which AWS service is a serverless NoSQL database offering single-digit millisecond performance at any scale?

  3. 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. 4.An application publishes one event that must be delivered to several independent systems. Which service is designed for this publish/subscribe pattern?

  5. 5.Which service converts recorded speech into text?

  6. 6.A social network needs to find friends of friends and detect fraud rings in highly connected data. Which database service fits BEST?

  7. 7.A company moves an Oracle database to Aurora PostgreSQL. Which services together support this heterogeneous migration?

  8. 8.A team needs a durable, Redis-compatible in-memory database as its primary data store. Which service should it select?

  9. 9.A company already runs Apache Kafka applications and wants AWS to manage the brokers. Which service should it use?

  10. 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