You can remember the meaning of 上帝 with this easy mnemonic:
The emperor (帝) set up (上) many festivals to worship God to bless his kingdom.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.