Yes, unfortunately.
In that case the DMV will issue a CDL that does not have a HazMat endorsement.
What do I have to do to pass the test? Can I repeat it?
You must answer 80 % or more of the questions correctly to pass the test. You can take the test as many times as necessary until you pass the test.