Complete IIS Interview Questions And Answers Part -1
1. How we can open IIS Configuration manager ?
Just simply Run >inetmgr
Or we can open it from control panel > Administrative tools.
2. How we can create a Virtual Directory on IIS ?
Open IIS Configuration Manager
First of all Right Click on Default web sites > New > Virtual Directory .
Browse the Physical Path. Set the properites. Click on OK
3. What are the permission settings are available for Virtual Directory ?
Below are the list of permission that can be set during virtaul directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse
4. What is the folder location for Virtual Directory ?
:\inetpub\wwwroot
5. What is the use of Enable Pinging Properties for Application Pool ?
IIS should periodically monitor the health of a worker process [ Idle or not , Time for recycle or not, All Worker process are running properly or not ] .
Pining means, Activation Process monitor Worker process performance, health, idle time etc.
By default it sets to 30s .
6. Does One Web Application can have multiple Application Pool ?
No. Every Web Application should have one Application Pool. Bydefault it is "DefaultAppPool ".
7. Which version of IIS is available in Windows Server 2008 ?
IIS 7.0 .
Even Vista Home Premium and Ultimate edition is also having IIS 7.0
8. How we can save an Application Pool Settings?
Application Pool Settings can be save as "XML" Format.
Right Click on Application Pool > All Task > Save Configuration to a File .
This will save all the settings of Application Pool as an XML file.We can make it password protected also.
9. Which Tool is used for Remote IIS Debugging ?
Tools is : msvsmon.exe
This is located at : Install path\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86
10. What are the different authentication mode available for IIS Remote Debugging ?
For IIS Remote Debugging msvsmon supported two authentication mode
1. Windows Authentication
2. No-Authentication
11. How can we get the list of worker process running in IIS along with the Application pool name ?
By running iisapp.vbs script from command Prompt.
Below are the steps :
1. Start > Run > Cmd
2. Go To Windows > System32
3. Run cscript iisapp.vbs
12. If there are multiple worker process running on IIS, then how can you attach a particular worker process for application ?
Well, If there are multiple worker process running in IIS, it means I have to know the name of my application pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the process Id for particular application I have to attache the process from Visual studio IDE.
13. Why do we need to IIS Remote Debugging ?
There are following reasons where we can use remote debugging
1. Your development server does not have IIS installed.
2. Development server and Build/Released/Hosting Server is different
3. Multiple user want to debug simultaneously.
14. Does IIS allows multiple user to Remote debug simultaneously ?
Yes. This is one of the great features of msvsmon.exe . Each instance of the remote debugger has a unique server name.we can give an instance of the remote debugger any server name. Now multiple user can able to access the server instance.
15. What is the use of aspnet_regiis -i command ?
This is used automatically register the .NET Framework with your IIS.
16. What is the Role of IIS ?
Visual studio having It own ASP.NET Engine which is capable enough to run Asp.net web application from visual studio. So we just click on Run button to start the application.
Now this is the scenarios of local environment. But If we want to host it on server from where all user can access the sites then IIS comes into the picture.
IIS provides a redesigned WWW architecture that can help you achieve better performance, reliability, scalability, and security for our Web sites. IIS can support following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself.
Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself.
There are different version of IIS available like 5.1, 6.0, 7.0 etc
16. What are the different version on IIS that you have worked on ?
Before answering this question you need to know what are the different IIS version is available in different OS. Below is the list of IIS version with different Operating system.
Windows Server 2008 - Windows Vista - Home Premium/ Ultimate - IIS 7.0
Windows Server 2003 - IIS 6.0
Windows XP Professional - IIS 5.1
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc.
Now, the next question that can asked after answering this question is “what is the difference between them ? ” – Well I will come with this later.
17. What is Application Pool in IIS ?
Before Giving the Definition : you can say like this, Concept of Application pool has from IIS 6.0 .
Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running with out impacting each other . The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected.
One Application Pool can have multiple worker process Also.
Main Point to Remember:
1. Isolation of Different Web Application
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance
18. What is the Name of Default Application Pool in IIS ?
Though we can create new application pool IIS with different settings, but IIS having its own default application pool named : DefaultAppPool
19. What are the different types of Identity available in IIS 6.0 ?
IIS having three different Identity.
1. Local System
2. Local Services
3. NetworkServices
Name of default Identity of IIS6.0
Default Identity of IIS 6.0 is NetworkServices .
Which is having very minimum rights on your system. The user can only have the read access of the site.
20. What is Recycling of Application Pool ?
Recycling Application pool means recycle the Worker process (w3wp.exe ) and the memory used for the web application.
There are two types of recycling related with Application pool
1. Recycling Worker Process - Predefined Settings
2. Recycling Worker Process - Based on Memory
21. What are the main layers of IIS Architecture ?
IIS having mainly two layer Kernel Mode and User Mode
Below are the subsection of both of them.
1. Kernel Mode
o HTTP.SYS
2. User Mode
o Web Admin Service
o Virtual Directory
o Application Pool
22. What is the Role of Http.Sys in IIS ?
HTTP.SYS is the kernel level components of IIS. All client request comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request.
Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.
23. What are the different security settings available in IIS ?
Below are the commonly used IIS Security settings
1 Anonymous
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication
For Set security permission you need to go to Virtul Directory > Right Click > Properties > Directory Security
Click on Edit Button .
24. What is the default authentication settings for IIS ?
Anonymous authentication is the default authentication mode for any site that is hosted on IIS, and it runs under the "IUSR_[ServerName]" account.
25. What is web garden ?
By default Each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Process With a Single Application Pool. An Application Poll with multiple Worker process called Web Gardens. Each Worker Process Should have there own Thread and Own Memory space.
Generally its not recommended to use InProc Session mode while we are using Web Garden.
Where session data stores in case of "In-Proc" Session mode ?
Session data store inside process memory of worker process [ w3wp.exe ] .
26. How we can create an web garden ?
For creating web graden we need to go to Application Pool, then Right Click on Application Pool > Properties > Goto Performance Tab
In Web Garden Section, increase the number of worker process. By default it is 1.
How we can debug a web application which is hosted on IIS ?
We can easily debug any web application that are hosted on IIS by using Attaching of Worker Process.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.
1. How we can open IIS Configuration manager ?
Just simply Run >inetmgr
Or we can open it from control panel > Administrative tools.
2. How we can create a Virtual Directory on IIS ?
Open IIS Configuration Manager
First of all Right Click on Default web sites > New > Virtual Directory .
Browse the Physical Path. Set the properites. Click on OK
3. What are the permission settings are available for Virtual Directory ?
Below are the list of permission that can be set during virtaul directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse
4. What is the folder location for Virtual Directory ?
5. What is the use of Enable Pinging Properties for Application Pool ?
IIS should periodically monitor the health of a worker process [ Idle or not , Time for recycle or not, All Worker process are running properly or not ] .
Pining means, Activation Process monitor Worker process performance, health, idle time etc.
By default it sets to 30s .
6. Does One Web Application can have multiple Application Pool ?
No. Every Web Application should have one Application Pool. Bydefault it is "DefaultAppPool ".
7. Which version of IIS is available in Windows Server 2008 ?
IIS 7.0 .
Even Vista Home Premium and Ultimate edition is also having IIS 7.0
8. How we can save an Application Pool Settings?
Application Pool Settings can be save as "XML" Format.
Right Click on Application Pool > All Task > Save Configuration to a File .
This will save all the settings of Application Pool as an XML file.We can make it password protected also.
9. Which Tool is used for Remote IIS Debugging ?
Tools is : msvsmon.exe
This is located at : Install path\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86
10. What are the different authentication mode available for IIS Remote Debugging ?
For IIS Remote Debugging msvsmon supported two authentication mode
1. Windows Authentication
2. No-Authentication
11. How can we get the list of worker process running in IIS along with the Application pool name ?
By running iisapp.vbs script from command Prompt.
Below are the steps :
1. Start > Run > Cmd
2. Go To Windows > System32
3. Run cscript iisapp.vbs
12. If there are multiple worker process running on IIS, then how can you attach a particular worker process for application ?
Well, If there are multiple worker process running in IIS, it means I have to know the name of my application pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the process Id for particular application I have to attache the process from Visual studio IDE.
13. Why do we need to IIS Remote Debugging ?
There are following reasons where we can use remote debugging
1. Your development server does not have IIS installed.
2. Development server and Build/Released/Hosting Server is different
3. Multiple user want to debug simultaneously.
14. Does IIS allows multiple user to Remote debug simultaneously ?
Yes. This is one of the great features of msvsmon.exe . Each instance of the remote debugger has a unique server name.we can give an instance of the remote debugger any server name. Now multiple user can able to access the server instance.
15. What is the use of aspnet_regiis -i command ?
This is used automatically register the .NET Framework with your IIS.
16. What is the Role of IIS ?
Visual studio having It own ASP.NET Engine which is capable enough to run Asp.net web application from visual studio. So we just click on Run button to start the application.
Now this is the scenarios of local environment. But If we want to host it on server from where all user can access the sites then IIS comes into the picture.
IIS provides a redesigned WWW architecture that can help you achieve better performance, reliability, scalability, and security for our Web sites. IIS can support following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself.
Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself.
There are different version of IIS available like 5.1, 6.0, 7.0 etc
16. What are the different version on IIS that you have worked on ?
Before answering this question you need to know what are the different IIS version is available in different OS. Below is the list of IIS version with different Operating system.
Windows Server 2008 - Windows Vista - Home Premium/ Ultimate - IIS 7.0
Windows Server 2003 - IIS 6.0
Windows XP Professional - IIS 5.1
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc.
Now, the next question that can asked after answering this question is “what is the difference between them ? ” – Well I will come with this later.
17. What is Application Pool in IIS ?
Before Giving the Definition : you can say like this, Concept of Application pool has from IIS 6.0 .
Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running with out impacting each other . The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected.
One Application Pool can have multiple worker process Also.
Main Point to Remember:
1. Isolation of Different Web Application
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance
18. What is the Name of Default Application Pool in IIS ?
Though we can create new application pool IIS with different settings, but IIS having its own default application pool named : DefaultAppPool
19. What are the different types of Identity available in IIS 6.0 ?
IIS having three different Identity.
1. Local System
2. Local Services
3. NetworkServices
Name of default Identity of IIS6.0
Default Identity of IIS 6.0 is NetworkServices .
Which is having very minimum rights on your system. The user can only have the read access of the site.
20. What is Recycling of Application Pool ?
Recycling Application pool means recycle the Worker process (w3wp.exe ) and the memory used for the web application.
There are two types of recycling related with Application pool
1. Recycling Worker Process - Predefined Settings
2. Recycling Worker Process - Based on Memory
21. What are the main layers of IIS Architecture ?
IIS having mainly two layer Kernel Mode and User Mode
Below are the subsection of both of them.
1. Kernel Mode
o HTTP.SYS
2. User Mode
o Web Admin Service
o Virtual Directory
o Application Pool
22. What is the Role of Http.Sys in IIS ?
HTTP.SYS is the kernel level components of IIS. All client request comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request.
Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.
23. What are the different security settings available in IIS ?
Below are the commonly used IIS Security settings
1 Anonymous
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication
For Set security permission you need to go to Virtul Directory > Right Click > Properties > Directory Security
Click on Edit Button .
24. What is the default authentication settings for IIS ?
Anonymous authentication is the default authentication mode for any site that is hosted on IIS, and it runs under the "IUSR_[ServerName]" account.
25. What is web garden ?
By default Each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Process With a Single Application Pool. An Application Poll with multiple Worker process called Web Gardens. Each Worker Process Should have there own Thread and Own Memory space.
Generally its not recommended to use InProc Session mode while we are using Web Garden.
Where session data stores in case of "In-Proc" Session mode ?
Session data store inside process memory of worker process [ w3wp.exe ] .
26. How we can create an web garden ?
For creating web graden we need to go to Application Pool, then Right Click on Application Pool > Properties > Goto Performance Tab
In Web Garden Section, increase the number of worker process. By default it is 1.
How we can debug a web application which is hosted on IIS ?
We can easily debug any web application that are hosted on IIS by using Attaching of Worker Process.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.