Well we've already found out because Israel broke it. With Gaza they've gotten used to very flexible ceasefires where you can still bomb the other side repeatedly and the ceasefire "holds". Iran has shown that this will not work with them, and they closed the strait again
There's no enforcement mechanism, only big dog, small dog logic. What happens if one party breaks the ceasefire? The other starts shooting?