1: \begin{abstract}\baselineskip=13pt \noindent This paper demonstrates a topological meaning of quandle cocycle invariants of links with respect to finite connected quandles $X$, from a perspective of homotopy theory:
2: Specifically, for any prime $\ell$ which does not divide the type of $X$, the $\ell$-torsion of this invariants is equal to a sum of
3: the colouring polynomial and a $\Z$-equivariant part of the Dijkgraaf-Witten invariant of a cyclic branched covering space.
4: Moreover, our homotopical approach involves application of computing some third homology groups and second homotopy groups of the classifying spaces of quandles,
5: from results of group cohomology. Furthermore we develop an approach for automorphism groups associated to quandles.
6: \end{abstract}