Which interface must be implemented to create custom HTTP handlers in an ASP.NET application________________?
Show answer Hide answer
Answer: C. IHttpHandlerFactory
Explanation
Creating custom HTTP handlers in ASP.NET requires implementing the IHttpHandlerFactory interface. The correct interface allows developers to intercept and process raw incoming HTTP web requests. Implementing custom handlers gives developers low-level control over response generation and routing. HTTP handlers replace traditional ASPX page processing for specialized high-performance endpoints. The interface requires implementing methods that handle requests synchronously or asynchronously. Web.config files must be updated to map specific URL extensions to the custom HTTP handler class.
Developers build custom handlers to serve dynamic images, RSS feeds, or custom file downloads. High-traffic web applications use lightweight HTTP handlers to bypass heavy page lifecycle overhead. Understanding the request pipeline is essential for writing efficient custom ASP.NET request handlers. Pipeline is an architectural concept describing request flow rather than a specific code interface. Handler is a general descriptive term rather than the precise required interface class name. The none option is incorrect because the third choice names the exact interface required.
- Subject
- Computer Science
- Category
- Software Engineering
- Topic
- —
- Difficulty
- medium
Related questions
Q1. Which architectural view depicts runtime interactions among concurrent system processes?
Show answer Hide answer
Answer: D. process
The process architectural view depicts runtime interactions among concurrent system processes. It focuses on concurrency, distribution, and synchronization issues during system execution. Software architects use this vie...
Q2. The Common Type System is a core feature of which environment?
Show answer Hide answer
Answer: C. CLR
The Common Type System defines how types are declared, used, and managed in the runtime environment. The Common Language Runtime hosts the CTS to ensure seamless type safety across multiple languages. Option C is correct...
Q3. If an ASP.NET developer centralizes style definitions in a shared location, what is that location termed_________________?
Show answer Hide answer
Answer: A. Theme
Themes in ASP.NET allow developers to centralize style definitions and skin files in one location. Applying a consistent theme ensures uniform visual formatting across all pages in an application. Centralized styling sim...
Q4. Within an ASP.NET application directory structure, where is the Global.asax file located_________________?
Show answer Hide answer
Answer: B. ROOT
The Global.asax file must reside in the root directory of an ASP.NET application. Placing it in the root allows the runtime to intercept application-level events properly. Global events like application start and session...
Q5. How is a FileSystemObject instantiated ?
Show answer Hide answer
Answer: A. Server.CreateObject(“Scripting.FileSystemObject”)
FileSystemObject is instantiated using Server.CreateObject with the Scripting.FileSystemObject identifier. This syntax allows ASP scripts to access server side file systems and manage directories. COM component instantia...
Q6. When developing an app requiring multiple security tiers via secure logins across three load-balanced ASP.NET web servers (using round-robin______________?
Show answer Hide answer
Answer: C. Maintain the login state security through a database.
Load-balanced web farms require centralized database storage to maintain user session states consistently. Round-robin routing sends subsequent requests to different servers, losing in-memory session data. Storing login...