IIS is an unavoidable part in case of a asp.net interview . As a web developer we all have the necessary knowledge about the Internet Information service. Here I am trying to list out the possible IIS interview questions . Please leave your valuable comment on this post.
Q) What is IIS
A) Internet information services (IIS) are a web server which will runs the web site or web application which is hosted in the IIS . when we type on the browser address bar actually a request is going to IIS and the IIS will manage the request and runs the .net code according to the request and give back the response.
The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP).Q) What are the different roles of IIS
A)IIS works as a web server. That is generate response to the client request Client may be a browser Like Mozilla Firefox . IIS maintains a detailed Log of the all request and response . IIS keeps a record about the location of content files , what security to access that files and how the files are separated into applications and what URL Mapped to these applications . IIS can be communicated with Microsoft share point , Microsoft visual studio.Net and web distributed authoring and versioning to make web content creation fast and easy
Q)What is a worker process
A)Worker process runs the asp.net application in IIS. This is responsible for manage all the request and response that coming from client system.Worker process is the back bone of a system which runs on IIS (Internet Information services)
Q) What is worker process isolation mode
A) Application Isolation was introduced in IIS 4.0, In IIS 6.0 , You can isolate one application from another so that an error in one application doesnot affect another application runninng in a different process.This application isolation model provide better isolation but it compremise the performance .This application isolation ensures a leliable envirionment for an application server
Reference : https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/333f3410-b566-49bc-8399-57bcc404db8c.mspx?mfr=true
Q)What are application pools
A)When running in worker process isolation mode you can seperate different web applications and web sites into groups known as application pools. An application pool is a group of one or more URLs that are served by a worker process or set of workerprocess . Any web directory or virtual directory can be assigned to application pool.
Q)What are the different versions of IIS ?
A) IIS 5.1,IIS 6.0,IIS 7,IIS 8,IIS 8.5, IIS 10.
Q)What is binding in IIS website ?
A) The binding helps you to configure the information required for requests to communicate with the website . You can configure your binding information when you create a website , Or you can edit the binding information after you create the site . Binding information includes the protocol that clients use to communicate with the site , the sites ip address , the port number and a host header.
Q)What are the components in IIS
A) The main components of IIS are
World wide web publishing service
Windows Process Activation services
Q)Http.sys (Hypertext Transfer protocol stack)
A)Hypertext Transfer protocol stack is the networking subsystem of windows operating systems, and it is implemented as a kernal-Mode device driver called HTTP protocol stack . HTTP.sys Listens for HTTP requests from the network, passes the request into IIS for processing and returns processed response to client browsers
Q)World wide web Publishing services
A)In IIS 7 and above , functionality that was previously handled by the world wide web publishing service (WWWW service) alone is now split between twi service: WWW Service and a new service, Windows Process Activation Services (WAS). These two services run as LocalSystem in the same Avchost.exe process and share the same binaries
Q)Windows Process Activation services
A)In IIS 7 and above , Window process activation Service (WAS) manages application and workker process insted of WWW Service. This enables you to use the same configuration and process model for HTTP and non-HTTP sites. Additionally, you can run WAS without the WWW Service if you do not need HTTP functionality. For example, you can manage a Web service through a WCF listener adapter, such as NetTcpActivator, without running the WWW Service if you do not need to listen for HTTP requests in HTTP.sys. For information about WCF listener adapters and about how to host WCF applications in IIS 7 and above by using WAS, see Hosting in WCF on MSDN.
Q)What is virtual Directory
A) By using IIS Manager , You can create a virtual directory for an asp.net web application that is hosted in IIS 7 . A virtual directory appears as root directory for the end users but actually it,s physical path may be an other directory or some other shared forder . This approach enables you to publish Web content that is not located under the root folder of the Web server, such as content that is located on a remote computer. It is also a convenient way to set up a site for local Web development work because it does not require a unique Web site for each virtual directory.
Q) What is Application Pool recycling?
A) Some times the worker process may shows some error or some session may cause un expected result. When a unhealthy worker process occurs we can manually recycle the application pool instead of waiting for a scheduled recycle . When does all unhealthy worker process shutdowns and starts a fresh one
Q)What are the different security settings available in IIS?
A) Below are the commonly used IIS Security settings
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication
Q)Identity of an application pool ?
A) Identity of an application pool is the name of the service account under which application pool's worker process runs.By default , application pools operates under the network service user account, Which has low level user rights. You can configure application pools to run under one of the built-in user account