This question already has an answer here:
The setting is classic DH protocol. Alice computes $A = g^a \bmod p$. Alice then sends $A$ to Bob. Then Bob will send $B = g^b \bmod p$ to Alice.
Are there any requirements for the values $a$ and $b$ besides they should be greater than $1$?