So a student who only understands the basics should be able to answer most of the easy questions and students who have a deeper understanding can answer the harder ones.
Well-written exams should feel pretty fair and leave students feeling like the result they got is proportional to the effort they put into studying the material (or at least how well they personally felt they understood the material).