Courseiva
Data EngineeringeasyMultiple SelectObjective-mapped

Analyze Streaming IoT Data with Kinesis Data Analytics and Store in S3

A company wants to analyze streaming data from IoT devices in near-real-time. They need to store raw data in Amazon S3 and also run SQL queries on the streaming data. Which TWO services should they use?

Quick Answer

This scenario has two distinct requirements bundled into one question, store the raw data durably in S3, and also run SQL queries on the data while it's still streaming, and each requirement maps to a different Kinesis service built specifically for that job. Amazon Kinesis Data Firehose is the natural fit for the storage requirement: it's a fully managed delivery service that reliably batches, buffers, and writes streaming records to a destination like S3 with built-in retry and compression, without requiring custom code to manage that delivery. Amazon Kinesis Data Analytics handles the second requirement, letting the company run standard SQL queries directly against the streaming data as it arrives, which is what makes it possible to analyze the IoT data in near-real-time rather than only after it has landed in S3 and needs a separate query engine to be read back out. These two services can be used together in the same pipeline, the streaming data can be queried in near-real-time by Kinesis Data Analytics while Firehose independently handles delivering a durable raw copy to S3, so neither service has to compromise on doing its own job well to also cover the other's responsibility. The pattern worth remembering is that storing raw data and querying it while streaming are two separate needs that Kinesis satisfies with two separate, purpose-built services rather than one service handling both. When a scenario asks for both durable storage and real-time SQL analytics on the same streaming data, expect the answer to pair a delivery service like Firehose with an analytics service like Kinesis Data Analytics.

⚠ Common exam trap

Many candidates confuse Kinesis Data Streams (which only ingests and stores data) with Kinesis Data Analytics (which provides SQL querying), or they mistakenly think AWS Glue can handle real-time streaming SQL when it is actually designed for batch processing.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Amazon Kinesis Data Analytics

Amazon Kinesis Data Analytics is correct because it enables running SQL queries on streaming data in near-real-time, allowing the company to analyze IoT data as it arrives without needing to store it first. It integrates directly with Kinesis Data Streams or Firehose to process data streams using standard SQL, making it ideal for real-time analytics on streaming data.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS Glue

    Why it's wrong here

    Batch ETL, not real-time.

  • Amazon Kinesis Data Streams

    Why it's wrong here

    Needs custom consumers for SQL queries.

  • Amazon Kinesis Data Analytics

    Why this is correct

    Runs SQL on streaming data.

  • Amazon Kinesis Data Firehose

    Why this is correct

    Delivers data to S3.

  • AWS Lambda

    Why it's wrong here

    Not for SQL queries.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on MLS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company wants to perform real-time analytics on streaming data from clickstreams. The data needs to be ingested, processed, and made available for querying within seconds. Which AWS service should be used for the processing step?

easy
  • A.AWS Glue
  • B.Amazon Redshift
  • C.Amazon Kinesis Data Analytics
  • D.Amazon Athena

Why C: Amazon Kinesis Data Analytics is the correct choice because it enables real-time processing and analysis of streaming data using SQL or Apache Flink. It can ingest data from Kinesis Data Streams or Kinesis Data Firehose, process it with sub-second latency, and output results to destinations like Kinesis Data Streams or Firehose for further querying, meeting the requirement for analytics within seconds.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.