# Amazon Kinesis Data Streams

Cloud service · AWS. Updated 2026-11-12. Page: https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-streams

> Amazon Kinesis Data Streams is a scalable and durable real-time data streaming service that enables developers to continuously capture gigabytes of data per second from hundreds of thousands of sources such as website clickstreams, database event streams, financial transactions, social media feeds, IT logs, and location-tracking events.

Practice exams covering Amazon Kinesis Data Streams: [ANS-C01 AWS Certified Advanced Networking - Specialty](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty), [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [DOP-C02 AWS Certified DevOps Engineer - Professional](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional), [MLA-C02 AWS Certified Machine Learning Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate), [SAP-C03 AWS Certified Solutions Architect - Professional](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional).

## 8 key features of Amazon Kinesis Data Streams

Amazon Kinesis Data Streams offers real-time processing, high throughput with low latency, easy scalability, seamless integration with the AWS ecosystem, and outstanding durability and availability for streaming data.

1. **Real-Time Processing**: Amazon Kinesis Data Streams enables the continuous collection and processing of data records in real time, allowing you to respond promptly to new information.
2. **High Throughput, Low Latency**: The service is designed to handle high volume and high velocity data streams, offering low latency processing for a seamless data streaming experience.
3. **Scalability**: You can easily scale your Kinesis Data Streams to match the volume and throughput of your data without managing infrastructure, ensuring that your data processing capabilities grow with your needs.
4. **Integration with AWS Ecosystem**: Kinesis Data Streams is fully integrated with a wide array of AWS services, making it simple to process and analyze streaming data with services like AWS Lambda, Amazon S3, and Amazon Redshift.
5. **Durability and Availability**: Data records are stored across multiple Availability Zones in a region, offering high durability and availability, ensuring that your streaming data is available when you need it.
6. **Kinesis Producer Library**: The Kinesis Producer Library (KPL) provides a configurable library for writing data to a Kinesis data stream.
7. **Kinesis Client Library**: The Kinesis Client Library (KCL) provides a configurable library for consuming and processing records from a data stream.
8. **Complex Stream Processing**: Kinesis Data Streams applications and streams can form directed acyclic graphs, with multiple applications feeding another stream for downstream processing.

## Where Amazon Kinesis Data Streams is used

Amazon Kinesis Data Streams is versatile in handling real-time data processing and analysis, serving various scenarios including real-time analytics, log and event data collection, IoT device streaming, time-series data analysis, and live video and audio streaming.

1. **Real-Time Analytics**: Amazon Kinesis Data Streams collects, processes, and analyzes real-time data such as video, audio, application logs, website clickstreams, and IoT telemetry data. With it, businesses can gain valuable insights instantaneously, enabling rapid decision-making. This is particularly useful in sectors like finance for fraud detection, e-commerce for personalized recommendations, or online gaming for real-time player analytics.
2. **Log and Event Data Collection**: This use case focuses on gathering log and event data from various sources like applications, servers, and sensors. By streaming this data through Kinesis Data Streams, organizations can aggregate, monitor, and analyze logs in real-time. This aids in troubleshooting, monitoring application health, and gaining operational insights, leading to improved service reliability and performance.
3. **IoT Device Data Streaming**: Kinesis Data Streams serves as a backbone for IoT applications, streaming large volumes of data from connected devices to the cloud. This enables real-time processing of IoT data for scenarios such as predictive maintenance, real-time asset tracking, and smart home automation. By leveraging this, organizations can respond to IoT device signals promptly and make data-driven decisions.
4. **Time-series Data Analysis**: Applications that produce time-series data, like metrics, stock trading volumes, or weather data, can use Kinesis Data Streams for real-time ingestion and processing. This facilitates immediate analysis and visualizations, helping in forecasting, trend analysis, and making proactive business decisions based on temporal data patterns.

## How Amazon Kinesis Data Streams is priced

Amazon Kinesis Data Streams pricing is based on shard hour consumption, Put Payload Units ingested, and optional features like extended data retention and enhanced fan-out.

- **Shard Hour Pricing**: In provisioned mode, you specify the number of shards and are charged for each shard at an hourly rate.
- **Put Payload Unit Pricing**: Costs are also associated with the amount of data ingested into your Kinesis Data Streams. Each Put Payload Unit (PPU) represents a 25KB data payload, and pricing is based on the number of PPUs ingested.
- **Extended Data Retention and Enhanced Fan-out Pricing**: Additional charges apply for extended data retention beyond the default period; enhanced fan-out does not incur an additional charge in On-demand Advantage.
- **On-demand Standard Pricing**: On-demand Standard charges for data ingested and retrieved, plus an hourly charge for each stream.
- **On-demand Advantage Pricing**: On-demand Advantage charges for data ingested and retrieved, subject to account-level minimum usage commitments, rather than a fixed hourly charge for each stream.
- **S3 Delivery Pricing**: S3 delivery is billed per GB successfully delivered, with rates varying by capacity mode and no setup fees, minimum commitments, or upfront costs.
- **Streaming Tables Delivery Pricing**: Streaming tables delivery is billed per GB of uncompressed data successfully delivered, with rates varying by capacity mode and no setup fees, minimum commitments, or upfront costs.
- **Long-Term Data Retrieval Pricing**: In provisioned mode, retrieving data stored beyond seven days through GetRecords incurs a per-GB charge; this long-term retrieval charge does not apply when using SubscribeToShard enhanced fan-out consumers.
- **Data Transfer Pricing**: Same-Region transfers between producers, Kinesis Data Streams, and consuming applications have no data transfer charge. Cross-Region writes incur standard AWS data transfer charges. Cross-Region reads incur data transfer charges in On-demand Standard and On-demand Advantage, but not in provisioned mode.

## Services Amazon Kinesis Data Streams works with

- **[AWS Lambda](https://blowstack.com/tools/cloud-services-hub/aws-lambda)**: AWS Lambda allows you to process and analyze streaming data in real-time by triggering Lambda functions to execute custom code in response to new data records.
- **[Amazon Data Firehose](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-firehose)**: Amazon Data Firehose is used to transform and load streaming data into Amazon S3, Amazon Redshift, Amazon OpenSearch Service, and Splunk.
- **[AWS Glue](https://blowstack.com/tools/cloud-services-hub/aws-glue)**: AWS Glue can be used to discover and prepare data stored in Amazon Kinesis Data Streams for analytics and machine learning.
- **[Amazon CloudWatch](https://blowstack.com/tools/cloud-services-hub/amazon-cloudwatch)**: Amazon CloudWatch allows you to monitor Amazon Kinesis Data Streams, track metrics, and set alarms to manage the health and performance of your streaming data applications.
- **[Amazon API Gateway](https://blowstack.com/tools/cloud-services-hub/amazon-api-gateway)**: Kinesis Data Streams can receive records directly through API Gateway AWS service integrations. An API can map incoming HTTP requests to PutRecord or PutRecords operations without a Lambda function.
- **[Amazon Aurora](https://blowstack.com/tools/cloud-services-hub/amazon-aurora)**: Kinesis Data Streams carries database activity events published by Aurora Database Activity Streams. Security and auditing applications can consume these events to monitor database activity.
- **[Amazon CloudFront](https://blowstack.com/tools/cloud-services-hub/amazon-cloudfront)**: Kinesis Data Streams receives CloudFront real-time access logs through a configurable real-time log configuration. Consumers can analyze request traffic, cache performance, and errors as the logs arrive.
- **[Amazon Cognito](https://blowstack.com/tools/cloud-services-hub/amazon-cognito)**: Kinesis Data Streams can receive dataset-change records from Amazon Cognito Sync through its Cognito Streams feature. Consumers can process changes to synchronized application data.
- **[Amazon Connect](https://blowstack.com/tools/cloud-services-hub/amazon-connect)**: Kinesis Data Streams can receive Amazon Connect contact records and agent events for real-time processing. Streams can also supply customer data to Connect Customer Profiles through an EventBridge Pipes integration.
- **[Amazon DynamoDB](https://blowstack.com/tools/cloud-services-hub/amazon-dynamodb)**: Kinesis Data Streams can capture item-level changes from DynamoDB tables through Kinesis streaming destinations. Separately, Kinesis Client Library consumers use DynamoDB tables to coordinate shard leases and store processing checkpoints.
- **[Amazon EC2](https://blowstack.com/tools/cloud-services-hub/amazon-ec2)**: Kinesis Data Streams can ingest files and logs from EC2 instances using the Amazon Kinesis Agent. The agent monitors configured files, buffers records, and sends them to designated streams.
- **[Amazon Elastic Container Service (Amazon ECS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-container-service-(amazon-ecs))**: Kinesis Data Streams can receive container logs through the ECS FireLens integration and the Kinesis output plugins in AWS for Fluent Bit. ECS task definitions configure the destination stream and log-routing options.
- **[Amazon Elastic Kubernetes Service (Amazon EKS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-kubernetes-service-(amazon-eks))**: Kinesis Data Streams can receive EKS container logs through AWS for Fluent Bit. For EKS pods running on Fargate, the built-in log router supports a Kinesis output configured through the cluster's logging ConfigMap.
- **[Amazon EMR](https://blowstack.com/tools/cloud-services-hub/amazon-emr)**: Kinesis Data Streams supplies streaming records to EMR processing applications through connectors for frameworks such as Apache Spark and Apache Flink. These applications can continuously transform or aggregate incoming records.
- **[Amazon EventBridge](https://blowstack.com/tools/cloud-services-hub/amazon-eventbridge)**: Kinesis Data Streams can be a target for EventBridge rules and a source or target for EventBridge Pipes. Pipes can filter and enrich stream records before delivering them to a supported destination.
- **[Amazon Managed Service for Apache Flink](https://blowstack.com/tools/cloud-services-hub/amazon-managed-service-for-apache-flink)**: Kinesis Data Streams serves as a source and sink for Managed Service for Apache Flink applications. Applications can perform stateful processing, joins, and windowed aggregations before writing results to another stream.
- **[Amazon Managed Workflows for Apache Airflow (Amazon MWAA)](https://blowstack.com/tools/cloud-services-hub/amazon-managed-workflows-for-apache-airflow-(amazon-mwaa))**: Kinesis Data Streams can be managed and written to from MWAA workflows using the Apache Airflow Amazon provider's Kinesis integration. DAGs can create streams, check their status, and publish records as workflow tasks.
- **[Amazon OpenSearch Service](https://blowstack.com/tools/cloud-services-hub/amazon-opensearch-service)**: Kinesis Data Streams can supply records directly to an OpenSearch Ingestion pipeline. The pipeline processes the records and indexes them into an OpenSearch Service domain or an OpenSearch Serverless collection.
- **[Amazon RDS](https://blowstack.com/tools/cloud-services-hub/amazon-rds)**: Kinesis Data Streams carries database activity events from supported RDS engines through Database Activity Streams. Consumers can use these events for database auditing and security monitoring.
- **[Amazon Redshift](https://blowstack.com/tools/cloud-services-hub/amazon-redshift)**: Kinesis Data Streams feeds Redshift streaming ingestion, which loads stream records into materialized views without staging them in Amazon S3. SQL queries can analyze the arriving data alongside warehouse tables.
- **[Amazon Rekognition](https://blowstack.com/tools/cloud-services-hub/amazon-rekognition)**: Kinesis Data Streams receives face-search results from Rekognition streaming video processors. Each result record provides information that downstream applications can use to respond to recognized faces.
- **[Amazon VPC](https://blowstack.com/tools/cloud-services-hub/amazon-vpc)**: Kinesis Data Streams supports interface VPC endpoints so producers and consumers can access its APIs privately from a VPC. Endpoint policies can restrict which stream operations and resources are accessible through the endpoint.
- **[AWS Amplify](https://blowstack.com/tools/cloud-services-hub/aws-amplify)**: Kinesis Data Streams can receive application events through Amplify's Kinesis analytics provider. Applications can record and buffer events for delivery to a stream for real-time analysis.
- **[AWS CloudFormation](https://blowstack.com/tools/cloud-services-hub/aws-cloudformation)**: Kinesis Data Streams streams and registered stream consumers can be provisioned with CloudFormation resource types. Templates can configure stream capacity, retention, encryption, and resource policies.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: Kinesis Data Streams integrates with CloudTrail to record API activity for auditing. CloudTrail captures management events and can be configured to log supported stream data events.
- **[AWS Config](https://blowstack.com/tools/cloud-services-hub/aws-config)**: Kinesis Data Streams resource configurations can be recorded and evaluated by AWS Config. Managed rules can check whether streams have server-side encryption enabled.
- **[AWS Database Migration Service (AWS DMS)](https://blowstack.com/tools/cloud-services-hub/aws-database-migration-service-(aws-dms))**: Kinesis Data Streams can be a DMS migration target for database records and ongoing change data capture. DMS writes changes into a stream so consumers can process database updates continuously.
- **[AWS Fargate](https://blowstack.com/tools/cloud-services-hub/aws-fargate)**: Kinesis Data Streams can receive logs from Fargate workloads through ECS FireLens or the built-in EKS Fargate log router. These integrations route container output to a configured stream without requiring a separately managed logging host.
- **[AWS Fault Injection Service](https://blowstack.com/tools/cloud-services-hub/aws-fault-injection-simulator-(aws-fis))**: Kinesis Data Streams supports Fault Injection Service experiments that inject provisioned-throughput exceptions into selected stream API requests. These experiments test producer and consumer retry behavior under throttling.
- **[AWS Identity and Access Management (IAM)](https://blowstack.com/tools/cloud-services-hub/aws-identity-and-access-management-(iam))**: Kinesis Data Streams uses IAM policies to authorize stream administration, record production, and record consumption. Permissions can be scoped to individual streams and registered consumers, including cross-account access through resource-based policies.
- **[AWS IoT Core](https://blowstack.com/tools/cloud-services-hub/aws-iot-core)**: Kinesis Data Streams can receive device messages through an AWS IoT Core rule action. The rule selects message data and supplies a partition key when writing records to the stream.
- **[AWS IoT Greengrass](https://blowstack.com/tools/cloud-services-hub/aws-iot-greengrass)**: Kinesis Data Streams is an export destination for Greengrass Stream Manager. Edge applications can buffer data locally and have Stream Manager upload it to a configured stream when connectivity is available.
- **[AWS Key Management Service (AWS KMS)](https://blowstack.com/tools/cloud-services-hub/aws-key-management-service-(aws-kms))**: Kinesis Data Streams uses AWS KMS keys for server-side encryption of stream records. Streams can use an AWS managed key or a customer managed key with separately controlled permissions.
- **[AWS PrivateLink](https://blowstack.com/tools/cloud-services-hub/aws-privatelink)**: Kinesis Data Streams supports PrivateLink through interface VPC endpoints. Producers and consumers can reach regional Kinesis endpoints over private connectivity without an internet gateway or NAT gateway.
- **[AWS Resilience Hub](https://blowstack.com/tools/cloud-services-hub/aws-resilience-hub)**: Kinesis Data Streams resources can be included in Resilience Hub application assessments. Resilience Hub evaluates their resilience configuration against the application's recovery objectives and provides recommendations.
- **[AWS Resource Groups and Tag Editor](https://blowstack.com/tools/cloud-services-hub/aws-resource-groups-and-tag-editor)**: Kinesis Data Streams streams support tag-based organization through Resource Groups and tag management through Tag Editor. Teams can group streams by application or environment and update their tags centrally.
- **[AWS Security Hub](https://blowstack.com/tools/cloud-services-hub/aws-security-hub)**: Kinesis Data Streams is covered by a Security Hub control that checks whether streams are encrypted at rest. Unencrypted streams can generate findings for security review and remediation.
- **[AWS Step Functions](https://blowstack.com/tools/cloud-services-hub/aws-step-functions)**: Kinesis Data Streams APIs can be invoked directly from Step Functions through AWS SDK service integrations. State machines can publish records or manage streams without an intermediary Lambda function.
- **[AWS Systems Manager](https://blowstack.com/tools/cloud-services-hub/aws-systems-manager)**: Kinesis Data Streams encryption can be remediated using the Systems Manager Automation runbook AWSConfigRemediation-EnableEncryptionOnKinesisStream. The runbook enables server-side encryption with a specified KMS key.

## What is Amazon Kinesis Data Streams

Amazon Kinesis Data Streams is a scalable and durable real-time data streaming service, meticulously designed by Amazon Web Services (AWS) to enable developers and businesses to continuously capture, process, and store gigabytes of data per second. This powerhouse of a service caters to a wide array of use cases, including real-time analytics, machine learning model inference, log and event data ingestion, data feed monitoring, and much more, proving itself as an indispensable tool for data-driven decision-making and operational efficiency.

At its core, Amazon Kinesis Data Streams is built to accommodate the streaming of enormous volumes of data with very low latencies, allowing for the processing of data in real time. This capability is particularly crucial in today's fast-paced digital landscape where businesses need to rapidly analyze and respond to information as it arrives. Unlike traditional batch data processing, which can involve delays as data accumulates before it is processed, Kinesis Data Streams enables immediate data processing, thereby empowering organizations to swiftly react to new information.

Amazon Kinesis Data Streams provides a robust and flexible platform where data streams are divided into shards. Each shard represents a sequence of data records in the stream and provides a fixed unit of capacity. This design facilitates the parallel processing of streams, enhancing throughput and reducing latency. In provisioned mode, you can increase or decrease the shard count as needed and pay for the number of shards at an hourly rate.

Kinesis Data Streams also offers On-demand Standard and On-demand Advantage modes, which manage capacity automatically. On-demand Advantage additionally lets you proactively configure warm throughput to handle expected traffic increases.

In both on-demand and provisioned modes, each shard supports writes of up to 1 MB/s and 1,000 records per second, and reads of up to 2 MB/s.

One of the most compelling advantages of Amazon Kinesis Data Streams is its seamless integration with a wide variety of AWS services. For instance, it can be connected with Amazon S3 for durable data storage, Amazon Redshift for data warehousing, Amazon OpenSearch Service for search and analytics, and AWS Lambda for serverless data processing. This integration capability simplifies architecture complexity and enables developers to build comprehensive real-time analytics solutions without the need to manage multiple disparate systems.

Strict endpoint allowlists must include the account-level control-plane endpoints \*.control-kinesis.<Region>.amazonaws.com and \*.control-kinesis.<Region>.api.aws, and data-plane endpoints \*.data-kinesis.<Region>.amazonaws.com and \*.data-kinesis.<Region>.api.aws. The .api.aws endpoints support dual-stack connectivity, including IPv6.

Another key feature of Kinesis Data Streams is its built-in data redundancy and availability. Data in a Kinesis stream is automatically replicated to three different Availability Zones in an AWS Region, providing high durability and reliability. This multi-AZ replication ensures that your data stream is resilient to infrastructure failures, making it a trusted solution for mission-critical applications that require constant uptime and data integrity.

In conclusion, Amazon Kinesis Data Streams is a powerful, fully managed service that unlocks the potential of real-time data streaming for businesses and developers alike. By providing an easy-to-use yet highly scalable platform for the continuous capture, processing, and storage of large volumes of data, Kinesis Data Streams enables organizations to drive innovation, enhance operational efficiencies, and build real-time analytics applications that can swiftly adapt to the ever-evolving business landscape.

## Concepts related to Amazon Kinesis Data Streams

- [Event Streaming](https://blowstack.com/tools/cloud-concepts-hub/event-streaming): Event streaming is the continuous publication, retention, and consumption of event records so independent applications can react to changes and replay event history.
- [Backpressure](https://blowstack.com/tools/cloud-concepts-hub/backpressure): Backpressure is feedback from a constrained downstream component that causes upstream components to slow or pause production.
- [Checkpointing](https://blowstack.com/tools/cloud-concepts-hub/checkpointing): Checkpointing is the practice of durably saving processing progress and any required execution state so work can resume from a known recovery point.
- [Throughput](https://blowstack.com/tools/cloud-concepts-hub/throughput): Throughput is the amount of data or work a system successfully processes per unit of time.
- [At-Least-Once Delivery](https://blowstack.com/tools/cloud-concepts-hub/at-least-once-delivery): At-least-once delivery is a messaging guarantee that allows an accepted event to be delivered more than once so that recoverable failures do not silently prevent delivery.
- [Message Ordering](https://blowstack.com/tools/cloud-concepts-hub/message-ordering): Message ordering is the preservation of a defined sequence of messages as they move through a distributed system.
- [Analytics](https://blowstack.com/tools/cloud-concepts-hub/analytics): Analytics is the systematic examination of data to answer questions, identify patterns, and support decisions.
- [Batching](https://blowstack.com/tools/cloud-concepts-hub/batching): Batching groups multiple records, requests, or work items into a unit for more efficient transfer, storage, or processing.
- [Exponential Backoff](https://blowstack.com/tools/cloud-concepts-hub/exponential-backoff): Exponential backoff is a retry strategy that increases the delay between successive attempts, usually by multiplying the previous delay by a fixed factor.
- [Latency](https://blowstack.com/tools/cloud-concepts-hub/latency): Latency is the elapsed time between a defined starting event and the corresponding response, completion, or availability of a result.
- [Partitioning](https://blowstack.com/tools/cloud-concepts-hub/partitioning): Partitioning divides data or a stream of records into smaller, addressable groups so storage, ingestion, and processing can scale efficiently.
- [Semi-Structured Data](https://blowstack.com/tools/cloud-concepts-hub/semi-structured-data): Semi-structured data uses keys, tags, or other markers to organize information without requiring every record to follow the same fixed tabular schema.
- [Change Data Capture](https://blowstack.com/tools/cloud-concepts-hub/change-data-capture): Change Data Capture is a technique for detecting inserts, updates, and deletes in a source data store and making those changes available to downstream systems.
- [Data Network Effects](https://blowstack.com/tools/cloud-concepts-hub/data-network-effects): Data network effects occur when additional usage generates data that improves a product or service, increasing its value and encouraging further usage.
- [Data Skew](https://blowstack.com/tools/cloud-concepts-hub/data-skew): Data skew is an uneven distribution of data or data-processing work across partitions, tasks, or nodes in a distributed system.
- [Event-Time Processing](https://blowstack.com/tools/cloud-concepts-hub/event-time-processing): Event-time processing transforms and aggregates data according to when events occurred rather than when a processing system receives or handles them.
- [Fan-In](https://blowstack.com/tools/cloud-concepts-hub/fan-in): Fan-in is a many-to-one data-flow pattern in which multiple producers or streams feed a shared destination or processing stage.
- [Serialization](https://blowstack.com/tools/cloud-concepts-hub/serialization): Serialization converts in-memory data into a defined text or binary representation for storage, transmission, and later reconstruction.
- [Stateful Processing](https://blowstack.com/tools/cloud-concepts-hub/stateful-processing): Stateful processing retains information across records, requests, or events so that earlier activity can influence later results.

## Amazon Kinesis Data Streams exam questions

Real practice exam questions on Amazon Kinesis Data Streams, with the correct answer and its explanation.

### Question 1 (MLA-C02)

**Question:**

A company uses an Amazon Kinesis Client Library (KCL) application on Amazon EC2 instances to validate events from Amazon Kinesis Data Streams and write training examples to a persistent data store. Each event has a globally unique event_id, and validation produces the same result whenever an event is replayed. The destination supports atomic upserts keyed by event_id, but it cannot participate in a transaction with KCL progress updates.

An instance can fail at any point, including immediately after a destination write succeeds. Replacement instances must resume near the last successfully processed records without omitting events or leaving multiple training rows for the same event. The stream retains all records needed for recovery.

Which implementation meets these requirements?

**Correct answer:** Write training rows by using atomic upserts keyed by event_id. After all records through a sequence number in a shard have been durably written, checkpoint that sequence number through KCL.

**Explanation:** KCL durably tracks progress for each shard so replacement workers can resume from recorded positions. Advancing progress only after successful writes prevents omitted output. A failure before the checkpoint can cause replay, but upserting by the stable event_id makes those repeated writes safe.

### Question 2 (SAP-C03)

**Question:**

A company operates applications in 80 AWS accounts in one AWS Region. Application logs are stored in Amazon CloudWatch Logs. The company needs to aggregate all application logs into a dedicated logging account. Two independent security analytics applications must process incoming logs within seconds. Either application must be able to restart processing from any point within the previous 72 hours without reading the source log groups or the archive. Logs must also be archived in Amazon S3 for seven years, with older objects transitioned to a low-cost archival storage class. Account administrators will deploy subscription configurations through an existing automation pipeline.

Which solution meets these requirements?

**Correct answer:** Create a CloudWatch Logs logical destination in the logging account that targets a Kinesis Data Streams stream configured with 7-day retention. Give CloudWatch Logs an IAM role that can write to the stream, and configure the destination access policy and source administrators' permissions to allow cross-account subscriptions. Subscribe the application log groups to the destination. Run the analytics applications as independent stream consumers, and use Amazon Data Firehose with the stream as its source to archive records to S3 with lifecycle transitions and seven-year retention.

**Explanation:** The logical destination and its access policy support cross-account CloudWatch Logs subscriptions. The destination's IAM role permits delivery into the stream. Kinesis Data Streams provides independent consumers and timestamp-based replay within its configured retention period; seven days exceeds the required 72 hours. A separate Firehose consumer can deliver the same data to S3, where lifecycle rules implement archival transitions and retention.

### Question 3 (DEA-C01)

**Question:**

A utility company uses an AWS Lambda event source mapping to process meter events from Amazon Kinesis Data Streams. Each event contains a unique event ID, and producers publish each event only once. The function updates a billing database. In a single database transaction, it checks for the event ID in a processed-events table, applies the billing update only if the ID is absent, and inserts the ID. Entries in the processed-events table are automatically deleted 24 hours after insertion.

The stream retains records for 7 days. Engineers sometimes replay retained records through the function after correcting unrelated processing issues. A replay can finish up to 7 days after an event was first processed. Immediate retries do not duplicate billing updates, but replays performed several days later sometimes do.

The company must prevent duplicate billing updates while preserving automatic retries and the full replay capability. Which change should a data engineer make?

**Correct answer:** Retain processed-event entries for at least 8 days after insertion, and continue checking and updating the database within the existing transaction.

**Explanation:** The durable record of a completed update must outlive every supported retry and replay. Eight days exceeds the maximum 7-day interval between initial processing and replay completion. Keeping the check, billing update, and event-ID insertion transactional also protects against concurrent processing and failures.

### Question 4 (DOP-C02)

**Question:**

A company has an audit application that uses the Amazon Kinesis Client Library (KCL) to process an operational event stream. A DevOps engineer deploys a separate remediation application that must also process every event. Both applications use the same KCL application name and DynamoDB lease table, but each worker has a unique worker ID.

After deployment, the applications process different subsets of shards instead of each processing the entire stream. There is no read throttling, and both applications have sufficient processing capacity.

The engineer must allow both applications to process every new event independently. The remediation application must also process all records still retained in the stream. The audit application's existing checkpoints must remain unchanged.

Which solution meets these requirements?

**Correct answer:** Give the remediation application a distinct KCL application name and a separate lease table. Configure its initial position as TRIM_HORIZON before its first startup, and leave the audit application's configuration unchanged.

**Explanation:** A separate KCL application identity and lease table provide independent shard ownership and checkpoints. TRIM_HORIZON starts the new application at the oldest available records, allowing it to process the retained history and then continue with new events without changing the audit application's progress.

### Question 5 (DVA-C02)

**Question:**

A logistics application continuously publishes package-location events to an Amazon Kinesis Data Streams stream with a retention period of 48 hours. An AWS Lambda function consumes the stream through an event source mapping and updates a live tracking system.

A developer must add a second Lambda function that transforms location events for a new analytics application. The second function must process all events still retained in the stream and then continue processing new events in near real time. Its processing progress and retries must be independent of the tracking function. The existing tracking function must continue operating without changes or interruption.

Which solution meets these requirements?

**Correct answer:** Create a separate event source mapping from the same stream to the analytics function, with StartingPosition set to TRIM_HORIZON.

**Explanation:** TRIM_HORIZON starts at the oldest available records, allowing the analytics function to process the retained history and then continue with new events. Each event source mapping maintains its own processing position, so the analytics function's progress and retries do not change the tracking function's checkpoint. Reading records does not remove them from the stream.

### Question 6 (ANS-C01)

**Question:**

A company delivers network appliance audit logs from Amazon CloudWatch Logs to a provisioned Amazon Kinesis Data Streams stream through a subscription filter. The stream has 12 shards. Total ingestion averages 6 MB/s, but one log stream produces a disproportionate share of the traffic. CloudWatch Logs reports DeliveryThrottling, and Kinesis metrics show WriteProvisionedThroughputExceeded concentrated on one shard while other shards have spare capacity. The subscription uses the default ByLogStream distribution. Two security analytics applications consume the records independently. All events must be delivered, but ordering within an individual log stream is not required.

Which change should a network engineer make to address the delivery bottleneck without increasing the shard count?

**Correct answer:** Update the CloudWatch Logs subscription filter to use Random distribution when delivering records to the existing stream.

**Explanation:** ByLogStream distribution groups records from the same log stream, which can concentrate writes on a shard when one log stream dominates ingestion. Random distribution spreads delivery across shards and uses the available aggregate write capacity. The scenario explicitly permits the loss of per-log-stream ordering.

### Question 7 (SAA-C03)

**Question:**

A company sends sensor events from factory gateways to Amazon Kinesis Data Streams. A consumer transforms the events by calling a licensed processing system whose capacity cannot be increased. During normal operation, the processing system handles events faster than they arrive. Occasionally, its available capacity decreases for several hours, causing processing delays to grow even though Kinesis reports no read or write throttling.

The gateways can durably retain unsent events for 7 days. Events already submitted to Kinesis must be processed within 30 minutes, but events can remain at the gateways longer during processing slowdowns. The consumer publishes the age of its oldest unprocessed event as a custom Amazon CloudWatch metric.

The company wants ingestion to adapt automatically to processing slowdowns and return to its normal rate after recovery. Which solution meets these requirements?

**Correct answer:** Use the event-age metric to control gateway submission rates. Reduce or pause submissions before processing delay approaches 30 minutes, retain unsent events at the gateways, and gradually restore submissions as the delay decreases.

**Explanation:** This establishes feedback from downstream processing to upstream ingestion. The controller reduces incoming work when processing falls behind and restores throughput when capacity returns. Durable gateway storage holds deferred events outside the stream, protecting the processing deadline for events already accepted.

## Practice Amazon Kinesis Data Streams in a full exam

Questions on Amazon Kinesis Data Streams in each practice exam, with every answer option and an explanation for each:

- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 25 questions
- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 17 questions
- [DOP-C02](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional): 16 questions
- [MLA-C02](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate): 9 questions
- [DVA-C02](https://blowstack.com/practice-exams/aws-certified-developer-associate): 7 questions
- [SAP-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional): 4 questions
- [ANS-C01](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty): 2 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 1 question

## Learn Amazon Kinesis Data Streams in lessons

22 short lessons on Amazon Kinesis Data Streams in 6 certification courses.

- CLF-C02: Amazon Data Firehose and Amazon Kinesis Data Streams: delivery versus custom consumption (Premium), https://app.blowstack.com/lessons/amazon-data-firehose-and-amazon-kinesis-data-streams-delivery-versus-custom-consumption-clf-c02
- MLA-C02: Amazon Kinesis Data Firehose vs Amazon Kinesis Data Streams (Premium), https://app.blowstack.com/lessons/amazon-kinesis-data-firehose-vs-amazon-kinesis-data-streams-mla-c02
- SAP-C03: Amazon Kinesis Data Streams: replayable stream consumption (Premium), https://app.blowstack.com/lessons/amazon-kinesis-data-streams-replayable-stream-consumption-sap-c03
- DEA-C01: Amazon Kinesis Data Streams: the sharded stream model (free), https://app.blowstack.com/lessons/amazon-kinesis-data-streams-the-sharded-stream-model-dea-c01
- DOP-C02: Amazon Managed Service for Apache Flink vs Amazon Kinesis Data Streams (Premium), https://app.blowstack.com/lessons/amazon-managed-service-for-apache-flink-vs-amazon-kinesis-data-streams-dop-c02
- SAA-C03: Amazon Kinesis Data Firehose vs Amazon Kinesis Data Streams (Premium), https://app.blowstack.com/lessons/amazon-kinesis-data-firehose-vs-amazon-kinesis-data-streams-saa-c03
