Interview practice question
Job failed with no useful logs
Data Engineering · Python · Beginner
A Python job failed overnight and the only log says "Error occurred". How do you improve this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Replace print and vague messages with the logging module.
- Log context: which file, table, batch and run ID.
- Use logger.exception to include stack traces.
- Log start, end and row counts for each step.
- Send logs to a central place with alerts.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.