Design jobs so a duplicate message or retry does not produce duplicate side effects. Interviewers frequently use idempotency to test whether you think beyond the happy path.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.
Additional Notes
How should you explain idempotency in an interview?