Did I have to answer an officer’s questions about how much I had to drink that night?

No. You cannot legally lie to an officer, but you also do not need to answer their questions regarding anything other than identifying information. You have a right to remain silent, don’t be afraid to politely assert that right.