A logistics broker runs a daily pipeline that moves data between Amazon S3 and Amazon Redshift. The pipeline loads carrier files into a staging table, and it exports a shipment summary back to S3 for a data lake that Athena queries by month.
The team wants the loads to read only the files it intends to load, to avoid stored credentials in SQL, and to write the export in a columnar format partitioned by month.
Which THREE options meet these requirements? (Choose three.)
Choose three answers.
AA. Use COPY with an IAM role attached to the cluster, so the SQL statement does not contain access keys.
BB. Run an INSERT statement for each row in a file, so that each load is limited to the rows the team intends to load.
CC. Use COPY with a manifest that lists the exact objects to load, so stray or partial files in the prefix are not loaded.
DD. Use UNLOAD with plain text output and no partitions, then rename the files in S3 by month with a script after each run.
EE. Use UNLOAD with PARQUET format and PARTITION BY on the month column, so the export writes columnar month prefixes.
FF. Store the access key and secret key in a table in the cluster, and read them into each COPY statement at run time.
D. Wrong: Plain text is row-based, and renaming files by script adds a fragile step. The option does not produce the columnar, partitioned layout the team asked for.
E. Right: Correct. UNLOAD can write Parquet files and partition the output by a column, which creates month prefixes that Athena can prune. The layout matches the data lake's query pattern. Learn more: UNLOAD (opens in a new tab)
F. Wrong: Storing keys in a table keeps long-term credentials in the database, which the team wants to avoid. The option fails the credentials requirement.
Explanation
Three practices meet the stated needs. An IAM role attached to the cluster avoids access keys in SQL, a manifest limits COPY to the files the team intends to load, and UNLOAD with Parquet and PARTITION BY writes a columnar layout partitioned by month. Row-by-row inserts, plain text exports and stored keys each miss one requirement.
Want more on Loading and unloading Redshift? The 5 full-length practice sets have 10 more Loading and unloading Redshift questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →