Ravindra BagaleCourses & study guides Track your progress

AWS Cloud

Amazon Aurora and Redshift Interview Questions: Deep Dive with CLI, Scaling and Performance (50 Questions)

This page has 50 interview questions on Amazon Aurora (the cloud-native relational database) and Amazon Redshift (the data warehouse), with full answers. The basics of both are in Sets 1 and 2. Here we go deeper into how they work, how you operate them from the CLI, and how you fix performance problems.

1. An everyday example: a shop counter and a warehouse

Why ask about Aurora and Redshift together?

Most companies run both: Aurora for live transactions (orders, payments) and Redshift for reports and analytics on large history. Interviewers want to see that you know which job each one does and how data moves between them.

Think of a busy shop. The counter (Aurora) handles each customer quickly, one sale at a time. The warehouse (Redshift) stores years of stock and sales and answers big questions like "what sold best in every city last year?". You would not run the counter from the warehouse, or plan the year from the counter.

How to use this page

  • Practise with a small Aurora Serverless v2 cluster and a Redshift Serverless workgroup in a test account.
  • Delete or scale them down after practice, because both cost money while running.
  • All names and IDs here are examples, such as account 111122223333.

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. How is Aurora storage different from normal RDS storage? Fresher
  • RDS (non-Aurora) uses EBS volumes attached to each DB instance. A Multi-AZ standby has its own copy.
  • Aurora uses a shared cluster volume. Data is stored as six copies across three Availability Zones, and all instances in the cluster (writer and readers) read the same volume.

Results:

  • Replicas do not need their own full copy, so adding a reader is fast and replica lag is usually low.
  • Storage grows automatically as data grows; you do not set a size.
  • The storage can lose some copies and keep working.
Q2. How do you list the instances in an Aurora cluster and see which one is the writer? Fresher
aws rds describe-db-clusters --db-cluster-identifier shop-aurora --query "DBClusters[].DBClusterMembers[].[DBInstanceIdentifier,IsClusterWriter,PromotionTier]" --output text

Output:

shop-aurora-1  True   1
shop-aurora-2  False  0
shop-aurora-3  False  1

shop-aurora-1 is the writer. If it fails, Aurora prefers shop-aurora-2 because it has the highest priority (tier 0 is the highest).

Q3. What are the cluster endpoint and reader endpoint in Aurora? Fresher
  • The cluster (writer) endpoint always points to the current writer instance. Use it for writes and for reads that must see the latest data.
  • The reader endpoint spreads connections across the Aurora Replicas. Use it for read-only traffic.
aws rds describe-db-clusters --db-cluster-identifier shop-aurora --query "DBClusters[].[Endpoint,ReaderEndpoint]" --output text

Output:

shop-aurora.cluster-abc123.ap-south-1.rds.amazonaws.com  shop-aurora.cluster-ro-abc123.ap-south-1.rds.amazonaws.com

After a failover, the cluster endpoint moves to the new writer, so apps that use it reconnect to the right instance.

Q4. What is Aurora cloning? Fresher

Cloning creates a new Aurora cluster that shares the same storage pages as the source at first. It uses copy-on-write: only pages that change in either cluster are copied.

Benefits:

  • Very fast, even for large databases, because no full copy is made at the start.
  • Low storage cost until data changes.

Uses: testing a schema migration on production-like data, giving analysts a copy, or debugging a production problem safely.

aws rds restore-db-cluster-to-point-in-time --source-db-cluster-identifier shop-aurora --db-cluster-identifier shop-clone --restore-type copy-on-write --use-latest-restorable-time

You then add an instance to the clone to use it.

Q5. What is Aurora Backtrack? Fresher

Backtrack rewinds an Aurora MySQL cluster to an earlier time, in place, without restoring from a backup.

  • You set a backtrack window (for example 24 hours) when you create or modify the cluster.
  • If someone runs a bad DELETE, you can rewind the cluster to just before it in minutes.
aws rds backtrack-db-cluster --db-cluster-identifier shop-aurora --backtrack-to 2026-11-20T10:25:00+05:30

Notes: it is for Aurora MySQL only, the whole cluster rewinds (not one table), and it causes a short interruption. PITR restore to a new cluster is the option for Aurora PostgreSQL.

Q6. How many Aurora Replicas can a cluster have, and how is replica lag usually? Fresher

An Aurora cluster can have up to 15 Aurora Replicas in one Region, plus the writer.

Because all instances share the same storage, replicas do not replay full data copies. Replica lag is usually very low (often tens of milliseconds), but it can grow under heavy write load.

Check lag with the AuroraReplicaLag CloudWatch metric. Reads from replicas can still be slightly behind, so read your own writes from the writer when it matters.

Q7. How do you add an Aurora Serverless v2 reader to an existing provisioned Aurora cluster? Fresher

First set the cluster's serverless scaling range, then add an instance with the db.serverless class.

aws rds modify-db-cluster --db-cluster-identifier shop-aurora --serverless-v2-scaling-configuration MinCapacity=0.5,MaxCapacity=16
aws rds create-db-instance --db-instance-identifier shop-aurora-sv2 --db-cluster-identifier shop-aurora --engine aurora-postgresql --db-instance-class db.serverless

The cluster now has a reader that scales between 0.5 and 16 ACUs, next to the provisioned writer.

This mixed setup is common: a provisioned writer for steady load and serverless readers for changing read traffic.

Q8. What is Amazon Redshift Serverless? Fresher

Redshift Serverless runs a data warehouse without managing clusters or nodes.

  • Data and objects live in a namespace; compute is a workgroup.
  • Capacity is measured in Redshift Processing Units (RPUs). You set a base capacity, and it scales for heavier queries.
  • You pay for compute when queries run (with a minimum per query time unit), plus storage.

Good for teams with irregular analytics, new projects, or when nobody wants to size clusters. Provisioned RA3 clusters suit steady, heavy use.

Q9. What does the Redshift COPY command do? Fresher

COPY loads data into a Redshift table from files in S3 (or other sources) in parallel across all compute slices.

Output:

COPY sales FROM 's3://shop-data-111122223333/sales/2026/11/'
IAM_ROLE 'arn:aws:iam::111122223333:role/redshift-load'
FORMAT AS PARQUET;

Redshift reads all files under that prefix using the role's permissions and loads them into sales.

It is much faster than INSERT statements. Split CSV data into several files of similar size so all slices work at once.

Q10. What does UNLOAD do in Redshift? Fresher

UNLOAD writes the result of a query to S3 files, in parallel.

Output:

UNLOAD ('SELECT city, SUM(amount) FROM sales GROUP BY city')
TO 's3://shop-reports-111122223333/city-sales/'
IAM_ROLE 'arn:aws:iam::111122223333:role/redshift-unload'
FORMAT AS PARQUET;

The results are saved as Parquet files that Athena, Spark or other tools can read.

Use it to share data with data lakes, or to archive old data out of the warehouse.

Q11. Why is Redshift fast for analytics compared with a normal relational database? Fresher
  • Columnar storage: queries read only the columns they need, not full rows.
  • Compression: similar values in a column compress well, so less data is read.
  • Massively parallel processing (MPP): work is split across many nodes and slices.
  • Zone maps and sort keys skip blocks that cannot match a filter.
  • Result caching and materialized views for repeated queries.

It is not built for many small single-row updates; that is Aurora's job.

Q12. What is the Redshift Data API? Fresher

The Data API lets you run SQL on Redshift through HTTPS API calls, without managing database connections or drivers.

aws redshift-data execute-statement --workgroup-name analytics --database dev --sql "SELECT COUNT(*) FROM sales"

Output:

{"Id": "d1e2f3a4-..."}
aws redshift-data get-statement-result --id d1e2f3a4-...

The query runs asynchronously, and you fetch the result with the ID.

Good for Lambda functions, scripts and event-driven jobs. Authentication uses IAM or Secrets Manager.

Q13. What are Redshift RA3 nodes and managed storage? Fresher

RA3 nodes separate compute from storage.

  • Data is stored in Redshift Managed Storage (backed by S3), and hot data is cached on fast local SSDs on the nodes.
  • You can size compute for query needs and storage grows independently.
  • RA3 is required for features such as data sharing across clusters.

Older node types (such as DC2) keep data on local disks, so you must add nodes when storage fills.

Q14. How do you pause and resume a provisioned Redshift cluster? Fresher
aws redshift pause-cluster --cluster-identifier analytics-prod
aws redshift resume-cluster --cluster-identifier analytics-prod

While paused, you pay only for storage, not compute.

Use it for clusters needed only in office hours or for monthly reports. You can schedule pause and resume. Redshift Serverless does not need this because it charges only when used.

Q15. What is a Redshift snapshot, and can you copy it to another Region? Fresher

A snapshot is a point-in-time backup of a cluster or namespace stored in S3 by Redshift.

  • Automated snapshots are taken regularly and kept for a retention period.
  • Manual snapshots stay until you delete them.
  • Cross-Region snapshot copy can be turned on so snapshots are copied to another Region for disaster recovery.
aws redshift enable-snapshot-copy --cluster-identifier analytics-prod --destination-region eu-west-1 --retention-period 7

For encrypted clusters, a snapshot copy grant (or key settings) is needed in the destination Region.

Q16. What is Babelfish for Aurora PostgreSQL? Fresher

Babelfish lets Aurora PostgreSQL understand Microsoft SQL Server's T-SQL language and network protocol (TDS).

  • Applications written for SQL Server can connect with their existing drivers and run many of their queries with fewer code changes.
  • The same database can also be used through the normal PostgreSQL port.

Use it to reduce the effort of moving off SQL Server licences. It does not support every SQL Server feature, so run the Babelfish compass assessment tool on your code first.

Q17. How do you see the most recent queries and their run time in Redshift? Fresher

Use system views (SYS views work for both provisioned and Serverless):

Output:

SELECT query_id, status, elapsed_time/1000000.0 AS seconds, LEFT(query_text, 60)
FROM sys_query_history
ORDER BY start_time DESC LIMIT 5;

You see the latest queries, whether they succeeded, and how long they took in seconds.

Use it to find slow queries before tuning them with EXPLAIN and table design changes.

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 Aurora decide which replica becomes the writer during failover? Mid level
  • It picks the replica with the highest priority (lowest tier number, 0 is highest).
  • If several replicas share the same tier, it picks the largest instance.
  • If they are the same size, it picks one of them.

Set tiers on purpose: give tier 0 to a replica that is the same size as the writer, so performance does not drop after failover. Put small reporting replicas in a low priority tier (such as 15) so they are not promoted.

Test it:

aws rds failover-db-cluster --db-cluster-identifier shop-aurora --target-db-instance-identifier shop-aurora-2
Q19. How do you send heavy reporting queries to specific Aurora readers only? Mid level

A custom endpoint points to a group of instances you choose, instead of all readers.

Example: three normal readers serve the app through the reader endpoint, and two larger readers serve analytics through a custom endpoint, so heavy reports do not slow down app reads.

aws rds create-db-cluster-endpoint --db-cluster-identifier shop-aurora --db-cluster-endpoint-identifier reports --endpoint-type READER --static-members shop-aurora-4 shop-aurora-5

connections to the reports endpoint go only to those two instances.

Q20. How does Aurora Replica auto scaling work? Mid level

Aurora uses Application Auto Scaling to add or remove Aurora Replicas based on a metric, such as average reader CPU or average connections.

aws application-autoscaling register-scalable-target --service-namespace rds --resource-id cluster:shop-aurora --scalable-dimension rds:cluster:ReadReplicaCount --min-capacity 1 --max-capacity 6

Then add a target tracking policy, for example RDSReaderAverageCPUUtilization at 60%.

replicas are added when readers are busy and removed when load drops. New replicas take some minutes to become available, so this suits gradual changes, not sudden spikes.

Q21. What is Aurora I/O-Optimized, and when do you choose it? Mid level

Aurora has two storage configurations:

  • Aurora Standard: you pay for storage and for each I/O request.
  • Aurora I/O-Optimized: no separate I/O charges, but higher instance and storage prices.

Choose I/O-Optimized when I/O charges are a large part of your Aurora bill (AWS guidance suggests checking whether I/O is more than about a quarter of Aurora spend). You can switch configurations, with limits on how often. Check the current pricing page for exact rates.

Q22. Which CloudWatch metrics show that an Aurora db.serverless instance has hit its ACU ceiling? Mid level

Key CloudWatch metrics:

  • ServerlessDatabaseCapacity: current ACUs.
  • ACUUtilization: how close the instance is to its maximum ACUs.
  • CPU, memory (FreeableMemory) and connections.

If ACUUtilization stays near 100%, the maximum is too low and queries slow down. If capacity is always at the minimum, you might lower it.

Note: the minimum ACU also affects how much memory is available for the buffer cache, so a very low minimum can make the first queries after quiet periods slow.

Q23. What is write forwarding in Aurora? Mid level

Write forwarding lets an application connected to a reader send write statements, which Aurora forwards to the writer.

  • Global Database write forwarding: secondary Regions forward writes to the primary Region.
  • Local write forwarding: readers in the same cluster forward writes to the writer.

Benefits: simpler apps that can use one connection for reads and occasional writes.

Watch out: forwarded writes have extra latency, and you must choose a read consistency setting (eventual, session or global) for reads after writes.

Q24. What is the difference between Aurora Global Database switchover and failover? Mid level
  • Switchover (planned, previously called managed planned failover): used for maintenance or Region rotation. Aurora syncs the secondary fully before changing roles, so there is no data loss (RPO zero).
  • Failover (unplanned): used when the primary Region has a problem. The secondary is promoted quickly, and some recent writes may be lost (RPO is the replication lag, usually about a second).
aws rds switchover-global-cluster --global-cluster-identifier shop-global --target-db-cluster-identifier arn:aws:rds:eu-west-1:111122223333:cluster:shop-eu

Practise both, and update application endpoints or use a global writer endpoint if available.

Q25. How do you export an Aurora snapshot to S3 for analytics? Mid level
aws rds start-export-task --export-task-identifier shop-export-1120 --source-arn arn:aws:rds:ap-south-1:111122223333:cluster-snapshot:shop-daily-1120 --s3-bucket-name shop-exports-111122223333 --iam-role-arn arn:aws:iam::111122223333:role/rds-export --kms-key-id alias/exports

data from the snapshot is written to S3 in Parquet format, by table.

It does not affect the live database, because it reads from the snapshot. Analysts can then query it with Athena or load it into Redshift. Choose specific tables to export if you do not need everything.

Q26. What are Database Activity Streams in Aurora? Mid level

Database Activity Streams send a near-real-time stream of database activity (logins, queries, changes) to Amazon Kinesis Data Streams, encrypted with KMS.

Why it matters:

  • Security and compliance teams can monitor database activity in their own tools.
  • Database administrators cannot turn off or change the stream from inside the database, which separates duties.

Use it for regulated workloads where you must audit who accessed sensitive data.

Q27. What is workload management (WLM) in Redshift? Mid level

WLM controls how queries share Redshift resources.

  • Automatic WLM (recommended): Redshift decides memory and concurrency, and you set query priorities (for example highest for dashboards, low for big ETL).
  • Manual WLM: you define queues with fixed memory and slots.
  • Query monitoring rules can log, change priority or abort queries that run too long or scan too much.

Without WLM tuning, one huge query can slow down everyone's dashboards.

Q28. What is concurrency scaling in Redshift? Mid level

When many queries wait in queues, concurrency scaling adds temporary extra cluster capacity to run them, then removes it.

  • Users see more consistent performance at busy times.
  • It is turned on per WLM queue.
  • Some free concurrency scaling credits are earned each day; extra usage is billed per second.

Good for 9 a.m. dashboard rushes. It does not make a single slow query faster; fix that with table design and SQL.

Q29. A COPY command fails with "Load into table 'sales' failed. Check 'sys_load_error_detail'". How do you debug it? Mid level

Output:

SELECT file_name, line_number, column_name, error_code, error_message
FROM sys_load_error_detail ORDER BY start_time DESC LIMIT 5;
s3://shop-data/sales/part-03.csv  1452  amount  1207  Invalid digit, Value 'N/A', Pos 0

line 1452 of part-03.csv has "N/A" in a numeric column.

Fixes:

  • Clean the data, or use COPY options such as NULL AS 'N/A', ACCEPTINVCHARS, or DATEFORMAT 'auto'.
  • MAXERROR can skip a limited number of bad rows, but log them and investigate.

On provisioned clusters, the older stl_load_errors view gives similar details.

Q30. What is Redshift data sharing? Mid level

Data sharing lets one Redshift warehouse (the producer) share live data with other warehouses (consumers), without copying it.

  • Consumers query the shared data with their own compute, so heavy reports do not slow down the producer.
  • It works across workgroups, clusters, accounts and Regions (with RA3 or Serverless).
  • Data is always current, because there is no copy.

Example: the central data team shares a sales schema with the marketing and finance warehouses, each paying for its own queries.

Q31. How do materialized views help in Redshift, and how are they refreshed? Mid level

A materialized view stores the result of a query, such as daily sales by city, so dashboards read the small result instead of recomputing it from billions of rows.

Output:

CREATE MATERIALIZED VIEW mv_city_sales AUTO REFRESH YES AS
SELECT city, sale_date, SUM(amount) AS total FROM sales GROUP BY city, sale_date;

Refresh options: auto refresh, a scheduled REFRESH MATERIALIZED VIEW, or manual. Many views can refresh incrementally (only new data).

Redshift can also rewrite some queries automatically to use a materialized view.

Q32. What do VACUUM and ANALYZE do in Redshift, and do you still need them? Mid level
  • VACUUM reclaims space from deleted rows and re-sorts rows by the sort key.
  • ANALYZE updates table statistics that the query planner uses.

Redshift now runs automatic vacuum delete, automatic table sort and automatic analyze in the background, so many teams rarely run them by hand.

Run them manually after very large deletes or loads, or when a table's unsorted percentage (svv_table_info) is high and queries got slower.

Q33. How do you find skewed tables in Redshift? Mid level

Output:

SELECT "table", diststyle, skew_rows, unsorted, tbl_rows
FROM svv_table_info ORDER BY skew_rows DESC LIMIT 5;
sales  KEY(customer_id)  8.40  2.1  1200000000

The sales table's rows are very unevenly spread: one slice has about 8 times more rows than the smallest one, so queries wait for that slice.

Fix: choose a distribution key with many evenly spread values, or use AUTO or EVEN distribution.

Q34. What is zero-ETL integration from Aurora to Redshift? Mid level

Zero-ETL replicates data from Aurora (MySQL and PostgreSQL, and some other sources such as RDS MySQL and DynamoDB) into Redshift automatically, in near real time, without building pipelines.

Benefits:

  • No custom ETL jobs to build or maintain.
  • Analytics on fresh operational data within seconds or minutes.
  • Little load on the source database.

You still design Redshift-side models (views, aggregations) for reporting. Check current supported sources, versions and Regions.

Q47. How do you load streaming data into Redshift without a separate pipeline? Mid level

Use Redshift streaming ingestion from Amazon Kinesis Data Streams or Amazon MSK.

Output:

CREATE EXTERNAL SCHEMA kds FROM KINESIS IAM_ROLE 'arn:aws:iam::111122223333:role/redshift-stream';
CREATE MATERIALIZED VIEW clicks_mv AUTO REFRESH YES AS
SELECT approximate_arrival_timestamp, JSON_PARSE(kinesis_data) AS payload FROM kds."clickstream";

Redshift reads the stream directly into a materialized view, and refreshes it automatically, so data is available within seconds.

This removes the need for Firehose-to-S3-then-COPY steps for near-real-time dashboards.

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.

Q35. A schema migration on Aurora must be tested on real data without touching production. How do you do it? Senior
  • Create an Aurora clone of production (fast, copy-on-write).
  • Run the migration on the clone and measure: time taken, locks, replication impact and app compatibility.
  • Run the application test suite against the clone.
  • Use the timing to choose a strategy: online schema change tools, or Blue/Green Deployments for big changes.
  • Delete the clone afterwards.

Mask or restrict personal data on the clone if non-production people use it.

Q36. After an Aurora failover, the application took 2 minutes to recover even though failover took 30 seconds. Why? Senior
  • DNS caching: the app or JVM cached the old writer IP for too long. Set a low DNS TTL in the runtime (for example Java's networkaddress.cache.ttl).
  • Connection pools kept dead connections and waited for TCP timeouts. Configure pool validation and short socket timeouts.
  • Fix: use RDS Proxy, which keeps client connections and reconnects to the new writer faster, or AWS JDBC wrapper drivers with fast failover support.
  • Test with failover-db-cluster during load and measure recovery from the app's view.
Q37. When would you consider Aurora Limitless Database or Aurora DSQL instead of a normal Aurora cluster? Senior
  • A normal Aurora cluster has one writer instance. When write volume outgrows the largest instance, you need another approach.
  • Aurora Limitless Database (Aurora PostgreSQL) scales writes horizontally by sharding tables across many instances, while apps still see one database endpoint.
  • Aurora DSQL is a serverless, distributed SQL database with PostgreSQL compatibility, designed for active-active multi-Region use; it supports a subset of PostgreSQL features.

Choose them only after measuring a real need, and check feature support and limits in current docs. Most applications fit in a normal cluster with replicas and caching.

Q38. Your Aurora bill jumped because of I/O charges. How do you investigate and fix it? Senior
  • Check the Aurora storage I/O metrics (VolumeReadIOPs, VolumeWriteIOPs) and Cost Explorer usage types to confirm.
  • Find heavy queries: Database Insights or Performance Insights top SQL, full table scans, missing indexes, large sorts spilling to disk.
  • Check if the buffer cache is too small (low memory instance or low Serverless v2 minimum), causing more storage reads.
  • Fix queries and indexes first.
  • If I/O is still a large share of the bill, compare with Aurora I/O-Optimized.
Q39. Redshift dashboards are fast in the morning but slow after the nightly ETL changes. Why might this happen? Senior
  • The ETL loads data in a way that leaves many unsorted rows or stale statistics, so the planner chooses poor plans until automatic sort and analyze catch up.
  • New large tables were created with poor distribution, causing data movement (broadcasts) in joins.
  • ETL is still running and competing for resources.

Fixes: load in sort key order, run ANALYZE after big loads, schedule ETL in a lower-priority WLM queue, finish ETL before business hours, and use materialized views for dashboard queries.

Q40. How do you design a data pipeline from Aurora to Redshift for daily and near-real-time reports? Senior
  • Near-real-time: zero-ETL integration from Aurora to Redshift for fresh operational data.
  • Historical and external data: land files in S3 (data lake), load with COPY or query with Redshift Spectrum.
  • Transform with SQL models inside Redshift (materialized views, scheduled queries or dbt).
  • Separate workloads: a producer warehouse for ETL and consumer warehouses (data sharing) for different teams.
  • Govern access with Lake Formation or Redshift roles, and mask personal data.
  • Monitor freshness: alarm if data lags behind.
Q41. How do you migrate a provisioned Redshift cluster to Redshift Serverless? Senior
  • Take a snapshot of the cluster and restore it into a Serverless namespace (restore from a provisioned snapshot is supported).
  • Set base RPU capacity from current workload size, and a maximum to control cost.
  • Update connections: new endpoint, IAM roles for COPY and UNLOAD, users and groups.
  • Recreate schedules, WLM-like priorities and usage limits.
  • Run both in parallel and compare query results and timing for key reports.
  • Switch BI tools, then delete the old cluster after a safe period.
Q42. A reporting query on Aurora slows down the whole application. What are your options? Senior
  • Short term: kill or limit the query, and move it to a reader through the reader endpoint or a custom endpoint for reports.
  • Medium term: add indexes or rewrite the query; check its plan.
  • Separate heavy reads: a dedicated replica tier with a custom endpoint, or an Aurora clone for one-off analysis.
  • Long term: move analytics to Redshift with zero-ETL, so heavy reports never touch the transactional database.

Explain the trade-off: replicas still share storage, so huge scans can still affect I/O cost and performance.

Q43. How do you control Redshift Serverless cost for a team that runs unpredictable queries? Senior
  • Set a sensible base RPU (not too high) and a maximum RPU limit.
  • Usage limits on RPU-hours per day, week or month, with actions such as alert, log or turn off user queries.
  • Query monitoring rules to stop runaway queries.
  • Materialized views and result caching to avoid repeated heavy work.
  • Teach users to filter by partition and sort key columns.
  • Review sys_query_history for the most expensive queries and fix them first.
Q44. How would you secure access to Redshift for 200 analysts? Senior
  • Federated sign-in through IAM Identity Center or your identity provider; no shared database passwords.
  • Role-based access control (RBAC) in Redshift: roles for each team with grants on schemas and views.
  • Row-level security and dynamic data masking for sensitive columns (such as phone numbers).
  • Private access through VPC, with no public endpoint.
  • Encryption at rest with KMS and SSL connections required.
  • Audit logging to S3 or CloudWatch, and review who queried sensitive tables.
Q45. An Aurora PostgreSQL cluster runs out of connections at peak. Which numbers and changes do you look at? Senior
  • DatabaseConnections metric versus max_connections (based on instance memory by default).
  • Why so many: Lambda functions or many app instances each opening their own pool.
  • Use RDS Proxy to pool and share connections.
  • Lower pool sizes per app instance; fewer, busier connections are better than many idle ones.
  • Look for idle-in-transaction sessions in pg_stat_activity and set idle timeouts.
  • Scale the instance only after fixing pooling, because more memory just hides the problem.
Q46. How do you prove Aurora meets an RPO of one second and an RTO of one minute across Regions? Senior
  • Use Aurora Global Database; measure AuroraGlobalDBReplicationLag (usually under a second) and alarm on it.
  • Practise failover in the secondary Region on a schedule, measure the time until the application writes successfully again (not just database promotion).
  • Automate the runbook: promote, switch DNS or endpoints, scale the secondary application tier.
  • Keep the secondary sized to take the full load, or plan for quick scale-up.
  • Record results of each drill as evidence.
Q48. A Redshift query joins two big tables and the plan shows DS_BCAST_INNER. What does it mean and how do you fix it? Senior

DS_BCAST_INNER means Redshift copies (broadcasts) the whole inner table to every node to do the join. For a big table this moves a lot of data and is slow.

Fixes:

  • Distribute both tables on the join column (DISTKEY on customer_id in both), so matching rows are on the same slice and no data moves (DS_DIST_NONE).
  • If one table is small, use DISTSTYLE ALL for it, so every node already has a copy.
  • Or let Redshift choose with AUTO distribution and check the advisor recommendations.

Check the plan again with EXPLAIN after the change.

Q49. How do you plan Aurora version upgrades for 40 clusters with minimum risk? Senior
  • Inventory engine versions and end-of-standard-support dates for each cluster.
  • Test each major version on a clone with the application test suite.
  • Use Blue/Green Deployments for major upgrades: the green environment is upgraded and kept in sync, then you switch over in about a minute.
  • Turn on automatic minor version upgrades in maintenance windows for low-risk patches, starting with non-production.
  • Upgrade in waves, with rollback plans and monitoring of top queries after each switch.
  • Track progress in a dashboard so nothing slips into extended support charges.
Q50. Analysts complain that Redshift queries on JSON event data are slow and hard to write. What do you suggest? Senior
  • Load JSON into the SUPER data type, which supports semi-structured data and PartiQL-style navigation (payload.user.id).
  • For heavily used fields, extract them into normal typed columns during load or in a materialized view, so they can use sort keys and compression.
  • Keep raw JSON in S3 for history and query it with Spectrum when needed.
  • Add sort keys on event time to skip old blocks.
  • Provide curated views so analysts do not parse JSON in every query.

5. Frequently asked questions

Do I need to know both for a cloud role?

Know Aurora well for backend and cloud roles. Know Redshift basics (columnar storage, distribution, COPY, scaling) for data roles. Senior cloud roles expect both at a high level.

Are Aurora DSQL and Limitless the same thing?

No. Both are newer options for very large or distributed relational workloads, but they work differently. Learn them at a high level and check the current documentation, because they change quickly.

What should I practise?

Clone an Aurora cluster, run a failover, and watch the endpoints. In Redshift, load a CSV from S3 with COPY, check load errors, and unload results back to S3.

6. Quick revision

  • Aurora stores six copies of data across three AZs in a shared cluster volume.
  • Failover picks a replica by priority tier, then by size.
  • Aurora cloning is fast and copy-on-write; Backtrack rewinds Aurora MySQL in place.
  • Redshift: COPY to load, UNLOAD to export, sys_load_error_detail (or stl_load_errors) to debug loads.
  • Concurrency scaling and WLM handle many users; materialized views speed repeated queries.

This page is one part of the complete AWS interview question set. Open the full list here: All 2052 AWS interview questions.