Hi,
You should go for CT474195 as this is DDR2-400MHz RAM which matches what comes with the Dimension 5150.
The other RAM runs at 533MHz but you would see no benefit as the RAM already installed is 400MHz and the system would default to the lower speed
Don't forget to add the USB Gizmo to your order, it's free!
Cheers
Paul