CBP officers are trained to detect liars. They can of course question every single detail each time anyone requests the privilege of crossing the border in any status.
And if unsatisfied with answers or information, they simply refuse entry, until they are satisfied. It is up to the traveler to provide honest answers and have access to whatever information they need to make that determination.