Microsoft Internet Information Server IIS Installation & Configuration 2 — Questions and Answers
Question 1: What is an IIS Application Pool used for?
- Isolating worker processes for different web applications (Correct answer)
- Pooling IP addresses for load balancing
- Managing DNS entries for websites
- Storing session state for ASP.NET apps
Correct answer: Isolating worker processes for different web applications
Application pools isolate web applications in separate worker processes (w3wp.exe) to improve security and stability.
Question 2: Which managed pipeline mode in IIS application pools offers the highest compatibility with classic ASP.NET applications?
- Classic (Correct answer)
- Integrated
- Worker
- Legacy
Correct answer: Classic
Classic mode routes requests through ISAPI like IIS 6, maintaining backward compatibility with older ASP.NET apps.
Question 3: How do you set the physical path of an IIS website's root directory in IIS Manager?
- Edit the Basic Settings of the site (Correct answer)
- Modify the applicationHost.config manually only
- Set it in the application pool advanced settings
- Change it through Registry Editor
Correct answer: Edit the Basic Settings of the site
Right-clicking a site and selecting 'Basic Settings' in IIS Manager lets you change the physical path.
Question 4: What does binding a hostname (host header) to an IIS site allow you to do?
- Host multiple sites on a single IP address using different domain names (Correct answer)
- Encrypt traffic with SSL automatically
- Set the site's default document
- Enable Windows Authentication
Correct answer: Host multiple sites on a single IP address using different domain names
Host headers let IIS route requests to different sites on the same IP and port based on the requested domain name.
Question 5: Which PowerShell module provides cmdlets for managing IIS from the command line?
- WebAdministration (Correct answer)
- IISAdministration
- NetAdministration
- ServerManager
Correct answer: WebAdministration
The WebAdministration module (Import-Module WebAdministration) exposes IIS: provider drive and cmdlets like New-Website.
Question 6: What is the purpose of the Default Document feature in IIS?
- Automatically serve a specific file (e.g., index.html) when no file is specified in the URL (Correct answer)
- Define the error page for 404 responses
- Set the site's default authentication method
- Configure the application pool identity
Correct answer: Automatically serve a specific file (e.g., index.html) when no file is specified in the URL
The Default Document feature defines which file IIS serves when a request targets a directory without a filename.
What is an IIS Application Pool used for?