It's technically optional, but if you don't do it you won't unlock flying for that zone.

There are of course optional dungeons in every expansion, but I believe that's the last one that ever appears during the leveling process. The rest are at level cap.