I would never say "what are you". To find out someone's job you might say "what do you do?" (direct), or "what sort of work are you involved in?" (more diplomatic).
"Who are you" is also very direct / rude, and would be rarely used. I can think of one example, e.g. a telephone "cold-caller". In that case, you might not be so worried about your manners!
Matthew