2 answers from our tutors
When we know the subject For example My mom cooked some food مادرم مقداری غذا درست کرد Who cooked some food? My mom کی غذا درست کرد؟ مادرم
When We have a subject or the subject should be prioritize in compared to the object.