Hello, Sri.
Normally the service should not be in maintenance mode if there are tasks that need to be completed on that service (like HDFS, YARN, HIVE, etc). If you have configuration/troubleshooting tasks around that service, you should be able to complete that task and restart the service in non-maintenance mode to ensure that the changes you made are working. If the service does not start properly because of a configuration issue, then the task will be wrong. So, as a norm, make sure the service is able to run in non-maintenance mode.
Hope that this helps