AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineering team runs a nightly COPY command that bulk-loads 1 TB of data into the fact_sales table in Amazon Redshift. While the load is in progress, analysts report that their queries against fact_sales are unresponsive until the job commits. The team must prevent the load process from blocking read access, and they want a solution that keeps operational overhead and cost to a minimum. Which approach will meet these requirements?
Move the COPY operation to a dedicated WLM queue with higher concurrency so SELECT queries can run in parallel.
Add the ACCEPTINVCHARS parameter to the COPY command to reduce lock contention during the load.
Load the new data into a staging table and then run ALTER TABLE fact_sales APPEND FROM the staging table once the load completes.
Enable user activity logging to allow Redshift to release long-running locks automatically during COPY.
The COPY command acquires a ShareRowExclusiveLock on the target table until the transaction commits, which can block concurrent SELECT statements. A common best practice is to load incoming data into a staging table that has the same distribution style, sort keys, and column definitions as the production table. After the COPY finishes, the ALTER TABLE APPEND command moves the data blocks into the target table by updating metadata only, so the required ACCESS EXCLUSIVE lock is held for a very short time. This approach keeps dashboards available with negligible additional cost or complexity. Placing the COPY in a different WLM queue, enabling user activity logging, or changing COPY parameters does not resolve the lock contention because the COPY transaction would still hold a lock for its full duration.
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 the purpose of the ALTER TABLE APPEND command in Amazon Redshift?
Open an interactive chat with Bash
Why does the COPY command acquire a ShareRowExclusiveLock, and how does it affect query performance?
Open an interactive chat with Bash
What is the significance of matching distribution style, sort keys, and column definitions between staging and target tables?
Open an interactive chat with Bash
What is the ALTER TABLE APPEND command in Amazon Redshift and why is it useful?
Open an interactive chat with Bash
What type of lock does the COPY command acquire on a table in Amazon Redshift, and why does this cause issues?
Open an interactive chat with Bash
What are the best practices for loading data into Amazon Redshift to minimize operational impact?
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 .