It seems to me that the actual material that you need to know on these questions would probably be covered by those textbooks.
The problem is that to do well on an exam like this, you need to know that material very well. Most people acquire that knowledge through repeated exposure to the material beyond the textbook they learned it in, either by working on problems that involve it, or learning more advanced material based on it.
Once you're satisfied that you know the material from those textbooks, you could spend time on problems. In analysis, you might use a problem book like the one by Makarov or the three-volume book by Kaczor and Nowak.
In algebra, I'm less aware of what problem books there are that would be at the right level. It might be preferable to instead learn the material from a more advanced textbook than Dummit and Foote, such as the two-volume one by Jacobson, provided you are able to handle the additional difficulty.
I would also say that the problems on the sample exam appear to be of a similar level of difficulty to the easier problems in the Putnam competition, or to many of the problems on the Berkeley prelim, so problem books intended as preparation for those exams might be useful.