AWS Certified Data Engineer Associate DEA-C01 Practice Question
An Amazon Redshift provisioned cluster contains two schemas named sales and hr. A new analyst database user must be able to run read-only queries against all current and future tables in the sales schema, but must not see or modify objects in the hr schema. Using Redshift role-based access control (RBAC) with the least operational effort, which approach meets the requirement?
Create a role sales_read; GRANT USAGE on schema sales and GRANT SELECT on ALL TABLES in schema sales to the role; ALTER DEFAULT PRIVILEGES IN SCHEMA sales GRANT SELECT ON TABLES TO ROLE sales_read; then GRANT ROLE sales_read TO the analyst user.
Add the analyst user to a new group analysts and GRANT SELECT on existing tables in sales; run a nightly script that re-grants the privilege to any newly created tables.
Create a role sales_read and GRANT ALL on schema sales; then GRANT ROLE sales_read TO PUBLIC so every database user, including the analyst, gains access automatically.
Attach the managed IAM policy AmazonRedshiftReadOnlyAccess to the analyst's IAM identity; no SQL grants inside the database are required.
With RBAC you first create a database role, grant it schema-level USAGE and table-level SELECT permissions, then make those privileges the default for any new tables. Finally you assign the role to the specific user. This gives the analyst read access to sales now and in the future while leaving hr inaccessible and avoiding manual privilege maintenance. Relying only on IAM does not create database privileges, scheduling scripts adds operational overhead, and granting the role to PUBLIC breaks least-privilege.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon Redshift role-based access control (RBAC)?
Open an interactive chat with Bash
What is the benefit of using the ALTER DEFAULT PRIVILEGES command in Redshift?
Open an interactive chat with Bash
Why doesn’t attaching the AmazonRedshiftReadOnlyAccess IAM policy fulfill database-level permissions?
Open an interactive chat with Bash
What is Role-Based Access Control (RBAC) in Amazon Redshift?
Open an interactive chat with Bash
What is the difference between GRANT USAGE and GRANT SELECT in Redshift?
Open an interactive chat with Bash
What are DEFAULT PRIVILEGES in Redshift and why are they important?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Security and Governance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .