Skip to main content
Sign in Register
Question no. 91207

Which interface must be implemented to create custom HTTP handlers in an ASP.NET application________________?

Select your answer for: Which interface must be implemented to create custom HTTP handlers in an ASP.NET application________________?
Show 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.

Topic
—
Difficulty
medium

Related questions

Q1. Which architectural view depicts runtime interactions among concurrent system processes?

Select your answer for: Which architectural view depicts runtime interactions among concurrent system processes?
Show 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?

Select your answer for: The Common Type System is a core feature of which environment?
Show 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_________________?

Select your answer for: If an ASP.NET developer centralizes style definitions in a shared location, what is that location termed_________________?
Show 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_________________?

Select your answer for: Within an ASP.NET application directory structure, where is the Global.asax file located_________________?
Show 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 ?

Select your answer for: How is a FileSystemObject instantiated ?
Show 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______________?

Select your answer for: When developing an app requiring multiple security tiers via secure logins across three load-balanced ASP.NET web servers (using round-robin______________?
Show 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...