Managed modules and handlers can both be added in web.config if the respective section is unlocked - native modules and handlers however alwaya need registration in globalModules in applicationhost.config first before they can be added.
Anil Ruia
Senior Software Design Engineer
IIS Core Server