Discouraging Ducks from lounging on a swimming pool deck

A motion-activated sprinkler device works very well.  This and other nuisance wildlife contraptions and deterrents are available at garden stores, or on-line by searching on "nuisance wildlife products."