Because the degree certificate is not registered electronically by the Ministry of Education, it is issued by the school itself, so the conditions issued by each school are different, but generally you can get the degree certificate without punishment, not failing many courses and so on. But if you can't get the same diploma, you must temporarily detain it and issue it after you meet the graduation conditions, but it's no use telling the truth.
According to your situation, if you still can't pass the exam before graduation, you can only get a diploma. When you pass the exam, you can get a diploma.
As for the postgraduate entrance examination, whether it is an academic master or a professional master, as long as it is a full-time master, you must have an undergraduate diploma. Remember, it is an undergraduate diploma, which is the most important and only condition. Anything else, including a degree certificate, will not affect the postgraduate entrance examination.