You can remember the meaning of 保密 with this easy mnemonic:
Please defend (保) my secret (密) and keep the news of my pregnancy confidential.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.