Yep, this. Or through research, or because some NPC tells them so, or because they make a good Arcana role. There are lots of ways.
Edit: I don't understand this concept of DM "gotchas". If a DM really wants to get you, s/he'll get you, and it doesn't require anything so fiddly as specific...