Yes, the gradient of AB = 2.
When dy/dx = 0, you’re looking at the stationary points of the curve, not the gradient at a certain point.
So the question is asking to find coordinates of C and D (which lie on the curve) which the gradient at those points are both parallel to AB. So what does dy/dx equal?