Question 21
Choose 1
An On Table Row Database listener retrieves data from a table that contains record_id, an increasing numerical column.
How should the listener be configured so it retrieves new rows at most one time?
Correct answer:
D. Set the watermark column to the record id column
Explanation:
The On Table Row listener in Mule uses a watermark column to ensure that only new rows (rows with a value greater than the last processed watermark) are retrieved each time it polls the database.
Since the table has record_id as an increasing numeric column, setting:
watermarkColumn = record_id
ensures:
Only rows with record_id greater than the previously processed one are fetched.
Each row is retrieved once and only once.
This is the exact mechanism MuleSoft provides for avoiding duplicate row processing.
β Why the other options are wrong
A. Set the target to store the last retrieved record_id value
The target just stores output into a variable; it does not control polling behavior.
B. Set the ObjectStore to store the last retrieved record_id value
While ObjectStore is used behind the scenes to track watermarks, you should not configure it manually. Mule manages this internally when watermarkColumn is set.
C. Set the target to the record_id column
Again, the target attribute does not determine how rows are selected. It simply stores the output payload somewhere else.
β Final Answer: D. Set the watermark column to the record id column
The On Table Row listener in Mule uses a watermark column to ensure that only new rows (rows with a value greater than the last processed watermark) are retrieved each time it polls the database.
Since the table has record_id as an increasing numeric column, setting:
watermarkColumn = record_id
ensures:
Only rows with record_id greater than the previously processed one are fetched.
Each row is retrieved once and only once.
This is the exact mechanism MuleSoft provides for avoiding duplicate row processing.
β Why the other options are wrong
A. Set the target to store the last retrieved record_id value
The target just stores output into a variable; it does not control polling behavior.
B. Set the ObjectStore to store the last retrieved record_id value
While ObjectStore is used behind the scenes to track watermarks, you should not configure it manually. Mule manages this internally when watermarkColumn is set.
C. Set the target to the record_id column
Again, the target attribute does not determine how rows are selected. It simply stores the output payload somewhere else.
β Final Answer: D. Set the watermark column to the record id column






