Source Test: Primary data is collected FRESH, directly for the current research purpose; secondary data is data someone else already collected.
Surveys are conducted specifically for the study at hand, so they generate fresh, first-hand data — a classic primary method.
Company records, government reports, and literature reviews all draw on data that ALREADY EXISTS from earlier collection — that makes all three secondary sources, not primary.