Originally Posted by
smartytravel
They are only really allowed to ask questions to confirm your identity, name and last name, and citizenship status (if you are a US citizen).
That was when an immigration officer was only an immigration officer. But nowadays at most airports of entry, the same person is now also the primary customs screener.