Configuring Redshift IAM Roles for Glue UNLOAD
Short answer
A Create an IAM role with S3 write permissions and associate it with the Amazon Redshift cluster to authorize the UNLOAD operation initiated by the Glue job.
Question
A data engineer sets up an AWS Glue job to upload the data to the S3 bucket data on a schedule. The data engineer set up a network connection to allow private traffic between Amazon Redshift and Amazon S3.
What is the next step required to meet this requirement?
Key Takeaways
The presence of a private network connection between Redshift and S3 indicates Redshift is unloading data directly to S3, meaning Redshift requires the S3 IAM role, not just the Glue job.
AWS Glue reads from Amazon Redshift by issuing an UNLOAD command to S3, requiring the Redshift cluster to have an IAM role with permissions to write to the S3 bucket.
Common mistake: Choosing D (Secrets Manager) because Glue needs Redshift credentials, overlooking that the Redshift-to-S3 network path proves Redshift itself is writing to S3 and needs an IAM role.
Expert Analysis
Redshift-to-S3 Data Movement
The critical detail in this scenario is the network connection established to allow private traffic between Amazon Redshift and Amazon S3. If the AWS Glue job were simply extracting data via JDBC and writing to S3 itself, a private network path between Redshift and S3 would be completely unnecessary; the traffic would flow from Glue to Redshift, and Glue to S3.
Glue's Underlying Mechanism
When AWS Glue reads from a Redshift source using a dynamic frame, it does not pull data over JDBC row-by-row. Instead, it leverages Redshift's UNLOAD command to export the data to an S3 bucket, and then Glue reads that data from S3. Because Redshift executes the UNLOAD command, Redshift must have direct network connectivity to S3 (which the engineer just configured) and the IAM permissions to write to the target S3 bucket.
Evaluating Option A
Creating an IAM role with S3 write permissions and associating it with the Amazon Redshift cluster fulfills the authorization requirement for the UNLOAD operation initiated by the Glue job. Option A is the correct next step.
Evaluating the Trap (Option D)
Option D sounds highly plausible because Glue jobs absolutely require Redshift credentials (typically stored in AWS Secrets Manager) to connect and orchestrate the read. However, providing credentials alone does not explain or utilize the newly established private network path between Redshift and S3. Without Option A, Redshift cannot authorize the UNLOAD to the target bucket, causing the Glue job to fail despite having valid login credentials.
Official Reference
https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question mentions establishing a network connection between a source data store (like Redshift) and a target (like S3) for an orchestration job, recognize that the source is communicating directly with the target. Focus on granting the source the necessary IAM roles to perform the direct data transfer, rather than just configuring the orchestrator's credentials.
Community Votes
83% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 2 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 2
-
Max1948 👍 1 Answered D• A is incorrect: Associating an IAM role with the Amazon Redshift cluster allows Redshift itself to read/write to S3 directly (such as via an UNLOAD or COPY command). However, the scenario specifies that an AWS Glue job is performing the scheduled data upload, meaning the connection authentication needs to be configured at the Glue layer, not the Redshift cluster layer.
-
9f871d2 👍 1 Answered AAfter setting Up GLUE job, IAM role has to be added to get data from redshift to S3 bucket.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DEA-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DEA-C01 Practice Test →