Before landing his dream job as a data scientist at Microsoft Corp., Joey Chemis, who holds degrees in comprehensive math, discrete math and algorithms and statistics, had a hard time finding a job.

“I worked in mostly minimum-wage jobs postcollege like Yogurtland and Pizza Hut, and while they were paying the bills, I didn’t feel fulfilled,” says the 32-year-old Mr. Chemis.

Out...