The tenant and the landlord will negotiate this up-front. The amount of deposit due will be written in the lease agreement.

The landlord is entitled to negotiate what ever deposit he / she deems fit. It is common for the landlord to require one months rent or a double deposit (2 months rent). The landlord could even require a triple deposit if the tenant's credit report is considered risky.

However once the amount of the deposit has been agreed, the landlord cannot demand a bigger deposit during the term of the lease ? unless the tenant agrees.

Practically, the landlord should not hand over the keys to the property until the agreed deposit and first months rent has been paid (and cleared in the case of a cheque).