When is the USMLE Step II taken?

In order to receive their M.D. degree, students must take and pass the USMLE Step II. This examination may be taken after the 3rd. or 4th year, when core rotations are mostly completed.