Knowledge – Am I building skills or knowledge that have value outside this specific company (algorithms, math, systems design, etc.), or am I just learning a bunch of internal trivia that won’t matter anywhere else?
Benefits – Financial compensation and benefits can make up for a surprising amount of dissatisfaction.
People – Do I like the people I work and interact with? Do we get along and have anything in common?
Laudability – Is the work noble, meaningful, or interesting? Highly dependent on the individual. For me, it’s education; for others, it might be science, healthcare, yadda yadda yada.
I'm usually reasonably satisfied if a job meets two out of the four.