We present a behavioral chamber designed to assess cognitive performance. We provide data showing that once acquired, zebrafish remember the task 8 weeks later. We also show that hyperglycemic zebrafish have altered cognitive performance, indicating that this paradigm is applicable to studies assessing cognition and memory.