It asked us for neither when we wanted to redeem gift cards, and then wanted answers to the security questions after we had already given it the correct username and password before we could purchase anything using the gift card money.
If it's going to inconvenience me to spend the gift card money, then it should do it before I redeem the card so that the card money isn't trapped within the account if the account is currently inaccessible.
--edit
Accounts are pretty broken on iOS in general. I once logged into my appleID using my Dad's iPhone to download an app for him because he hadn't setup his own appleID yet. Later, he setup his appleID. The problem was, whenever he went to update his apps, it would ask for my appleID password when it wanted to update the app that I installed - only it didn't mention anywhere why it was asking for the password to my appleID. My account credentials did not appear anywhere else on the phone. We checked the settings, looked up things online, and even asked support. No idea why it was asking for my password. Eventually we traced the problem back to the update feature, and deleted a bunch of apps we thought I may have installed. It solved the problem and it doesn't prompt for my password anymore, but there was no way for us to know which app was causing the problem.
I agree that their account system is poor and it isn't clear when you need to authenticate.