Analytics

Amazon Redshift and Spectrum

Petabyte-scale cloud data warehouse using columnar storage, with Spectrum querying external data directly in Amazon S3.

How it works

Amazon Redshift is a managed data warehouse for analytical queries, using columnar storage and parallel processing. Redshift Spectrum lets users query external data in Amazon S3 with SQL without loading that data into Redshift tables. Users can join external data with warehouse data in the same query.

When to use it

Choose it when the requirement is centralize analytical reporting and query external S3 data.

Real-world example

A retailer stores current transactions in Redshift and historical Parquet data in S3. An analyst uses Spectrum to combine the two sources in a single SQL query for reporting.

Key facts

  • Uses a Leader Node for query coordination and Compute Nodes for massively parallel processing (MPP)
  • Redshift Spectrum executes SQL queries directly on open file formats in S3 without loading data into the cluster
  • The COPY command loads data in parallel from S3 into the warehouse

Common pitfall

Loading individual rows with many separate INSERT statements can be slow for large datasets. Consider the COPY command to load files from S3 into Redshift in parallel.

Often confused with

Amazon Athena — Athena queries S3 on demand without provisioned clusters, whereas Redshift provides a data warehouse with provisioned and serverless options.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • petabyte-scale data warehouse
  • columnar storage OLAP

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning