RDS engines, endpoints and subnet groups
A database without managing its host
Amazon RDS runs relational database engines as a managed service. A relational database stores related records in tables; SQL lets applications retrieve or change those records. Imagine a bookstore that must preserve orders and stock counts together. A transaction can make the order and stock change succeed together or roll back together. RDS manages many host-level tasks, such as backup scheduling and engine maintenance. You still own the schema, queries, access rules, recovery objectives and workload sizing. Managed does not mean maintenance-free.
Select the engine before selecting capacity
Examples of RDS engines include PostgreSQL, MySQL, MariaDB, Oracle, SQL Server and Db2. Aurora offers MySQL-compatible and PostgreSQL-compatible editions with a different storage architecture. Compatibility does not guarantee every extension, SQL feature or version is available. Start with application driver, required extensions, licensing, transaction semantics and supported upgrade paths. Then choose a supported engine version, instance class (CPU and memory), storage type and capacity. A DB instance provides compute for an engine; a DB cluster groups instances and storage according to its deployment architecture. Confirm exact engine, Region, class and version combinations before any deployment.
Private networking and database endpoints
An endpoint is a DNS name used by a client to connect; it is not the database password or a fixed IP address. A DB subnet group describes the subnets in which RDS can place network interfaces. For a normal regional RDS setup plan subnets in at least two Availability Zones (AZs); cluster deployments may need more. A subnet group does not grant access. Keep the database non-public, use private subnets, and allow its database port only from the application security group. The application still needs an appropriate route, valid database credentials and database permissions. For PostgreSQL the conventional port is 5432, but the configured port is authoritative.
A fictional connection plan
The diagram below is a design worksheet, not an actual AWS resource. The app uses a private DNS endpoint and a restricted database role. A TLS client verifies the certificate and hostname using the appropriate RDS trust bundle. Encryption at rest with AWS KMS protects stored data separately from TLS in transit. Use a secret manager or supported temporary database authentication; never put passwords in source code or logs. IAM permissions for managing RDS are not automatically SQL permissions inside the database.
Region: us-east-1 (illustrative, not provisioned)app-sg -> db-sg : TCP 5432DB subnet group: private-a, private-bPublic access: NoDatabase endpoint: orders.example.com (fictional)Configuration and first diagnostic checks
A parameter group contains engine settings, such as connection-related configuration. Some changes take effect dynamically; others require a restart. An option group enables additional engine-specific features where supported. Neither is a network firewall. If the application times out, inspect routing, security groups, DNS and endpoint configuration; if authentication fails, inspect the database identity and secret rotation. Do not fix either problem by opening the database to the internet or disabling TLS verification. Record the engine version and parameter family before changes. Practice: draw separate network, authentication and SQL permission gates for the bookstore, and explain which gate rejects an app using an expired password.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
RDS engines, endpoints and subnet groups — knowledge check
Apply relational database architecture concepts to fictional workloads.
A team moves PostgreSQL from EC2 to RDS. Which task still belongs to the team?
A DB subnet group includes private subnets. What does it establish?
Only the bookstore application should connect on TCP 5432. Which inbound rule fits?
The application reaches the database but its password is rejected. What should you check first?
A change to a parameter group has pending-reboot status. What should the team do?