Starbucks Corp. has sued a former senior executive to claw back his $1 million sign-on bonus, saying he left after just five months on the job—a sign of the potential perils companies face when they serve up frothy financial enticements to lure external candidates.

The coffee giant wants former senior vice president of infrastructure and foundational services Alan Rosa to give back $830,136—plus legal fees.