You don't get CPE for passing a certification exam, but you can get credit for studying for preparation for a certification exam. Here's the exact wording:
Self-study: You might be doing research for a project or preparing for another cyber security or IT security certification exam. Hours you spend on your research or certification preparation will count for CISSP CPE credits as well.