2. If $\mathrm{i}$ is the imaginary unit, and the complex number $z=\frac{\sqrt{3}}{2}+\frac{1}{2} \mathrm{i}$, then the value of $z^{2016}$ is
A. -1
B. $-\mathrm{i}$
C. i
D. 1
$$
\begin{array}{l}
z=\cos 30^{\circ}+\mathrm{i} \sin 30^{\circ} \Rightarrow z^{2016}=\cos \left(2016 \cdot 30^{\circ}\right)+\mathrm{i} \sin \left(2016 \cdot 30^{\circ}\right) \\
=\cos \left(168 \cdot 360^{\circ}\right)+\mathrm{i} \sin \left(168 \cdot 360^{\circ}\right)=1, \text{ so the answer is } D .
\end{array}
$$