That's good advice :) .
Your point of working on what senior management cares most about is also good (but easier said than done !!!).
Workers in secondary/support activities (as IT is in most non-tech companies) don't get that many opportunities.
My advice is to make sure wherever you are, you're working on the thing that senior management care most about. That's where you'll have the opportunity to work towards ambitious goals with the best mentors and exposure to real-world consequences.