There is absolutely no way you’re passing OMSCS tests if you’re winging it on the other assignments, and the tests usually account for over 50% of the grade. Certifications you’re right about but there are ways to test knowledge without asking for code snippets.
Educational certifications in the era of LLMs are going to be increasingly meaningless without proof-of-work, and that's going to mean in-class work without access to computational aids, if you really want to evaluate a person's skill level. This of course is the coding interview rationalization - CS students have been gaming auto-graded courses created by CS professors for some decades, and now that's easier than ever.