IIS Interview Questions:


Where is executable file w3wp.exe located?  C:\Windows\System32.

What if IIS port which we assign is already in use? We get an error of “(#Port number) is already in use by another process”

What is inetmgr? INETMGR.EXE is a type of EXE file associated with Windows NT Workstation 4.0 NL developed by Microsoft for the Windows Operating System. INETMGR is a command to launch IIS server from windows prompt. It is also used to set/reset some IIS server functions. The exe location is usually here - "C:\Windows\System32\inetsrv\InetMgr.exe"

What is the Name of Default Application Pool in IIS? DefaultAppPool

What is Recycling of Application Pool? Recycling of Application pool means, restarting of the Worker process (w3wp.exe). There are two types of recycling related with Application pool:
1. Recycling Worker Process - Predefined Settings
2. Recycling Worker Process - Based on Memory

What are the main layers of IIS Architecture? IIS having mainly two layer Kernel Mode and User Mode. Below are the subsections of both of them:
1. Kernel Mode
HTTP.SYS
2. User Mode
Web Admin Service
Virtual Directory
Application Pool

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.

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

What are the different types of Identity available in IIS 6.0? IIS having three different Identities:
1. Local System
2. Local Services
3. NetworkServices
Default Identity of IIS6.0 is NetworkServices which is having very minimum rights on your system. The user can only have the read access of the site.

Advantages of Application pool:
1. Isolation of Different Web Application
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance

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 their own Thread and Own Memory space.

How we can create a 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.

What is Web Farm? A web farm is a group of two or more servers used to host the same site. Web farms increase the capacity of a web site, and improve availability by providing fail-over. Web farms are universally used for high-traffic and mission critical websites.

What are the permission settings are available for Virtual Directory? Below are the lists of permission that can be set during virtual directory creation:
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse

What is the folder location for Virtual Directory? <Drive>:\inetpub\wwwroot

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.

Can one Web Application have multiple Application Pools? No. Every Web Application should have one Application Pool.

Which version of IIS is available in Windows Server 2008? IIS 7.0
What is the use of aspnet_regiis -i command? This is used automatically register the .NET Framework with your IIS.

What is the worker process for IIS 5.1 and IIS 6.0?
For IIS 5.1 > aspnet_wp.exe
For IIS 6.0 > w3wp.exe

From where can we set the Session Time Out in IIS? Right Click on Virtual Directory > Properties > Click on "Configuration" Button > Goto the "Option" Tab > in Enable Session State Section you can configure the Session Timeout.

How can we take back-ups in IIS Server?
Step 1: In the IIS (inetmgr), right click on the "Computer" icon under "Internet Information Services".  Click "All Tasks" and select "Backup/Restore Configuration".
Step 2: Click on button "Create backup". Give Name for your backup file. If you want encryption enable encryption option and give UserName and Password and then click OK.

How to recycle application pool from the command prompt in IIS7?
1. Use appcmd.exe to recycle the application pool from the command prompt.
2. Appcmd.exe is the command line tool for IIS7; you will find this tool at following location:
    %systemroot%\system32\inetsrv\appcmd
3. To recycle your application pool use the following command:
appcmd recycle apppool /apppool.name:<application pool name>

Which Tool is used for Remote IIS Debugging? Msvsmon.exe and is located at: Install path\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86

  

Comments

Popular posts from this blog

Internet Information Service (IIS)