Course menuDEA-C01

Exams / DEA-C01 / Study guide / Redshift Spectrum, federated queries and materialized views

Redshift Spectrum, federated queries and materialized views: DEA-C01 study notes and practice questions

What to know about Redshift Spectrum, federated queries and materialized views for the DEA-C01 exam, from the Data Store Management domain (26% of the exam guide), then 2 free questions to test it. Part of the DEA-C01 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

These questions ask how to combine data in Redshift with data elsewhere, or speed up repeated queries.

Reaching outside the warehouse

Feature Reads Use
Redshift Spectrum Files in S3 (Parquet, ORC, CSV, JSON, Iceberg) through external tables in an external schema backed by the Glue Data Catalog Query cold or very large data in the lake without loading it; join it with warehouse tables
Federated queries Live data in RDS/Aurora PostgreSQL and MySQL Combine current operational data with warehouse data without ETL
Data sharing Live tables from another Redshift cluster or Serverless workgroup, in the same or another account or Region Share without copying
Zero-ETL integrations Aurora, RDS, DynamoDB and some SaaS sources replicated into Redshift Near real-time analytics without pipelines
Redshift ML Train and use models with SQL Predictions in queries

Materialized views

  • Store the results of a query; dashboards read the small result instead of recomputing large joins.
  • Auto refresh and incremental refresh keep them current; Redshift can also create automatic materialized views.
  • Can be built over Spectrum and federated tables, and over streaming ingestion from Kinesis or MSK (streaming ingestion into a materialized view).

Performance tips

  • Partition S3 data and use columnar formats so Spectrum scans less (Spectrum charges per TB scanned).
  • Result caching returns repeated identical queries instantly.
  • Push heavy filtering to the source in federated queries.

Common traps

  • Loading everything into Redshift when old data is rarely queried. Leave it in S3 and use Spectrum.
  • ETL pipelines to copy operational data for occasional joins. Use federated queries or zero-ETL.
  • Copying data to another account’s cluster. Use data sharing.

Try the 2 practice questions

A ski resort group keeps live lift-pass account data in an Amazon Aurora PostgreSQL database. Three years of ride logs sit in Amazon S3 in Parquet format and are queried through Amazon Redshift Spectrum.

Each Monday, the finance team needs one report that joins current account status from Aurora with the ride logs in S3. The account data changes during the week, and the team does not want a nightly copy of the operational database.

Which approach meets these requirements?

Choose one answer.

  1. A. Create an external schema with a secret for the Aurora credentials, then run one query joining live Aurora and Spectrum tables.
  2. B. Use AWS DMS to copy the Aurora tables into Redshift every night, and run the report against the copies with the Spectrum external tables.
  3. C. Export the Aurora tables to CSV each Monday with a manual query, upload them to S3, and join the files with the ride logs in Spectrum.
  4. D. Connect Amazon Athena to Aurora with a JDBC connection, and move the ride logs into the Aurora database as a table before the report runs.
Show the answer and explanation

Answer: A

  • A. Right: Correct. Redshift federated queries read the Aurora tables live through an external schema, and Spectrum reads the Parquet logs in S3. One query joins both sources, so no nightly copy or manual export is needed. Learn more: Querying data with federated queries in Amazon Redshift (opens in a new tab)
  • B. Wrong: A nightly copy works, but the account data is stale for most of the week, and the team asked to avoid copying the operational database. The option therefore misses a stated requirement.
  • C. Wrong: Manual exports are slow and error-prone, and the data is a copy taken at export time. The option adds weekly work that the team wants to remove.
  • D. Wrong: Moving three years of logs into the operational database adds load and storage to the system the team wants to protect. The option also changes the data layout more than the report requires.

Explanation

Federated queries let Redshift read live operational data in Aurora PostgreSQL, while Spectrum reads the Parquet logs in S3, so one query can join both. The credentials stay in Secrets Manager through a secret reference. Nightly copies, manual exports and moving logs into the operational database each add a copy or a manual step.

Study

A public library system's Amazon Redshift cluster holds ten years of circulation transactions. Dashboards show loans by branch and month, and about 400 staff open the dashboards each morning. The aggregation takes several minutes when it runs against the base table.

Staff accept data that is at most a few minutes old, and the data engineering team wants the dashboards to stay fast without a custom refresh job.

Which approach meets these requirements?

Choose one answer.

  1. A. Create a standard view over the transactions table, so that each dashboard query runs the aggregation against the latest data.
  2. B. Create a materialized view of the aggregation with auto refresh turned on, so that Redshift keeps it updated and the dashboards query the stored results.
  3. C. Write a nightly job that drops and reloads a summary table from the base table, and point the dashboards at that table.
  4. D. Expose the transactions as an external table in Amazon S3 through Redshift Spectrum, and aggregate the files at query time.
Show the answer and explanation

Answer: B

  • A. Wrong: A standard view runs the full aggregation every time, so 400 morning dashboard loads would repeat the slow query. The option does not make the dashboards fast.
  • B. Right: Correct. A materialized view stores the aggregated results, and auto refresh updates it as the base table changes. The dashboards read the precomputed results, and no custom refresh job is needed. Learn more: Refreshing a materialized view (opens in a new tab)
  • C. Wrong: A nightly reload leaves the dashboards a day behind, which misses the few-minutes freshness target. It also needs a job the team wants to avoid.
  • D. Wrong: Spectrum scans files in S3 for every query, which is usually slower than local storage for repeated aggregations. The option does not reduce the work each dashboard load does.

Explanation

A materialized view stores precomputed results, so repeated dashboard loads read small results instead of repeating a large aggregation. With auto refresh, Redshift updates the view as the base table changes, which keeps data within the freshness target without a custom job. Standard views, nightly reloads and Spectrum scans each miss one of those goals.

Study

Want more on Redshift Spectrum, federated queries and materialized views? The 5 full-length practice sets have 10 more Redshift Spectrum, federated queries and materialized views questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Redshift Spectrum, federated queries and materialized views

More Data Store Management topics