How were officials chosen for government positions within the tang dynasty?

Chinese had imperial examinations were a civil was examined to find out if he had the proper skills to work with state bureaucracy. The exames existed since the Han dynasty, but they began being used as a recruitment method for government offices during the Tang Dynasty.
The answer is:
Civil service exams helped identify skilled workers