QuestionQ73
Data Operations and SupportA company uses Amazon Redshift to store order transactions for the current day. The company has an orders table that contains prior order data. The company also has a staging table that holds new or updated order records.
The company must remove stale records from the orders table and insert the most recent data from the staging table into the orders table. Several downstream applications require the orders table to show up-to-date information.
Which solution meets these requirements?
- A Use Amazon Redshift Spectrum to delete stale records from the orders table and insert records from the staging table into the orders table.
- B Unload the orders table and the staging table to Amazon S3. Delete stale orders table data and insert new staging table data in Amazon S3 by using Amazon Athena. Copy the orders S3 table to the orders Amazon Redshift table.
- C Use Amazon Athena federated queries to read stale records from the orders table. Delete the stale records and insert the records from the staging table into the orders table.
- D Write an Amazon Redshift stored procedure that deletes the stale records from the orders table and inserts new records from the staging table.
Community Discussion