Lesson 6 of 7 Analytics: Data Lakes, Athena, Glue, EMR, Redshift and QuickSight

Analysing Structured Data with Amazon Redshift

This lesson explains Amazon Redshift, a petabyte-scale columnar data warehouse for complex analytics and business intelligence on structured data.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify Redshift features such as RA3, Spectrum and Serverless.
  • Explain the features that make queries fast.
  • Describe how snapshots and Multi-AZ deployments protect a warehouse.

Features

Several Redshift features address scale and integration. RA3 nodes keep data in managed storage backed by S3, so compute and storage scale independently. Redshift Serverless removes cluster sizing: it provides capacity as queries run and charges for the compute used, which suits variable workloads. Redshift Spectrum queries data in S3 alongside warehouse tables, so rarely used data need not be loaded.

Concurrency scaling adds capacity automatically when many queries arrive at once, so users do not wait in a queue. Zero-ETL integrations replicate data from Aurora, RDS and DynamoDB continuously, without pipelines. Data sharing lets other clusters and accounts query live data without copying it. The following table summarises the features.

FeatureWhat it does
RA3 managed storageScales compute and storage independently
Redshift ServerlessNo clusters to size; pay for compute used
Redshift SpectrumQueries data in S3 alongside warehouse tables
Concurrency scalingAdds capacity automatically for bursts of queries
Zero-ETL integrationsReplicate data from Aurora, RDS and DynamoDB continuously
Data sharingShare live data between clusters and accounts without copying
Match the pairs

Redshift features

Exam skills 3.5.5 · 3.3.4

Match each requirement with the Redshift feature that meets it.

Log in to try this activity Interactive activities are free with an account.

Performance

Amazon Redshift is designed for fast analytical queries. Columnar storage and compression reduce the data read from disk, and massively parallel processing divides each query across many nodes. Distribution keys and sort keys, or automatic table optimisation, place and order data so that joins move less data between nodes and filters skip blocks.

Materialised views store the results of repeated, expensive queries so they return quickly, and workload management allocates resources between workloads, so that short dashboard queries are not delayed by long-running reports.

True or false

Redshift performance and resilience

Exam skills 3.5.5 · 2.2.5

Check how Redshift achieves performance and resilience.

Log in to try this activity Interactive activities are free with an account.

Resilience

Amazon Redshift protects data with snapshots stored in Amazon S3. Automated snapshots are taken regularly and kept for a configurable retention period, and Redshift can copy snapshots to another Region automatically, so the warehouse can be restored there if the primary Region fails. For availability within a Region, RA3 clusters can be deployed Multi-AZ, running compute in two Availability Zones so the warehouse keeps serving queries if one zone fails.

Worked example

A warehouse for 200 analysts

A data warehouse serving many analysts must meet several performance and scale requirements. The following table identifies the Redshift feature that meets each.

RequirementRedshift feature
Fast queries over years of sales dataColumnar storage with sort keys on date
Morning bursts when everyone runs reportsConcurrency scaling
Include older data kept in S3Redshift Spectrum
Fresh order data from Aurora without ETLZero-ETL integration
A daily summary used by many dashboardsA materialised view

Athena would cost more and respond more slowly for this constant, heavy use; Redshift is designed for it.

Check yourself

What does Redshift Spectrum allow?

Show answer

Querying data in S3 directly from Redshift, joined with tables in the warehouse, without loading it first.

Exam Tips

Remember for the exam

  • For complex analytics and BI on structured data at scale, use Redshift.
  • To query S3 data together with warehouse tables, use Redshift Spectrum.
  • To speed up repeated Redshift queries, use materialised views.
  • For unpredictable bursts of queries, use concurrency scaling.
  • To load operational data into Redshift without pipelines, use zero-ETL integrations.