IIS MCQ questions
Take a short practice test with instant feedback, then revise every question with its answer and the reason behind it.
- Questions
- 43
- From lessons
- 33
- Your last test
- —
Practice test
Which CLR version does an ASP.NET MVC 5 app pool need?
All questions with answers
Which .NET CLR setting should an ASP.NET Core app pool use?
Show answer
Answer: C. No Managed Code
ASP.NET Core does not use the CLR loaded by IIS.
Which component lets IIS run ASP.NET Core apps?
Show answer
Answer: B. ASP.NET Core Module (ANCM)
It is installed by the .NET Hosting Bundle.
What is the default periodic recycling interval for an app pool?
Show answer
Answer: B. 1,740 minutes
1,740 minutes = 29 hours.
Which error usually means web.config is invalid or uses a module that is not installed?
Show answer
Answer: C. 500.19
HTTP 500.19 is a configuration error.
What does HTTP 503 Service Unavailable from IIS often mean?
Show answer
Answer: B. The application pool is stopped
Rapid-fail protection may have stopped the pool.
Which feature lets several HTTPS sites share one IP and port 443?
Show answer
Answer: B. Server Name Indication (SNI)
SNI selects the certificate by host name.
Which module is required to rewrite SPA routes to index.html?
Show answer
Answer: A. URL Rewrite
URL Rewrite is a separate free download.
Where are IIS W3C logs stored by default?
Show answer
Answer: B. %SystemDrive%\inetpub\logs\LogFiles
One subfolder per site, e.g. W3SVC1.
Which request filtering setting limits upload size?
Show answer
Answer: B. maxAllowedContentLength
Default is 30,000,000 bytes (about 28.6 MB).
Which PowerShell module provides Get-IISSite and New-IISSite?
Show answer
Answer: B. IISAdministration
IISAdministration is the modern IIS module.
Which process runs application code in IIS?
Show answer
ASP.NET Core can only run on IIS.
Show answer
Answer: B. False
Kestrel runs on Windows, Linux, macOS and in containers.
From the lesson: Introduction to IISWhich PowerShell cmdlet installs IIS on Windows Server?
Show answer
Answer: B. Install-WindowsFeature
Install-WindowsFeature adds server roles and features.
From the lesson: Installing IISWhere are site bindings stored?
Show answer
Answer: B. applicationHost.config
Sites and bindings are defined in applicationHost.config.
From the lesson: IIS ManagerWhich component starts and recycles w3wp.exe processes?
Show answer
Answer: B. WAS (Windows Process Activation Service)
WAS manages worker process lifetime.
From the lesson: IIS ArchitectureHow can two HTTPS sites share port 443 with different certificates?
Show answer
Answer: B. Server Name Indication (SNI)
SNI selects the certificate by host name.
From the lesson: Websites and BindingsWhich can have its own application pool?
Show answer
Answer: B. Application
Applications can run in separate pools.
From the lesson: Applications and Virtual DirectoriesWhich pipeline mode should new apps use?
Show answer
What is the Windows account name for ApplicationPoolIdentity of a pool called ApiPool?
Show answer
Answer: B. IIS AppPool\ApiPool
Each pool gets a virtual account with its name.
From the lesson: Application Pool IdentityWhat is lost when an app pool recycles?
Show answer
Answer: B. In-memory sessions and caches
The old process and its memory are discarded.
From the lesson: Application Pool RecyclingWhich error appears when a folder has no default document and directory browsing is disabled?
Show answer
Answer: B. 403.14
403.14 Forbidden — directory listing denied.
From the lesson: Default Document and Directory BrowsingWhat does the .NET Hosting Bundle install?
Show answer
Answer: B. The .NET runtime and the ASP.NET Core Module
It installs the runtime and the IIS module.
From the lesson: Hosting ASP.NET CoreWhich attribute enables writing console output to a log file?
Show answer
Answer: B. stdoutLogEnabled
stdoutLogEnabled with stdoutLogFile.
From the lesson: web.config for ASP.NET CoreWhich CLR version does an ASP.NET MVC 5 app pool need?
Show answer
Why does refreshing /dashboard in a SPA return 404 without a rewrite rule?
Show answer
Answer: B. No dashboard file exists on the server
The route only exists in the browser app.
From the lesson: Hosting React and Angular Apps