First, is this exam in senior three? If you are a senior, you will definitely delay graduation, which will have a certain impact on graduation. If you are not a senior, you can generally make up or retake the exam.
Second, see if the teacher of this subject has any specific requirements, such as not retaking the exam and retaking it directly. If there is such a requirement, then the reconstruction must be serious and not delayed until the senior year. Otherwise, graduation may be affected.
The above is my experience. I hope my answer will help you.