If you set an alarm using the default Clock app, it does ring as its supposed to.
However, if your phone is in lockdown mode (hold power button, then click on "Lockdown"), no display to disable the alarm is shown. Neither it can be disabled through a notification.
The only way to disable the alarm is to reboot the whole phone.