I can't take her aside and tell her, "you are not PhD material". I leave it to the reader to figure out why. She would be fine in industry as a lab tech. I presume something similar happens at a lower level where people who are techs, shouldn't even be at that level.
Contrast this with a high school intern in the other lab, who successfully built a giant 6 meter bioreactor that is actually being used to process waste at an industrial facility, and totally took down a professor that asked a dumb question during her "presentation on what she did".... I am terrified that she will leave STEM - she didn't get into as good a college as she should have.
EDIT: I guess I could be more specific.
In the state of california, there is the Cal State system and the UC system, the UC system is considered to be the "top tier" system, and the CS system is widely considered to be "slightly less than". She got into a CS engineering program, that I happen to think creates a substantial number of engineers that are superior to some of the UCs, but that may or may not be the appraisal of people who hire her down the line, especially as we move towards a more credentialed system, or if the system gets flooded with less competent engineers and candidate selection trends toward the superficial.
The CSU system is designed to accept the top 1/3 of California high school students, the UC system the top 1/8, so, as a system, UC is by design more "elite". But that doesn't mean that all UC campuses are (or even are intended to be) superior to all CSU campuses in all programs, and certain CSU campuses are very well regarded for certain programs.
(This is particularly true, IIRC, of certain CSU campuses undergraduate engineering programs.)
I cringe every time someone asks a question about interviews on /r/cscareerquestions and the inevitable reference to Cracking the Code Interview or something similar comes up. I cannot fathom that you can, and should be expected to, study or cram for an interview. It makes the interview the equivalent of an undergrad test, with the same value as a signalling device. I'm not sure which feeds which, and I'm sure there is two-way feedback in this system, but I don't think fixing undergrad education alone will fix the core of the problem, nor will encouraging more students to pursue engineering degrees as programs like MathMovesU attempt to do.
At the same time, look into some of the top University's CS exams and they're writing code on paper. They're not training effective and talented programmers, they're training effective exam writers.