Data Ingestion and Source System Integration Questions
Getting data out of heterogeneous source systems and landing it reliably: APIs, operational databases, file drops, webhooks, message queues and third-party SaaS. Covers connector selection and design (managed platforms versus Debezium, DMS or Kafka Connect versus building your own), pull versus push and polling versus webhook patterns, incremental extraction and high-watermark strategy including what to do when a source offers no native change capture, authentication and credential rotation against third-party APIs, source-side rate limits and quotas, schema drift and contract breakage at the source boundary, backfill and replay of history, ingestion-time data-quality gates, reconciliation after a source outage, and negotiating with source-system owners. The scope stops at the boundary: once data has landed, transforming it, the architecture of the pipeline that carries it, stream-processing mechanics, and pipeline monitoring are all covered separately.
An upstream partner changed a field's format without telling you, and your warehouse loads started failing quietly, because some rows still happened to parse. How would you design ingestion so a change like this is caught early, traced back to the specific source, and rolled out safely to downstream consumers rather than silently corrupting data?
Sample Answer
Direct answer
The failure here is that a format change was invisible because the old parser tolerated it well enough to keep running, just on wrong data. The fix has two halves: catch it fast with contract validation that actively checks the SHAPE of incoming data against what you expect rather than passively accepting whatever parses, and design the rollout of any downstream fix so a corrected pipeline does not need to guess which rows were affected.
Structured elaboration
Catching it early: validate the contract, not just the parse
- A field "parsing" is a much weaker guarantee than a field having the RIGHT type, format, or range; a date field that silently starts arriving as
MM/DD/YYYYinstead ofYYYY-MM-DDwill often still parse as a string while producing garbage downstream. - Run schema and value-shape checks at ingestion time: expected field presence, type, and a sanity check on value ranges or patterns, not merely "did JSON.parse succeed."
- A schema registry with enforced compatibility rules (for structured formats like Avro or Protobuf) rejects an incompatible producer change at write time rather than letting it through to be discovered downstream.
- For less structured sources (a partner's CSV or JSON feed with no registry), a lightweight contract test run against a small sample of every batch, before the full batch loads, catches the same class of problem.
Tracing it back to the specific source
- Every ingested record should carry provenance: which source, which connector version, and roughly when it was captured, so an anomaly can be traced back without guessing which of several sources is responsible.
- When a validation check fails, the alert should name the specific field, the specific source, and a sample of the offending records, not just "a data quality check failed somewhere."
Rolling the fix out safely
- Quarantine newly-arriving bad records rather than either blocking the whole pipeline or silently loading them; this buys time to fix the parser without an outright ingestion outage.
- Once a fix ships, replay the quarantined records through the corrected logic rather than asking downstream consumers to somehow know which historical rows were affected.
- Coordinate the rollout with the source-owning team if you have any relationship with them: even an informal heads-up channel materially shortens how long a format drift goes undetected the next time.
Worked example
A partner feed silently starts sending "1,234.50" (a thousands separator and no currency symbol) instead of the previously-agreed "1234.50" for an amount field. The old parser calls float() on the string, which raises on the comma, but the code catches that exception and defaults to 0.0 rather than failing loudly, so rows keep flowing with silently zeroed amounts. A contract check that asserts "amount is a positive number above some plausible floor for this source" would have caught the very first batch, because a wave of exact 0.0 values is an obvious outlier the moment it is checked, rather than a value that happens to parse. Once caught, the fix is to correct the parser to strip thousands separators, quarantine and reprocess the affected window of already-ingested rows from the raw landing copy (never from the already-corrupted downstream table), and add an explicit test fixture using this exact malformed string so the same regression cannot silently reappear.
Trade-offs & pitfalls
- A defensive
try/exceptaround parsing that silently defaults to a "safe-looking" value (0, null, an empty string) is precisely how this defect hides; a catch block should always increment a visible counter or emit a quarantine record, never both catch AND stay silent. - Blocking the entire pipeline on any validation failure is not always right either: for a high-volume source, a small fraction of malformed rows quarantined with an alert is usually better than an outright halt, provided someone is actually watching the quarantine.
- Keep the raw, unparsed landing copy of every batch for at least as long as your reprocessing window; without it, "replay the corrected fix" is impossible once the source's own retention window has passed.
- Over-tight contract checks are their own failure mode: a validation rule so strict it rejects a legitimate but unusual value (a genuine large transaction, for example) just creates a different kind of silent data loss inside the quarantine queue if nobody reviews it.
A third-party SaaS source enforces a hard cap of 100 API calls per minute per account, and you need to sync 50,000 records daily with incremental updates. Design a solution: batching, a work queue, a rate-limiting strategy, a backoff algorithm, and error handling that respects the cap while keeping end-to-end latency as low as practical. Include pseudocode for the rate-limited worker logic.
Sample Answer
Direct answer
A token bucket is a simple rate-limiting mechanism: it holds up to some fixed number of tokens, refilled continuously at the source's allowed rate, each call must take one token before it is allowed to fire, and if the bucket is empty the caller waits for the next trickle of refill rather than proceeding, which is what naturally caps you at the source's rate. A token-bucket limiter refilled at exactly the source's rate (100 tokens/minute) will genuinely respect the cap, but only if it starts EMPTY rather than full; a bucket that starts full lets the worker burn its whole capacity instantly and then refill more on top, so a 60-second window straddling that initial burst can see up to double the real cap. Below is a runnable worker, with its own default set to the SAFE (empty-start) behavior for this specific hard-cap use case, verified by executing both the unsafe and the safe configuration end to end.
Structured elaboration
from fractions import Fraction as F
class VirtualClock:
def __init__(self):
self.t = F(0)
def now(self):
return self.t
def advance(self, seconds):
self.t += seconds
class TokenBucketRateLimiter:
# start_full defaults to False here deliberately: this class exists specifically to
# respect a HARD external cap, and defaulting to a full initial bucket is exactly the
# bug this answer is about (see the Worked example). A caller who genuinely wants the
# textbook burst-tolerant behavior must opt in explicitly with start_full=True.
def __init__(self, clock, capacity=100, refill_per_second=F(100, 60), start_full=False):
self.clock = clock
self.capacity = F(capacity)
self.tokens = self.capacity if start_full else F(0)
self.refill_rate = F(refill_per_second)
self.last_refill = clock.now()
def _refill(self):
elapsed = self.clock.now() - self.last_refill
self.tokens = min(self.capacity, self.tokens + elapsed * self.refill_rate)
self.last_refill = self.clock.now()
def try_acquire(self):
self._refill()
if self.tokens >= 1:
self.tokens -= 1
return True
return False
def seconds_until_next_token(self):
self._refill()
if self.tokens >= 1:
return F(0)
return (1 - self.tokens) / self.refill_rate
def sync_worker(records, limiter, clock, batch_size=10, call_log=None):
call_log = call_log if call_log is not None else []
i = 0
n = len(records)
while i < n:
if limiter.try_acquire():
batch = records[i:i + batch_size]
call_log.append(clock.now())
i += len(batch)
else:
clock.advance(limiter.seconds_until_next_token())
return call_log
The 50,000 records themselves form the work queue: in this single-process example it is simply the records list, drained batch by batch by sync_worker, but the same design generalizes directly to a distributed work queue (SQS, Redis, or a database-backed job table) feeding a pool of worker processes, with the token-bucket state moved into a shared store (Redis again, typically) so every worker draws from the same rate budget instead of each worker getting its own 100-per-minute allowance and collectively blowing through the source's real cap. Batching 10 records per call means syncing 50,000 records costs exactly 5,000 API calls. The worker only ever calls the source when try_acquire succeeds; otherwise it advances straight to the moment the next token becomes available (a real worker would sleep that duration) instead of busy-polling.
Worked example
def worst_window(call_log, window=60):
call_log = sorted(call_log)
worst = 0
j = 0
for i in range(len(call_log)):
while call_log[i] - call_log[j] >= window:
j += 1
worst = max(worst, i - j + 1)
return worst
records = list(range(50000))
batch_size = 10
print("--- Version A: bucket starts FULL (start_full=True, the textbook default, opted into explicitly) ---")
clock_a = VirtualClock()
limiter_a = TokenBucketRateLimiter(clock_a, start_full=True)
log_a = sync_worker(records, limiter_a, clock_a, batch_size=batch_size)
wa = worst_window(log_a)
print(f"total API calls: {len(log_a)}, worst 60s window: {wa} (cap is 100)")
print("\n--- Version B: bucket starts EMPTY (start_full=False, the class's own default) ---")
clock_b = VirtualClock()
limiter_b = TokenBucketRateLimiter(clock_b) # no override needed: False is now the default
log_b = sync_worker(records, limiter_b, clock_b, batch_size=batch_size)
wb = worst_window(log_b)
elapsed = clock_b.now()
print(f"total records synced: {len(records)}")
print(f"total API calls made: {len(log_b)} (50,000 / batch_size=10 = {len(records)//batch_size} expected)")
print(f"elapsed virtual time: {float(elapsed)}s ({float(elapsed)/60:.4f} minutes)")
print(f"worst calls observed in any 60s sliding window: {wb} (cap is 100)")
print(f"exact fraction elapsed equals 3000: {elapsed == 3000}")
Actual output from running the above:
--- Version A: bucket starts FULL (start_full=True, the textbook default, opted into explicitly) ---
total API calls: 5000, worst 60s window: 199 (cap is 100)
--- Version B: bucket starts EMPTY (start_full=False, the class's own default) ---
total records synced: 50000
total API calls made: 5000 (50,000 / batch_size=10 = 5000 expected)
elapsed virtual time: 3000.0s (50.0000 minutes)
worst calls observed in any 60s sliding window: 100 (cap is 100)
exact fraction elapsed equals 3000: True
Version A exceeds the cap: a full initial bucket lets a 60-second window straddling t=0 see up to 199 calls against a cap of 100, a genuine two-times overshoot, not a rounding artifact. Version B, using the class's own default (start_full=False), lands on exactly 100 calls in the worst window and exactly 3000.0 seconds total (Fraction(3000, 1), not merely close to 3000.0 as a float), both matching the theoretical prediction (50,000 records / 10 per batch = 5,000 calls; 5,000 calls at 100/minute = 50 minutes = 3,000 seconds).
This run surfaced three real bugs in sequence during development, each caught only by execution, and each fixed in the version shown above rather than only described. First, comparing accumulated float tokens against >= 1 never becomes true (0.6 * (100/60) == 0.9999999999999999 in IEEE-754 float, not exactly 1.0), so an early float-based version of this worker spun without terminating; switching all token/time accounting to fractions.Fraction (as shown) removes that failure mode entirely rather than working around it with a tolerance band. Second, before the start_full default was set to False, the class's OWN default silently reproduced the two-times overshoot shown as Version A above: a caller who simply wrote TokenBucketRateLimiter(clock) with no other arguments got the unsafe behavior with no warning. Third, an intermediate rational-but-not-yet-final version of the clock still accumulated small drift across 5,000 sequential refills, landing on 101 calls in the worst window instead of 100; using exact Fraction arithmetic throughout (not just for the rate, but for every advance() call) removed that drift entirely, and the final run above lands on precisely 100 and precisely 3000.0 with zero drift.
Trade-offs & pitfalls
- Starting a token bucket full is the standard, textbook implementation, and it is wrong as this class's DEFAULT specifically because the requirement is to never exceed the SOURCE's cap in any window, not to maximize your own burst; a caller who genuinely wants the textbook burst-tolerant behavior for some other use case can still opt in with
start_full=True, but the safe behavior should never be something a caller has to remember to ask for. - Floating-point time accumulation drift is invisible at small scale and only surfaces after thousands of iterations; a code review reading this logic would very plausibly not catch it, which is exactly why it needed to be executed at the real scale (5,000 calls) rather than sanity-checked on a handful.
- A rate limiter that "mostly" respects a hard external cap is not a safe design; a source enforcing a strict per-minute cap can and does suspend or ban an integration that occasionally exceeds it, so "off by one call in a window" is a real production risk, not a rounding curiosity.
- Using exact rational arithmetic for time accounting is more code than floats and is unnecessary for most application logic, but it is the right tool specifically where a long-running process accumulates many small time increments against a hard external constraint; know when the extra rigor is worth it.
A new source system supports both webhooks and a polling API. Walk through the trade-offs of using webhooks versus periodic API polling for ingesting from it: reliability, retry handling, back-pressure, security, and the operational monitoring each approach requires.
Sample Answer
Direct answer
Webhooks give you near-real-time delivery at the cost of needing a reliably-available receiver and inheriting whatever retry behavior the source implements; polling gives you full control over pacing and a simpler operational model at the cost of latency bounded by your polling interval. When the source supports webhooks, prefer them for anything with a real freshness requirement, but keep a periodic reconciliation poll running alongside as a safety net, since even a well-implemented webhook sender can silently fail to deliver.
Structured elaboration
Reliability
- A webhook depends entirely on the source's own retry policy for delivery; some sources retry aggressively with backoff over hours, some retry a few times and give up, and a few offer no redelivery at all, so "reliability" here is really a question about the SOURCE, not something you control.
- A poll is self-healing by construction: if one poll fails or is missed, the next scheduled poll picks up everything that changed since the last successful checkpoint, with no dependency on the source retrying anything.
Retry handling
- For webhooks, your receiver has to be idempotent, since the source's retries mean you will occasionally receive the same event twice; deduplicate on the event's own ID before processing.
- For polling, retries are entirely under your control: a failed poll is simply retried by your own scheduler with your own backoff policy.
Back-pressure
- A webhook sender pushes at whatever rate events occur, which can spike unpredictably (a bulk operation on the source side, for example); your receiver has to absorb bursts without falling over, typically by accepting quickly and queuing for async processing rather than processing synchronously in the request handler.
- Polling gives you back-pressure for free: you simply do not ask for more until you are ready.
Security
- A webhook receiver is a public-facing endpoint, so it needs signature verification (an HMAC, a hash-based message authentication code, that the source includes, checked against a shared secret) to confirm a request genuinely came from the source and was not forged.
- Polling has no equivalent public-surface risk, since you are the one initiating every request, but it does still need the outbound credentials properly secured.
Operational monitoring
- For webhooks, monitor for SILENCE, not just errors: a source that has quietly stopped sending events (a misconfiguration on their side, a subscription that expired) produces no errors at all on your end, only an absence of expected traffic, which is much harder to notice than an explicit failure.
- For polling, monitor the poll's own success rate and the volume of records returned per poll, watching for an unexpected drop that would suggest the source-side query or filter has broken.
Worked example
A source offers both a webhook and a polling API for the same event type. Freshness matters (downstream alerts should fire within seconds), so the primary path is the webhook: the receiver verifies the HMAC signature, deduplicates on event ID against a short-TTL store, and queues the event for async processing so a burst of webhooks does not block the HTTP response. Running alongside, a lightweight poll every 15 minutes checks for any records the webhook path might have missed, comparing against the same downstream store; any record present in the source's poll response but absent downstream triggers a targeted backfill of just that gap, which is far cheaper than either abandoning webhooks (losing real-time freshness) or trusting them blindly (risking silent, undetected gaps).
Trade-offs & pitfalls
- If the source offers no webhook at all, the framing is not really "webhook versus polling," it becomes "how tight a poll interval can we sustain without exceeding the source's rate limit," and any real-time expectation needs to be reset against that constraint honestly rather than pretending polling can match webhook latency.
- A webhook receiver that is down even briefly can lose events permanently if the source does not retry, or does not retry for long enough to cover your downtime; know the source's specific retry window before relying on it as your only path.
- Signature verification is frequently skipped in early implementations "to get something working" and then never added later; treat it as non-negotiable for any public-facing receiver, not an enhancement to add eventually.
- The reconciliation-poll safety net is cheap insurance against silent webhook failures, but only if someone is actually watching its output; an unmonitored reconciliation job that has been silently finding and ignoring gaps for months is barely better than having no safety net at all.
When you are choosing a connector for the source or sink side of an ingestion pipeline, what do you actually evaluate? Walk through reliability, offset/checkpoint management, schema support, latency and throughput, security, and operational maturity, and explain how the calculus differs between a managed connector, a cloud-native connector, and something you build yourself.
Sample Answer
Direct answer
Choosing a connector, on either the source or the sink side, comes down to six things: how reliably it delivers data, how it tracks and persists progress (its offset or checkpoint model), how well it understands and communicates the source or target's schema, whether its latency and throughput fit your freshness needs, how it handles authentication and secrets, and how mature it is to actually operate day to day. A managed connector, a cloud-native one, and something you build yourself trade these off differently, and the right choice depends on which of the six actually matters most for this particular integration.
Structured elaboration
Reliability
- What delivery guarantee does it actually provide: at-least-once, at-most-once, or something closer to exactly-once via idempotent writes (writes that produce the same end result even if the same write is accidentally repeated, for example because a retry re-sends a call that actually succeeded the first time, so a retry never creates a duplicate)? Most connectors are honestly at-least-once; treat any "exactly-once" claim skeptically until you have seen how it is implemented.
- How does it behave on a transient failure: does it retry automatically, or does it require manual intervention to resume?
Offset and checkpoint management
- Does the connector track its own progress durably (so a restart resumes cleanly), and can you inspect or manually adjust that state if something needs to be replayed?
- For a source connector, this is usually a cursor or timestamp; for a sink connector, it is usually the last successfully-committed offset from the upstream topic or queue.
Schema support
- Does it understand the source or target's schema well enough to detect a breaking change, or does it treat every record as an opaque blob?
- For structured targets (a warehouse table, a typed sink), does the connector handle schema evolution (a new column, a type change) gracefully, or does it require manual reconfiguration on every source-side change?
Latency and throughput
- Is the connector fundamentally a polling design (batch-oriented, with latency bounded by the poll interval) or a streaming design (event-driven, near-real-time)? This is often the single biggest constraint on what freshness service-level agreement (SLA) you can promise.
- What is its realistic sustained throughput ceiling, and does that comfortably clear your actual data volume with headroom for growth?
Security
- How does it store and rotate credentials: a secrets manager integration, or configuration files that are easy to leak?
- Does it support the authentication model the source or target actually requires (OAuth2 with refresh tokens, mutual TLS, or cloud IAM (Identity and Access Management) roles), or only a simpler scheme that will not work for a security-conscious source?
Operational maturity
- How much observability does it expose out of the box: lag metrics, error rates, a dead-letter mechanism for records it cannot process?
- How is it upgraded, and what happens to in-flight work during that upgrade?
How the calculus differs by connector type
- A managed connector (Fivetran-style) tends to score well on operational maturity and reliability out of the box, at the cost of less visibility into exactly how it tracks offsets or handles schema changes internally.
- A cloud-native connector (a first-party AWS/GCP service) usually integrates cleanly with the platform's own IAM and secrets model, at the cost of being locked to sources and targets that specific cloud vendor supports well.
- A custom-built connector gives you full control over every one of the six dimensions, at the cost of having to implement and then operate all of them yourself, including the parts (idempotent retries, checkpoint persistence, schema-change detection) that are easy to get subtly wrong.
Worked example
A team choosing between three sink connectors for the same Kafka topic (a managed Snowflake sink, a cloud-native Kinesis Firehose-to-S3 delivery, and a custom Python consumer) needs sub-minute freshness and exactly-once-in-practice writes via a natural key. The managed Snowflake sink turns out to support exactly this pattern (a MERGE-based idempotent write keyed on a record ID) as a documented configuration option, so it wins on both fit and lowest operational burden. If the same team instead needed a target with no managed connector available at all, a proprietary internal service, the custom-build path would be forced regardless of preference, and the evaluation shifts to "how much of these six dimensions can we realistically implement well," not whether to build.
Trade-offs & pitfalls
- Do not evaluate a connector purely on throughput numbers from its marketing page; ask specifically how it behaves on failure, since that is where most real incidents originate.
- "It supports schema evolution" can mean anything from "handles a new nullable column automatically" to "requires you to manually update a mapping file"; get the specific behavior, not just the checkbox.
- A connector's offset model matters more than it looks: one that cannot be manually rewound makes recovering from a bad batch far harder than one that exposes and lets you adjust its checkpoint.
- Security is the dimension teams most often under-weight during evaluation and most regret later, particularly credential rotation, which a "quick proof of concept" connector rarely handles well from day one.
You need to replicate a legacy relational database that has no native change-data-capture support and no accessible write-ahead log. Propose a reliable ingestion connector that gives you ordering, acceptably low latency, and a way to handle schema changes anyway. Cover the initial snapshot, how you would detect incremental changes without log access, the load impact on the primary database, and how the connector resumes after a failure.
Sample Answer
Direct answer
Without log access, you cannot get true change-data-capture, so the honest options are periodic full extraction, timestamp-based incremental polling, or a full-table hash/diff, and the choice among those three is driven by how the load impact on the primary database and the need for delete-detection trade off against each other. A low-impact replication approach (batched exports or reading from a read replica rather than the primary) is usually the right way to reconcile "the source can barely tolerate any extra load" with "we still need periodic incremental extraction."
Structured elaboration
Why log-based CDC is off the table
- Log-based CDC needs either a readable write-ahead log or database-vendor support for logical decoding; a legacy system with neither leaves you with query-based detection instead, which is fundamentally less complete (it cannot see a delete unless the row is soft-deleted with a flag, and it cannot see an update-then-revert that happened between two polls).
Latency without log access
- None of the three query-based options below gets you log-based CDC's sub-second latency; the best you can do is push the poll interval as tight as the load constraint on the primary (or its replica) allows, so latency here is a direct trade-off against load impact, not a separate dial you can turn for free.
- "Acceptably low" has to be defined against the actual freshness requirement, not assumed: an hourly poll is a reasonable latency budget for a daily-dashboard need, but it is not low-latency in any absolute sense and should not be described as near-real-time.
Detecting changes without log access
- Timestamp-based polling: query
WHERE updated_at >= last_checkpoint(not a strict>), the simplest option, but only works if every table reliably maintains an accurateupdated_at, and it structurally misses hard deletes. A strict>comparison against a checkpoint set to the previous poll's MAX(updated_at) can silently and permanently drop a row that shares that exact timestamp but was not yet committed when the previous poll ran; using>=re-pulls that boundary row on the next poll instead, which the idempotent upsert on the destination absorbs harmlessly. - Full-table hash/diff: compute a checksum per row (or per chunk of rows) and compare against the previous run's checksums to detect changes, including deletes (a row present last time and absent this time); more source load than timestamp polling, but works when there is no trustworthy timestamp column at all.
- A hybrid: timestamp polling for inserts and updates, plus a periodic (daily or weekly) full reconciliation pass to catch deletes and drift the incremental method missed.
Reducing load on the primary
- Read from a read replica if one exists, so extraction competes for I/O with reporting queries, not with the primary's own transactional workload.
- Batch the extraction into off-peak windows and cap the query's own resource usage (statement timeouts, row-limit chunks) rather than pulling the entire table in one long-running query.
- If neither a replica nor an off-peak window is available, negotiate a lower query frequency with the source-owning team rather than silently degrading the primary's performance to hit your own freshness target.
Initial snapshot
- The first pull has to be a full extraction regardless of the ongoing method, chunked by primary key range or a stable ordering column so it can be paused and resumed without re-reading rows already captured, and scheduled during the lowest-traffic window you can negotiate.
Ordering and resume semantics
- Without log-based ordering, use a monotonically increasing column (an auto-increment ID or the same reliable timestamp) as your resumable cursor, checkpointed after each successfully-processed chunk.
- On a connector failure mid-run, resume from the last durable checkpoint; because each chunk's extraction is naturally idempotent (re-querying the same range returns the same rows, absent further changes), a partial re-pull of the last chunk causes no harm.
Handling schema changes anyway
- Without DDL events from a log, you have to detect schema changes defensively: compare the observed column set against an expected schema on every pull and alert rather than silently ingest under a stale assumption.
Worked example
A 15-year-old inventory system on a database with no accessible write-ahead log (WAL), only a read replica three minutes behind the primary, needs daily incremental sync plus reliable delete detection for a monthly reconciliation. The connector polls the replica (never the primary) hourly with WHERE updated_at >= last_checkpoint for inserts and updates, chunked by primary key range with the checkpoint persisted after each chunk so a mid-run failure resumes cleanly. Because updated_at cannot reveal a hard delete, a separate weekly job runs a full primary-key diff between the replica's current key set and the destination's, and any key present in the destination but absent from the source is marked deleted. This combination gets hourly visibility into changes, comfortably inside the stated daily-sync requirement (not near-real-time in any absolute sense, since the poll interval itself is the latency floor here), with essentially zero load on the primary, at the cost of deletes taking up to a week to be reflected, a trade-off made explicit and agreed with the downstream consumers rather than left as a silent gap.
Trade-offs & pitfalls
- Trusting
updated_atwithout verifying every write path actually sets it (an ORM might, a bulk-import script might not) is one of the most common silent-data-loss bugs in exactly this pattern; audit it against the actual application code, not just the schema documentation. - A full-table hash/diff is I/O-heavy at any real scale; if the source genuinely cannot tolerate it even from a replica, delete detection may simply have to be a known, accepted gap rather than something you force through anyway.
- Chunked extraction by primary key range assumes IDs do not get reused after a hard delete; if they can be, a chunk boundary can silently skip a row that was deleted and re-inserted with a reused key between polls.
- Do not let "we cannot get log access" become "so we will poll the primary as hard as we want"; the entire premise of this design is respecting a constraint the source team gave you, and violating it quietly is how a connector gets its access revoked.
Unlock Full Question Bank
Get access to all 18 Data Ingestion and Source System Integration interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.