Interview practice question
Incremental API ingestion to S3
Data Engineering · Python · Intermediate
Design a Python job that pulls new and updated records from a REST API every hour and lands them in S3.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Store a watermark like last updated_at in a state store.
- Request records updated since the watermark minus a small overlap.
- Paginate with cursors and handle retries and rate limits.
- Write each run to a partitioned path in JSON Lines or Parquet.
- Update the watermark only after a successful write.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.