Microsoft Internet Information Server IIS Performance & Troubleshooting 2 — Questions and Answers
Question 1: Where are IIS log files stored by default on Windows Server?
- %SystemDrive%\inetpub\logs\LogFiles (Correct answer)
- %SystemRoot%\System32\LogFiles
- %SystemDrive%\inetpub\wwwroot\logs
- %TEMP%\inetpub\logs
Correct answer: %SystemDrive%\inetpub\logs\LogFiles
IIS logs are stored by default in C:\inetpub\logs\LogFiles, with subdirectories per site (W3SVC1, W3SVC2, etc.).
Question 2: Which Windows performance counter tracks the number of current connections to all IIS websites?
- Web Service\Current Connections (Correct answer)
- HTTP Service\Total Connections
- W3WP\Active Requests
- IIS\Connection Count
Correct answer: Web Service\Current Connections
The Web Service\Current Connections counter in Performance Monitor shows live connection counts for IIS.
Question 3: What is the effect of setting the application pool 'Idle Time-out' to 0 minutes?
- The worker process never shuts down due to inactivity (Correct answer)
- The pool recycles every time a request finishes
- The pool stops immediately after each request
- The pool disables request queuing
Correct answer: The worker process never shuts down due to inactivity
Setting idle time-out to 0 disables automatic shutdown of the worker process when no requests are being processed.
Question 4: Which IIS module is responsible for serving static files like HTML, CSS, and images?
- StaticFileModule (Correct answer)
- DynamicCompressionModule
- DefaultDocumentModule
- RequestFilteringModule
Correct answer: StaticFileModule
StaticFileModule (System.WebServer/staticFile) reads files from disk and streams them to the client for non-dynamic requests.
Question 5: What tool can be used to test IIS connectivity and response headers from the command line?
- curl (Correct answer)
- IIS Manager
- appcmd.exe
- netstat
Correct answer: curl
Curl can send HTTP requests to IIS and display response headers and body, making it ideal for quick connectivity tests.
Question 6: What does enabling HTTP/2 in IIS provide compared to HTTP/1.1?
- Multiplexing multiple requests over a single TCP connection, reducing latency (Correct answer)
- Automatic SSL certificate renewal
- Built-in content delivery network support
- Server-side push of all assets automatically
Correct answer: Multiplexing multiple requests over a single TCP connection, reducing latency
HTTP/2 multiplexes multiple concurrent requests on one connection, eliminating head-of-line blocking and reducing page load times.
Where are IIS log files stored by default on Windows Server?