AWS Certified Data Engineer Associate DEA-C01 Practice Question
An analytics team loads daily data into a fact table in Amazon Redshift by running a COPY command from Amazon S3. During the 10-minute load window, business users have occasionally queried the table and received incomplete results. The team must guarantee that no other session can read or write the table until the load finishes, using the simplest approach that requires no additional AWS services. Which action meets these requirements?
Begin a transaction, execute LOCK <table_name>; run the COPY, then commit.
Pause the Amazon Redshift cluster during the load window and resume it when the COPY finishes.
Set the WLM queue to SERIALIZABLE isolation level before starting the COPY operation.
Load data into a staging table, then atomically rename the staging table to the target table after the COPY completes.
Wrapping the COPY in an explicit transaction and issuing LOCK <table_name>; acquires an ACCESS EXCLUSIVE lock, which blocks every other session from reading or writing the table until the transaction commits. This fully prevents users from seeing partially loaded data. Loading into a staging table and renaming keeps the original table accessible, so it doesn't block reads. Changing a WLM queue's isolation level to SERIALIZABLE still allows concurrent reads. Pausing the cluster would also stop the COPY itself and introduces unnecessary downtime.
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 an ACCESS EXCLUSIVE lock in Amazon Redshift?
Open an interactive chat with Bash
How does the COPY command work in Amazon Redshift?
Open an interactive chat with Bash
Why is loading data into a staging table not suitable for guaranteeing data consistency here?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Store Management
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 .