What species of cucumber? They feed from suspended matter in the water column: dissolved organics, phyto & zoo plankton (live, dried or preserved wet). For long term success, they need target feeding & often need very good flow to stimulate the extension of feeding tentacles. Be aware if the body size shrinks and/or feeding tentacles remain retracted...this means it isn't getting enough food & is on the way out.
Many will kill your fish when dying, injured or disturbed by you...especially in a small tank like yours. Forget what that the fish sellers web site says "mildly toxic" or "reef safe". I saw one like this removed very carefully that wiped out most of the tank's fish life in an instant. Not worth the risk IMO. Good luck.