AWS Certified Data Engineer Associate DEA-C01 Practice Question

An AWS Lambda function that runs every hour recalculates summary tables in an Amazon RDS for MySQL 8.0 database. Occasionally, two invocations overlap, resulting in duplicate updates and deadlocks. You need to guarantee that only one invocation performs the recalculation at any given time while ordinary read traffic to the tables continues uninterrupted. Which solution meets the requirement with the least code and configuration changes?

  • Change the summary table to the MyISAM engine and issue LOCK TABLES WRITE before updates and UNLOCK TABLES afterward.

  • Call the MySQL functions GET_LOCK('recalc', timeout) at the start of the job and RELEASE_LOCK('recalc') when it finishes.

  • Set the innodb_table_locks parameter to ON in the DB parameter group so InnoDB automatically applies a global table lock during the transaction.

  • Enable Multi-AZ for the RDS instance so the standby blocks concurrent write attempts during the recalculation window.

AWS Certified Data Engineer Associate DEA-C01
Data Store Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot