To reflect a point \(D(a, b)\) over the line \(y = x\), we switch the coordinates of the point. This means the x-coordinate becomes the new y-coordinate and the y-coordinate becomes the new x-coordinate.
So, reflecting the point \(D(a, b)\) over the line \(y = x\) gives us the new coordinates for \(D'\) as:
\[ D' = (b, a) \]
Therefore, the coordinates of the image \(D'\) is:
\((b, a)\)
So the correct answer is \((b, a)\).