(1) Don't take jobs where the company isn't willing to
tell you what you'll be working on. That usually means
you're going to be allocated to the least desirable
projects.
I passed on a job at Google precisely because of this fear. I wonder if they've since changed that practice.