The modulus of $ z $ is:
$$ |z| = 2$$To find modulus of a complex number $ z = a + bi $ we use formula:
$$ |z| = \sqrt{a^2 + b^2} $$In this example we have $ a = \sqrt{ 3 } $ and $ b = 1 $ so:
$$ \begin{aligned}|z| &= \sqrt{ \left( \sqrt{ 3 } \right)^{ 2 } + 1^2 } \\[1 em]|z| &= \sqrt{ 3 + 1 } \\[1 em]|z| &= \sqrt{ 4 } \\[1 em]|z| &= 2 \\[1 em] \end{aligned} $$