Ravindra BagaleCourses & study guides Track your progress

AWS Cloud

Amazon RDS Interview Questions and Answers: Backups, Multi-AZ, Read Replicas, Encryption and Troubleshooting (50 Questions)

This page has 50 new interview questions only on Amazon RDS, with full answers. It goes deeper than the general database page: storage, failover, backups, encryption, connections and real production problems.

1. An everyday example: a managed apartment

Why do interviewers ask so much about RDS?

Almost every web application stores its data in a relational database such as MySQL or PostgreSQL. When the database is slow, full or down, the whole business stops. So interviewers check if you can run RDS safely, restore it, and fix it under pressure.

What is RDS?

Think of renting a managed apartment. You decide how big it is and what furniture goes inside (engine, size, schema and data). The building company handles the lift, the plumbing, the security guard and the backup generator (hardware, patching, backups and failover). You still lock your own door (users, passwords and network rules).

How to use this page

  • Learn the fresher answers first: engines, endpoints, backups and Multi-AZ.
  • For mid-level answers, practise the CLI commands in a test account with a small instance and delete it afterwards.
  • For senior answers, always say what you check first, what you change, and how you prevent it next time.

2. Fresher level questions

Start here if you are a fresher or have less than two years of experience. Try to answer each question aloud first. Then open it and compare.

Q1. Which database engines can you run on Amazon RDS? Fresher

Amazon RDS supports these engines: MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server and IBM Db2. Amazon Aurora (MySQL-compatible and PostgreSQL-compatible) is also created from the RDS console.

Why it matters: the engine decides licensing, features and cost. MySQL, PostgreSQL and MariaDB are open source, so you pay only for AWS resources. Oracle, SQL Server and Db2 have license options, such as license included or bring your own license, depending on the engine and edition.

Everyday example: a shop chooses PostgreSQL for a new product because the team knows it and there is no license cost, but keeps SQL Server for an old billing system that depends on its features.

Q2. What do the letters in an RDS instance class like db.r7g.large mean? Fresher
  • db: it is an RDS database instance class.
  • r: the family. r is memory optimised, m is general purpose, t is burstable.
  • 7: the generation. Newer generations usually give better price and performance.
  • g: AWS Graviton (Arm) processor. Classes without g, such as db.m6i, use Intel or AMD.
  • large: the size inside the family.

Example: a reporting database with large working sets uses a db.r class, so more data fits in memory. A small dev database can use a db.t4g.micro or small burstable class.

Q3. What storage types can you choose for an RDS instance? Fresher
  • General Purpose SSD gp3: you set storage size, IOPS and throughput separately. This is the common default choice.
  • General Purpose SSD gp2: older type. IOPS grow with the volume size, with burst credits for small volumes.
  • Provisioned IOPS SSD (io1 and io2 Block Express): for databases that need high, steady IOPS and low latency.
  • Magnetic: a legacy type kept only for old instances. Do not use it for new work.

Everyday example: gp3 is like a normal car you can tune. io2 is a race car you pay more for because you need guaranteed speed.

Q4. What is the difference between an RDS automated backup and a manual snapshot? Fresher

Automated backups are turned on by setting a retention period from 1 to 35 days. RDS takes a daily snapshot in the backup window and also saves transaction logs. This allows point-in-time restore.

A manual snapshot is taken when you ask for it. It stays until you delete it, even if you delete the database.

Example: you keep 7 days of automated backups for daily safety, and you take a manual snapshot before every major upgrade, so you can go back to that exact moment.

Q5. What is point-in-time restore (PITR) in RDS? Fresher

PITR lets you restore a database to any second within the backup retention period, up to the latest restorable time. The latest restorable time is usually within the last five minutes.

RDS uses the daily snapshot and then replays the saved transaction logs to reach the exact time you choose.

Everyday example: someone deleted all orders at 14:05. You restore to 14:04, so you get the data just before the mistake.

The restore creates a new DB instance with a new endpoint. The original stays as it is.

Q6. Why does an RDS restore create a new instance instead of fixing the old one? Fresher

RDS never overwrites an existing database during a restore. It always builds a new DB instance from the snapshot or backup.

Why: it is safer. You can check the restored data first, while the old database keeps running.

After the restore you can:

  • Point the application to the new endpoint.
  • Or rename the old instance and give the new instance the old name, so the endpoint name stays the same.
  • Or copy only the lost rows from the restored instance back into the original.
Q7. What does Multi-AZ mean for an RDS DB instance? Fresher

Multi-AZ means RDS keeps a standby copy of your database in a different Availability Zone and copies every write to it synchronously.

If the primary has a problem, for example a hardware failure or an AZ outage, RDS fails over to the standby automatically. The DNS name of the endpoint then points to the new primary.

Everyday example: a hospital keeps a fully ready backup operating room in another building. If the first room has a power cut, the surgery continues next door.

Multi-AZ is about availability, not about reading more data.

Q8. What is an RDS read replica? Fresher

A read replica is a copy of the database that receives changes from the primary asynchronously and serves read-only queries.

Why: to move read traffic, such as reports and search pages, away from the primary, so writes stay fast.

Facts to remember:

  • It has its own endpoint. The application must send reads to it.
  • Data can lag behind the primary by a few seconds or more.
  • It can be in the same Region or another Region.
  • It can be promoted to become a standalone database.
Q9. What is an RDS option group? Fresher

An option group turns on extra engine features that are not plain parameters.

Examples: Oracle Transparent Data Encryption (TDE) or Oracle APEX, native backup and restore to S3 for SQL Server, and some plugins for MySQL or MariaDB.

Default option groups exist but cannot be changed. You create your own option group, add options, and attach it to the instance.

Some options are permanent or persistent, which means you cannot easily remove them later, so add them carefully.

Q10. What happens when you stop an RDS instance? Fresher

Stopping an instance pauses it. You stop paying for instance hours, but you still pay for storage and backups.

Important: an RDS instance can stay stopped for only up to 7 days. After that, RDS starts it again automatically, so it can apply required maintenance.

Example: a test database used only during office hours can be stopped at night with a scheduled script. For long pauses, take a snapshot and delete the instance instead.

Q11. What is deletion protection in RDS? Fresher

Deletion protection is a setting that blocks anyone from deleting the DB instance until the setting is turned off first.

Why: it stops a tired engineer, a bad script or a wrong IaC change from removing the production database in one click.

Check it with the CLI:

aws rds describe-db-instances --db-instance-identifier shop-prod-db --query "DBInstances[0].DeletionProtection"

Output:

true

deletion protection is on. A delete call will fail until someone deliberately modifies this setting to false.

Q12. What is the RDS maintenance window used for? Fresher

The maintenance window is a weekly time slot, at least 30 minutes long, when RDS may apply pending changes such as operating system patches, minor engine upgrades (if auto minor version upgrade is on) and changes you scheduled for "next maintenance window".

Pick a low-traffic time, such as Sunday 02:00 in your users' time zone.

With Multi-AZ, RDS usually patches the standby first and then fails over, which reduces downtime to a short failover.

You can see pending actions with aws rds describe-pending-maintenance-actions.

Q13. Which port does each RDS engine use by default? Fresher
  • MySQL and MariaDB: 3306
  • PostgreSQL: 5432
  • SQL Server: 1433
  • Oracle: 1521
  • Db2: 50000

You can choose a different port when you create the instance. The security group must allow the port that the database really uses.

Interview tip: if a connection times out, the first thing to check is whether the security group allows this port from the application's security group.

Q14. What does the "Publicly accessible" setting do on an RDS instance? Fresher

If it is Yes, the endpoint resolves to a public IP address from outside the VPC, so the database can be reached from the internet, if the subnet routes and security group also allow it.

If it is No, the endpoint resolves only to a private IP address, and only resources inside the VPC or connected networks can reach it.

Best practice: keep production databases not publicly accessible, in private subnets. Admins connect through Session Manager port forwarding, a VPN or a bastion host.

Q15. What CloudWatch metrics would you watch first on an RDS instance? Fresher
  • CPUUtilization: is the instance too busy?
  • FreeableMemory and SwapUsage: is memory running out?
  • FreeStorageSpace: will the disk become full?
  • DatabaseConnections: are connections near the limit?
  • ReadIOPS, WriteIOPS, ReadLatency and WriteLatency: is storage the bottleneck?
  • ReplicaLag: for read replicas.

Set alarms on FreeStorageSpace, CPU, connections and replica lag, and send them to an SNS topic for the on-call team.

Q16. How do you see an RDS instance's database logs without logging into a server? Fresher

You cannot log in to the operating system of a normal RDS instance. Instead:

  • Read logs in the console under Logs and events.
  • Download them with the CLI.
  • Or publish them to CloudWatch Logs, for example the PostgreSQL log, or the MySQL error, slow query and general logs.
aws rds describe-db-log-files --db-instance-identifier shop-prod-db --query "DescribeDBLogFiles[-3:].LogFileName" --output text

Output:

error/postgresql.log.2026-11-20-08  error/postgresql.log.2026-11-20-09  error/postgresql.log.2026-11-20-10

These are the three newest PostgreSQL log files. Publishing to CloudWatch Logs is better for search, alarms and long retention.

Q17. What is RDS Custom? Fresher

RDS Custom is a version of RDS for Oracle and SQL Server where you get access to the operating system and database environment.

Why: some legacy applications need special OS packages, custom patches or settings that normal RDS does not allow.

You keep most automation, such as backups, but you also take more responsibility. If you change things that RDS Custom needs, it can move into an unsupported state.

Use normal RDS when you can, and RDS Custom only when the application really needs OS-level access.

3. Mid level questions

These questions check how you use the service in real projects. Interviewers expect the why, the how and one real example.

Q18. How does RDS storage autoscaling work? Mid level

You turn on storage autoscaling and set a maximum storage threshold. When free space gets low, RDS grows the storage automatically without downtime.

In current documentation, RDS scales when free space is below 10% of allocated storage for at least five minutes, and at least six hours have passed since the last storage change. Treat these numbers as "current behaviour".

Remember:

  • Storage can grow automatically but never shrinks automatically.
  • The maximum threshold protects your bill.
  • Still alarm on FreeStorageSpace, because a sudden huge write can fill the disk faster than autoscaling can react.
Q19. Why can't you immediately change RDS storage again after a modification? Mid level

After you change storage size, type, IOPS or throughput, RDS runs a storage optimisation process in the background.

During this time, and for at least six hours after the last storage change, you cannot modify storage again.

The database stays available, but performance may change slightly while optimisation runs.

Interview lesson: plan storage changes ahead. If a disk is nearly full, do not make many small increases. Make one sensible increase and turn on storage autoscaling.

Q20. How do Multi-AZ DB instance and Multi-AZ DB cluster deployments differ in failover and reads? Mid level

Multi-AZ DB instance: one primary and one standby in another AZ. The standby cannot serve reads. Failover usually takes about one to two minutes.

Multi-AZ DB cluster: one writer and two readable standby instances in three AZs. It uses semi-synchronous replication. Failover is usually faster, often under about 35 seconds according to AWS. It also gives a reader endpoint for read traffic.

Multi-AZ DB clusters are available for MySQL and PostgreSQL, on supported versions and instance classes.

Choose the cluster when you need faster failover and some read scaling, and the engine supports it.

Q21. What actually happens during an RDS Multi-AZ failover? Mid level
  • RDS detects a problem, such as loss of the primary host, an AZ problem, or a manual reboot with failover.
  • The standby is promoted to primary.
  • The endpoint's DNS record (a CNAME) is changed to point to the new primary.
  • Open connections are dropped. Applications must reconnect.
  • RDS creates a new standby in the background.

RDS records an event, so you can see the reason. Applications should use the endpoint name, reconnect with retries, and not cache DNS for a long time.

Q22. Why can an application stay down after RDS failover even though RDS is healthy again? Mid level

The most common reason is DNS caching. The application still sends traffic to the old IP address of the failed primary.

Examples:

  • A Java application with a long or infinite DNS cache (networkaddress.cache.ttl).
  • A connection pool that keeps broken connections and never validates them.
  • A hard-coded IP address in a config file.

Fix: use the endpoint name, set a low DNS TTL in the runtime (for example 5 to 30 seconds), enable connection validation in the pool, and add retries. RDS Proxy can also hide most of this from the application.

Q23. How do you test RDS failover safely? Mid level

Run a controlled reboot with failover in a test or staging environment first.

aws rds reboot-db-instance --db-instance-identifier shop-stg-db --force-failover --query "DBInstance.DBInstanceStatus"

Output:

"rebooting"

RDS starts a failover to the standby. Watch the application: how long did errors last, did it reconnect, did any job fail?

Then check RDS events for the start and end of the failover. Repeat in production only during an approved window, because connections will drop.

Q24. How many read replicas can an RDS instance have, and can a replica have its own replica? Mid level

For RDS for MySQL, MariaDB and PostgreSQL, current documentation allows up to 15 read replicas per source instance. Oracle and SQL Server have lower limits and extra rules, so check the documentation for those engines.

Cascading replicas are possible on some engines, such as MySQL, MariaDB and PostgreSQL. This means a replica can have its own replicas.

Why it matters: cascading reduces load on the primary, but it adds more replication lag at each level.

Automated backups must be turned on for the source before you create replicas.

Q25. How do you create a cross-Region read replica and what is it used for? Mid level

Uses: disaster recovery in another Region, and faster reads for users near that Region.

aws rds create-db-instance-read-replica --db-instance-identifier shop-db-replica-sg --source-db-instance-identifier arn:aws:rds:ap-south-1:111122223333:db:shop-prod-db --region ap-southeast-1 --kms-key-id alias/shop-rds-sg

Output:

"DBInstanceStatus": "creating"

RDS is building a replica in Singapore from the Mumbai database. Because the source is encrypted, you give a KMS key that exists in the destination Region.

Remember: you pay for data transfer between Regions, and lag can be higher than with a same-Region replica.

Q26. What happens when you promote an RDS read replica? Mid level

Promotion turns the replica into a normal, standalone DB instance that accepts writes.

  • Replication from the old source stops permanently. You cannot attach it back as a replica.
  • The instance keeps its own endpoint name.
  • You should turn on automated backups and Multi-AZ if needed, because the new primary must be protected.

Uses: disaster recovery to another Region, or splitting a large database for a new application.

Before promoting, check ReplicaLag so you know how much data might be missing.

Q27. What is the difference between static and dynamic parameters in an RDS parameter group? Mid level

Dynamic parameters take effect immediately (or according to the apply method you choose) without a reboot. Example: slow query settings in MySQL.

Static parameters need a reboot. Until then, the instance shows the parameter group status "pending-reboot". Example: shared_buffers in PostgreSQL.

aws rds describe-db-instances --db-instance-identifier shop-prod-db --query "DBInstances[0].DBParameterGroups"

Output:

[ { "DBParameterGroupName": "shop-pg16", "ParameterApplyStatus": "pending-reboot" } ]

A static change is waiting. Plan a reboot in a quiet window, ideally with Multi-AZ to keep it short.

Q28. How do you copy and share an RDS snapshot with another AWS account? Mid level

For an unencrypted snapshot: modify the snapshot attributes to add the other account ID. That account can then copy or restore it.

For an encrypted snapshot:

  • It must be encrypted with a customer managed KMS key, not the default aws/rds key.
  • Add the other account to the KMS key policy so it can use the key.
  • Share the snapshot. The other account copies it and re-encrypts with its own key.

Example: the security team keeps an isolated backup account. Production shares weekly snapshots there, so a compromised production account cannot delete every copy.

Q29. How do you replicate RDS automated backups to another Region? Mid level

RDS supports cross-Region automated backup replication for many engines. You turn it on for the source instance and choose the destination Region and retention.

RDS then copies snapshots and transaction logs, so you can do point-in-time restore in the other Region.

Why: if the whole primary Region has a problem, you can still restore recent data elsewhere.

Compare with a cross-Region read replica: the replica is a running database (faster recovery, higher cost). Backup replication is cheaper but needs a full restore (slower recovery).

Q30. How do you require SSL/TLS connections to an RDS database? Mid level

Set the engine parameter that forces encrypted connections:

  • PostgreSQL: set rds.force_ssl to 1.
  • MySQL and MariaDB: set require_secure_transport to ON.
  • SQL Server: set rds.force_ssl to 1 (needs a reboot).

Clients should also verify the server certificate using the RDS certificate bundle, not just "encrypt without checking".

Example for psql: sslmode=verify-full with the downloaded CA bundle.

Also plan certificate authority rotations: RDS shows when a new CA is needed, and clients must trust it before you switch.

Q31. How does IAM database authentication work in RDS? Mid level

Instead of a stored password, the application asks AWS for a short-lived authentication token and uses it as the password.

  • Supported for MySQL, MariaDB and PostgreSQL.
  • The token is valid for 15 minutes for new connections.
  • The IAM role needs the rds-db:connect permission for that database user.
  • The connection must use SSL.
aws rds generate-db-auth-token --hostname shop-prod-db.abc123xyz.ap-south-1.rds.amazonaws.com --port 5432 --username app_reader

Output:

shop-prod-db.abc123xyz.ap-south-1.rds.amazonaws.com:5432/?Action=connect&DBUser=app_reader&X-Amz-...

This long string is the temporary password. AWS recommends IAM auth when the rate of new connections is moderate, because token checks add overhead.

Q32. What problem does RDS Proxy solve for applications with many short connections? Mid level

Each new database connection costs memory and CPU on the database. Apps with many short-lived clients, such as Lambda functions, can open thousands of connections and exhaust the database.

RDS Proxy keeps a pool of connections to the database and shares them between many clients.

Other benefits:

  • During failover, the proxy keeps client connections open and reconnects to the new primary, so the outage feels shorter.
  • It can read credentials from Secrets Manager and support IAM authentication for clients.

Remember: the proxy runs inside your VPC, and some session features, such as certain session variables, can "pin" a client to one connection and reduce pooling.

Q33. What is Enhanced Monitoring and how is it different from CloudWatch metrics? Mid level

Standard CloudWatch RDS metrics come from the hypervisor, usually at one-minute granularity.

Enhanced Monitoring uses an agent on the instance to collect operating system metrics, such as CPU per process, memory, swap and file system usage, at intervals down to one second.

The data goes to CloudWatch Logs (log group RDSOSMetrics).

Use case: CloudWatch shows 90% CPU, and Enhanced Monitoring shows that one process, for example a vacuum or backup, is using it.

It needs an IAM monitoring role and costs a little for the log data.

Q34. What replaced the Performance Insights dashboard for analysing RDS database load? Mid level

AWS moved Performance Insights users to CloudWatch Database Insights. The Performance Insights console experience reached end of life in 2026, and the console now redirects to Database Insights. The Performance Insights API still exists.

Database Insights has two modes:

  • Standard mode: database load by waits, SQL statements, users and hosts, with 7 days free and paid longer retention.
  • Advanced mode: extra features such as fleet views and, for supported engines, execution plans and on-demand analysis.

In an interview, explain the idea: "database load" shows how many sessions are active and what they wait for, so you find the top SQL and the main wait, such as CPU or I/O.

Q35. How do RDS Blue/Green Deployments work? Mid level

A blue/green deployment creates a staging (green) copy of your production (blue) database and keeps it in sync using logical replication.

You make changes on green, such as a major version upgrade, a parameter change or a new instance class, and test them.

When ready, you switch over. RDS checks guardrails, stops writes briefly, waits for green to catch up, and renames the green instances to the blue names, so the application keeps the same endpoints.

Current documentation describes switchover downtime as typically under a minute. It is supported for RDS for MySQL, MariaDB and PostgreSQL, and for Aurora, with some version limits.

4. Senior level and scenario questions

These questions check design thinking and troubleshooting. Think aloud. Say what you check first, what you change, and how you prevent it next time.

Q36. What should you check before a major engine version upgrade on RDS? Senior
  • Read the release notes for removed features and changed defaults.
  • Check extensions or plugins and their supported versions on the target.
  • Create a new parameter group for the new major version.
  • Take a manual snapshot first.
  • Test the upgrade on a restored copy and run the application test suite.
  • Check the upgrade path: some versions need an intermediate step.
  • Plan downtime, or use blue/green deployments to reduce it.

Also note that old major versions can move to RDS Extended Support, which has extra charges, so upgrades also save money.

Q37. An engineer ran a DELETE without a WHERE clause on the production RDS database at 10:42. How do you recover? Senior

Stay calm and act in order.

  • Stop the damage: pause the jobs or app features that write to that table, if possible.
  • Find the exact time from the application logs or database logs, for example 10:42:17.
  • Run a point-in-time restore to a new instance at 10:42:00.
  • Verify the table in the restored instance.
  • Copy only the missing rows back to production with a careful script, because other tables changed after 10:42 and must not be lost.
  • Delete the temporary instance when done.

Prevention: least-privilege users, change review for manual SQL, and tested restores.

Q38. You must encrypt a large unencrypted production RDS instance. How do you do it with minimal downtime? Senior

You cannot turn on encryption for an existing instance in place. The simple method is: snapshot, copy the snapshot with encryption, restore. But the restore can take time, and data written after the snapshot is missing.

For minimal downtime:

  • Create an encrypted copy (snapshot copy with a KMS key, then restore).
  • Keep it in sync with the source using AWS DMS change data capture, or native replication where the engine supports it.
  • At cutover, stop writes, let replication catch up, switch the application endpoint, and test.
  • Keep the old instance for a short rollback period, then delete it with a final snapshot.
Q39. An RDS instance went into the storage-full state. What do you do now and what do you change later? Senior

Now:

  • When storage is full, the database cannot accept writes. Increase allocated storage immediately with modify-db-instance and apply immediately.
  • Find what filled it: large tables, temporary files from a big query, binary logs or a long-running transaction holding WAL on PostgreSQL, or an inactive logical replication slot.

Later:

  • Turn on storage autoscaling with a sensible maximum.
  • Alarm on FreeStorageSpace at 20% and 10%.
  • Archive old data, add retention to log tables, and clean up unused replication slots.
Q40. Read traffic is growing fast on a single RDS PostgreSQL instance. What options do you compare? Senior
  • Query tuning and indexes first: often the cheapest win.
  • Caching hot data in ElastiCache, so many reads never reach the database.
  • Read replicas, and send read-only traffic to them through the application or a proxy layer. Accept some replication lag.
  • A larger instance class, or a memory-optimised class if the working set does not fit in memory.
  • Multi-AZ DB cluster for two readable standbys plus fast failover.
  • Moving to Aurora if you need many low-lag replicas and fast storage.

Explain the trade-off of each: cost, lag, and code changes.

Q41. Users report errors for two minutes every Sunday at 02:00. How do you investigate an RDS cause? Senior

Sunday at 02:00 looks like a schedule.

  • Check the maintenance window and the RDS event history for that time: patching, a minor version upgrade, or a pending reboot being applied.
  • Check the backup window: on single-AZ instances, the backup snapshot can cause I/O pressure.
  • Check for scheduled jobs, such as vacuum, index rebuilds or batch reports.

Fixes: move windows to a time with fewer users, use Multi-AZ so patching happens with a short failover, make the application retry and reconnect, and spread heavy jobs out.

Q42. How would you design RDS for a payment service that needs high availability and low data loss? Senior
  • Multi-AZ (instance or DB cluster) in private subnets across AZs.
  • Automated backups with 35-day retention, cross-Region backup replication, and manual snapshots before releases.
  • A cross-Region read replica for disaster recovery if the RTO needs it.
  • Encryption at rest with a customer managed KMS key, and TLS required for all connections.
  • Secrets in Secrets Manager with rotation, or IAM authentication.
  • RDS Proxy for connection pooling and faster failover handling.
  • Deletion protection, alarms, Database Insights, and regular restore and failover tests.

State the expected RTO and RPO for each failure type.

Q43. Replica lag on an RDS read replica jumps every night during a batch job. What do you do? Senior
  • Confirm the pattern with the ReplicaLag metric and the batch schedule.
  • Check whether the replica is under-sized compared with the primary. Replicas apply changes with fewer threads, so a smaller replica falls behind.
  • Look at the batch: very large transactions replicate as one big unit and cause lag spikes.

Fixes: break the batch into smaller transactions, use the same or larger instance class for the replica, use faster storage, tune replica-side parallel apply where the engine supports it, and make the application read from the primary for data that must be fresh during the batch window.

Q44. The application cannot connect to a new RDS instance. Give a step-by-step checklist. Senior
  • DNS: does the endpoint resolve, and to a private or public IP?
nc -zv shop-prod-db.abc123xyz.ap-south-1.rds.amazonaws.com 5432

Output:

nc: connect to shop-prod-db.abc123xyz.ap-south-1.rds.amazonaws.com port 5432 (tcp) timed out: Operation now in progress

A timeout means a network block, not a wrong password. Check:

  • The RDS security group allows the port from the app's security group.
  • The app is in the same VPC or has a route (peering, Transit Gateway, VPN).
  • NACLs on both subnets allow the port and ephemeral return ports.
  • For access from outside, Publicly accessible is Yes and the subnet routes to an internet gateway.

If the connection is refused or you see an authentication error instead, the network works and you check users, passwords, SSL and pg_hba-like settings.

Q45. How do you reduce the cost of an RDS fleet without hurting reliability? Senior
  • Right-size with Database Insights and CloudWatch: many instances are oversized.
  • Move to Graviton instance classes where the engine supports them.
  • Move gp2 to gp3 and set only the IOPS you need.
  • Buy Reserved Instances for steady production databases.
  • Stop or schedule dev and test databases, and delete old manual snapshots that are no longer required.
  • Upgrade old major versions to avoid Extended Support charges.
  • Remove unused read replicas.

Keep Multi-AZ for production. Cutting it saves money but increases risk, so get business sign-off.

Q46. How would you migrate a self-managed MySQL database on EC2 to RDS with little downtime? Senior
  • Create the RDS instance with the same major version, parameter values and character set.
  • Load the initial data: use a native dump or a physical backup method supported by RDS, or AWS DMS full load for smaller databases.
  • Set up ongoing replication: MySQL binary log replication into RDS, or DMS change data capture.
  • Validate row counts and checksums, and test the application against RDS.
  • At cutover: stop writes, wait for zero lag, change the connection string or DNS name, and start the app.
  • Keep the old server read-only for a short rollback window.
Q47. A SQL Server or Oracle RDS instance must meet a strict licence and audit review. What do you prepare? Senior
  • Licensing model: license included or bring your own license, edition and instance class (vCPU count affects licence cost).
  • Audit logging: native auditing options turned on and logs exported to CloudWatch Logs or S3 with retention.
  • Encryption: storage encryption with KMS, TLS for connections, and engine-level encryption options where required (for example through option groups).
  • Access: who has the master user, IAM policies for RDS APIs, and CloudTrail for API calls.
  • Backups and retention matching the policy, with proof of a recent restore test.

Prepare evidence as screenshots or Config rules, not only statements.

Q48. How do you use RDS event subscriptions in operations? Senior

An event subscription sends RDS events to an SNS topic. You can filter by source type (instance, snapshot, parameter group, security group) and by category, such as failover, failure, maintenance, notification or backup.

Example uses:

  • Page on-call for failover and failure events.
  • Post maintenance and backup events to a team chat channel through SNS and a webhook.
  • Trigger automation, such as a Lambda function that records the failover time.

For broader automation, the same events also arrive in Amazon EventBridge, where you can route them with rules.

Q49. Your company wants zero manual RDS settings in production. How do you manage RDS as code safely? Senior
  • Define instances, parameter groups, option groups, subnet groups and security groups in CloudFormation, CDK or Terraform.
  • Set DeletionPolicy and UpdateReplacePolicy to Snapshot, plus deletion protection on the instance.
  • Review every change with a change set or plan. Fail the pipeline if the database would be replaced.
  • Use ManageMasterUserPassword so RDS stores the master password in Secrets Manager.
  • Apply risky changes, such as instance class or static parameters, in the next maintenance window unless urgent.
  • Detect manual changes with drift detection and AWS Config rules.
Q50. A busy RDS database shows high write latency. How do you decide between tuning gp3 and moving to io2? Senior

First prove that storage is the bottleneck.

  • Compare WriteIOPS and WriteThroughput with the IOPS and throughput you provisioned. If they sit at the limit, you are capped.
  • Look at DiskQueueDepth and WriteLatency. A long queue with high latency means requests are waiting for the disk.
  • Check Database Insights waits: I/O waits confirm it, CPU waits do not.

Options:

  • gp3: raise provisioned IOPS and throughput. This is often enough and cheaper.
  • io2 Block Express: choose it for very high, steady IOPS and the most consistent low latency, such as a large OLTP system.
  • Also reduce I/O: better indexes, larger memory class so more data is cached, and smaller transactions.

Remember the six-hour storage modification rule, so plan the change once.

5. Frequently asked questions

Do I need to know every RDS engine?

No. Know one engine well, usually MySQL or PostgreSQL, and know the general RDS features that work the same for all engines: backups, Multi-AZ, replicas, parameter groups and monitoring.

Is Aurora part of RDS?

Aurora is managed through the RDS console and APIs, but it has a different storage design. This page focuses on RDS for MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and Db2. Aurora has its own questions on the first database page.

Some numbers change. What should I say?

Say "at the time of writing" or "the current default is", then explain the idea. Interviewers value the reason more than the exact number, and AWS updates limits often.

6. Quick revision

  • Multi-AZ is for availability. Read replicas are for read scaling. Backups are for recovery.
  • A restore always creates a new DB instance with a new endpoint.
  • You cannot turn on encryption in place: snapshot, copy with encryption, restore.
  • Static parameters need a reboot. Dynamic ones apply immediately.
  • Most "cannot connect" problems are security groups, subnets, public access or DNS.

This page is one part of a 1000-question AWS interview set. Open the full list here: All 1000 AWS interview questions.