Data already resides in Amazon Redshift, and a nightly transformation must execute conditional SQL updates across several tables as one transaction. The team must avoid exporting data and minimize processing outside the warehouse; which implementation best fits?
Show the answer
Correct answerC. Use a default-mode Redshift stored procedure with one transaction.
AWhy not this: Committing after each update allows partial results if a later update fails.
BWhy not this: Spark processing moves work outside the warehouse, and separate JDBC writes do not establish one shared transaction.
CWhy this is right: A default-mode stored procedure supports conditional SQL and transactional updates within Redshift.
DWhy not this: EMR adds external processing, and separate JDBC writes cannot guarantee atomic updates across all target tables.
A default-mode Redshift stored procedure can execute conditional SQL and keep the updates in one transaction without moving data out of the warehouse. Separate JDBC writes or per-table commits do not provide the required all-or-nothing transaction.