Introduction to Amazon Keyspaces
Explore Amazon Keyspaces to understand its serverless, wide-column data model compatible with Apache Cassandra. Learn how to use CQL for data operations and the critical role of primary key design in query efficiency. This lesson covers AWS authentication methods, capacity planning, and security features to operate Keyspaces effectively.
Amazon Keyspaces occupies a specific niche in the AWS database portfolio. It delivers a fully managed, serverless, Apache Cassandra-compatible wide-column database that lets organizations run Cassandra workloads without provisioning servers, patching software, managing compaction, or configuring replication. Many teams already rely on CQL and Cassandra drivers in production, and Keyspaces removes the undifferentiated operational burden while preserving that application-level compatibility. Within the broader AWS ecosystem, the natural comparison is DynamoDB. Both are NoSQL, both scale horizontally, and both replicate across multiple Availability Zones automatically. The deciding factor is the workload's interface requirements. When a scenario explicitly calls for CQL compatibility, Cassandra driver support, and the wide-column data model, Keyspaces is the correct service. DynamoDB uses its own API and data model, so migrating an existing Cassandra application to DynamoDB would require rewriting queries and driver code. Keyspaces supports on-demand and provisioned capacity modes for serverless scaling, encrypts data at rest by default using AWS-owned keys or customer-managed KMS keys, and offers point-in-time recovery for backup and restore within a 35-day window. All of these features operate without cluster management. Before writing a single query or connecting an application, you must understand how the Cassandra data model and primary-key structure govern every aspect of query behavior. That understanding is the focus of this lesson.
The Cassandra data model in Keyspaces
Data in Amazon Keyspaces follows a strict hierarchy. A
Primary key anatomy
The