AWS · Database
Amazon Keyspaces
A serverless database compatible with Apache Cassandra: run Cassandra workloads with the same CQL code and drivers, without managing clusters.
What it is and what problem it solves
Amazon Keyspaces (for Apache Cassandra) is a serverless, Cassandra-compatible database. Applications use CQL (Cassandra Query Language) and existing Cassandra drivers, while AWS handles servers, replication, scaling and patching. Tables use on-demand or provisioned capacity, data is replicated across three Availability Zones, and multi-Region replication is available.
When to use it
- Existing Cassandra applications you want to stop operating yourself.
- Wide-column workloads with high write rates: IoT data, time series, messaging.
When to avoid it
- New key-value applications without a Cassandra requirement: DynamoDB is usually the more AWS-native choice.
- Cassandra features Keyspaces does not support: check compatibility first.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| Maximum row size | 1 MB | Excluding static column data. | Source checked |
| Maximum partition key size | 2,048 bytes | Clustering keys up to 850 bytes. | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
On-demand read and write request units, or provisioned read and write capacity units; storage per GB-month; point-in-time recovery backups and restores; TTL deletes; multi-Region replication writes per Region; data transfer out.
Where it is cost-efficient
Spiky Cassandra workloads on on-demand capacity, compared with keeping a cluster sized for peak.
Where costs grow
Very high steady throughput on on-demand capacity, and large multi-Region replication.
Cost controls and common surprises
Use provisioned capacity with auto scaling for steady load and TTL to expire old data.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Encryption at rest and in transit, IAM authentication and authorisation, and VPC endpoints.
What you configure
Grant least privilege per keyspace and table, and use VPC endpoints for private access.
Logging and monitoring
CloudTrail and CloudWatch metrics.
Related security services
IAM, KMS, VPC endpoints.
Shared responsibility
AWS runs the database. You manage data, access and capacity mode.
Availability, backup and failure behavior
Data is replicated three times across Availability Zones; multi-Region replication supports Regional resilience.
Common service combinations
Existing Cassandra drivers, Lambda and containers as clients, CloudWatch.
Business application examples
- An IoT platform moves its self-managed Cassandra cluster to Keyspaces and keeps its CQL code.
Exam cues and common confusions
- Cassandra-compatible, serverless, managed: Keyspaces.
- Migrating a Cassandra workload without managing clusters: Keyspaces.
- New key-value design with no Cassandra code to keep: DynamoDB is the usual answer instead.
Related
Courses and lessons
- Purpose-built databases: DocumentDB, Keyspaces, Neptune, Redshift and more · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon DynamoDB · Service
- Amazon DocumentDB · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.