CLOUD CONCEPT

Relational Data Model

The relational data model organizes data into tables of rows and columns, using keys to identify records and represent relationships between tables.

Cloud Concepts Hub →

What is Relational Data Model

The relational data model provides a structured way to represent entities, their attributes, and their relationships while supporting integrity rules and flexible queries. It is commonly implemented by SQL database systems and is useful when applications need consistent records, joins across entities, and reliable transactional updates.

The relational data model represents data as relations, commonly implemented as tables. A table describes an entity or association, such as customers, orders, or order items. Each row represents a record, and each column represents an attribute with a defined data type. The logical model describes how data is organized independently of the storage devices, servers, or cloud infrastructure that run the database.

Keys make records identifiable and relationships explicit. A primary key uniquely identifies each row, while a foreign key references a primary or other unique key in a related table. For example, an Orders table can contain a customer_id that references Customers. An OrderItems table can connect orders to products and store quantities and purchase prices. When supported and enforced by the database engine, foreign key constraints prevent invalid references, such as an order that points to a nonexistent customer.

SQL is the usual language for working with relational databases. Engineers use it to define schemas, insert and update records, filter results, join tables, and calculate aggregates. A customer-service application might join Customers and Orders to display purchase history, while a finance report groups orders by month to calculate revenue. SQL and the relational model are closely associated but are not identical: some nonrelational systems also support SQL-like queries, and SQL tables do not exactly reproduce every mathematical property of relations.

Relational database systems commonly support ACID transactions: atomicity, consistency, isolation, and durability. During checkout, a transaction can create an order and update inventory as one unit, so a failure does not leave only part of the operation committed. These guarantees depend on engine capabilities, transaction boundaries, isolation settings, and appropriate application logic. A relational schema alone does not automatically make every business operation correct.

In the cloud, managed relational services retain the table-and-key model while handling infrastructure tasks such as provisioning, backups, and maintenance. Amazon RDS provides managed relational database engines, and Amazon Aurora is a managed relational database compatible with MySQL or PostgreSQL. For AWS Cloud Practitioner questions, both are relational database choices. Amazon DynamoDB, in contrast, is a nonrelational key-value and document database, even though it also uses the term table.

Schema design involves trade-offs. Normalization separates facts into appropriate tables to reduce duplication and update anomalies. However, retrieving data across many tables can require expensive joins. Selective denormalization can simplify frequent reads but introduces duplicated values that must remain consistent. Indexes improve selected queries but consume storage and add work to inserts, updates, and deletes. Schema changes also require planning to avoid disrupting running applications.

Relational databases are not limited to small workloads or a single server. Depending on the engine and service, they can use larger instances, read replicas, partitioning, or distributed architectures. Nevertheless, scaling writes and coordinating transactions across nodes can be more complex than scaling reads. High availability, backup recovery, and read scaling are separate concerns: a standby is not necessarily a read replica, and replication does not replace backups. Choose the relational model for its fit with relationships, integrity requirements, and query patterns, rather than assuming every structured dataset requires it.

Key aspects of Relational Data Model

The relational model combines structured tables, keys, relationships, and integrity rules, typically implemented with SQL queries and transactional database engines.

Tables and defined attributes

Data is organized into tables whose columns have defined types and meanings. Use suitable types and constraints to reject invalid values before they become application defects.

Keys and relationships

Primary keys identify records, while foreign keys express references between tables. Enforced referential integrity helps prevent orphaned records and supports dependable joins.

Declarative queries and joins

SQL lets engineers describe the results they need without specifying each storage access operation. Joins combine related records, while filters and aggregates support both application requests and reporting.

Integrity constraints

Unique, not-null, check, and foreign key constraints can encode rules directly in the database. Available constraint types and enforcement behavior vary by engine, so verify them rather than relying only on schema declarations.

Normalization and redundancy control

Normalization stores facts in appropriate tables to reduce duplication and inconsistent updates. Denormalization is a deliberate trade-off when measured read requirements justify additional consistency work.

Transactional implementations

Relational database engines commonly provide ACID transactions for related changes that must succeed or fail together. Engineers must still choose transaction boundaries and isolation settings that satisfy application requirements.

Cloud services for Relational Data Model

Amazon RDS and Amazon Aurora are common choices for transactional applications that store related business records and query them with SQL. Aurora is available through RDS; it is an engine choice rather than a separate database layer that every RDS deployment needs. Amazon Redshift can complement an operational relational database by holding data prepared for analytical queries. Data pipelines can copy or transform operational records into warehouse tables, keeping large reporting workloads separate from application transactions. Across these services, engineers must design schemas and account for differences in SQL compatibility, transaction behavior, and constraint enforcement.

Amazon RDS image Amazon RDS

Amazon RDS manages relational database engines such as PostgreSQL and MySQL, with capabilities for backups, maintenance, and availability. Engineers remain responsible for schema design, queries, access controls, and selecting appropriate deployment options.

Open Amazon RDS →
Amazon Aurora image Amazon Aurora

Amazon Aurora is a managed relational database engine compatible with MySQL or PostgreSQL and available through Amazon RDS. It applies the relational model through tables, SQL, relationships, and transactions, with a cloud-oriented distributed storage architecture.

Open Amazon Aurora →
Amazon Redshift image Amazon Redshift

Amazon Redshift is a relational data warehouse designed for analytical SQL queries over large datasets rather than typical transactional application traffic. Primary key and foreign key declarations are informational rather than enforced, so data-loading processes must maintain those relationships.

Open Amazon Redshift →