It's not rocket science ;)
No. It's not. But you might be surprised how much knowledge of the law they have to have, as well as having the instinct to send somebody for a secondary search even if everything on the surface looks okay. We catch many bad guys based on the CBP Officer's gut instinct.