The exact answer to your question has many factors.
It may depend on your child's age, the reason for the death, your relationship with your child, etc. The best thing is to answer your child's questions on their level. Let them direct the conversation. Sometimes, they only want simple answers. I would ask family members for help. And discuss your concerns with the doctor. Also check aap web site.