It is an official credential. The length of courses, and the number of courses vary depending on which college is attended. In the U.S.A. high schools give out diplomas to graduating students. These are not degrees.