This question already has an answer here:
Does Early 2015 MacBook Pro output 4K 3840 via Mini DisplayPort to DisplayPort? I seem to get only HD max option on YouTube videos.
I have a Samsung U32J590U 31.5" 4K UHD monitor. If not, do I have to get a real Thunderbolt cable or is HDMI-to-HDMI the answer?