You can remember the meaning of 部门 with this easy mnemonic:
The department (部) store has a majestic gate (门) that makes it look like a castle.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.