You can remember the meaning of 难堪 with this easy mnemonic:
It is very difficult (难) to endure (堪) the embarrassment of failing this test, and the pressure is hard to take.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.