Multiple choice practice

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

IIS practice testMultiple choice Question 1 of 10

Which CLR version does an ASP.NET MVC 5 app pool need?

Score so far: 0/0

All questions with answers

  1. Which .NET CLR setting should an ASP.NET Core app pool use?

    • Av4.0
    • Bv2.0
    • CNo Managed Code
    • DClassic
    Show answer

    Answer: C. No Managed Code

    ASP.NET Core does not use the CLR loaded by IIS.

  2. Which component lets IIS run ASP.NET Core apps?

    • AURL Rewrite
    • BASP.NET Core Module (ANCM)
    • CWebDAV
    • DFastCGI
    Show answer

    Answer: B. ASP.NET Core Module (ANCM)

    It is installed by the .NET Hosting Bundle.

  3. What is the default periodic recycling interval for an app pool?

    • A20 minutes
    • B1,740 minutes
    • C24 hours exactly
    • DNever
    Show answer

    Answer: B. 1,740 minutes

    1,740 minutes = 29 hours.

  4. Which error usually means web.config is invalid or uses a module that is not installed?

    • A403.14
    • B404.3
    • C500.19
    • D503
    Show answer

    Answer: C. 500.19

    HTTP 500.19 is a configuration error.

  5. What does HTTP 503 Service Unavailable from IIS often mean?

    • AMissing file
    • BThe application pool is stopped
    • CBad SSL certificate
    • DWrong MIME type
    Show answer

    Answer: B. The application pool is stopped

    Rapid-fail protection may have stopped the pool.

  6. Which feature lets several HTTPS sites share one IP and port 443?

    • AHost headers only
    • BServer Name Indication (SNI)
    • CARR
    • DWeb Deploy
    Show answer

    Answer: B. Server Name Indication (SNI)

    SNI selects the certificate by host name.

  7. Which module is required to rewrite SPA routes to index.html?

    • AURL Rewrite
    • BOutput Caching
    • CRequest Filtering
    • DCGI
    Show answer

    Answer: A. URL Rewrite

    URL Rewrite is a separate free download.

  8. Where are IIS W3C logs stored by default?

    • AC:\Windows\Logs
    • B%SystemDrive%\inetpub\logs\LogFiles
    • CThe site folder
    • DEvent Viewer only
    Show answer

    Answer: B. %SystemDrive%\inetpub\logs\LogFiles

    One subfolder per site, e.g. W3SVC1.

  9. Which request filtering setting limits upload size?

    • AmaxUrl
    • BmaxAllowedContentLength
    • CmaxQueryString
    • DfileExtensions
    Show answer

    Answer: B. maxAllowedContentLength

    Default is 30,000,000 bytes (about 28.6 MB).

  10. Which PowerShell module provides Get-IISSite and New-IISSite?

    • AAz
    • BIISAdministration
    • CActiveDirectory
    • DPester
    Show answer

    Answer: B. IISAdministration

    IISAdministration is the modern IIS module.

  11. Which process runs application code in IIS?

    • Aexplorer.exe
    • Bw3wp.exe
    • Csvchost.exe only
    • Diisreset.exe
    Show answer

    Answer: B. w3wp.exe

    w3wp.exe is the IIS worker process.

    From the lesson: Introduction to IIS
  12. ASP.NET Core can only run on IIS.

    • ATrue
    • BFalse
    Show answer

    Answer: B. False

    Kestrel runs on Windows, Linux, macOS and in containers.

    From the lesson: Introduction to IIS
  13. Which PowerShell cmdlet installs IIS on Windows Server?

    • AInstall-Module
    • BInstall-WindowsFeature
    • CAdd-IIS
    • DNew-Website
    Show answer

    Answer: B. Install-WindowsFeature

    Install-WindowsFeature adds server roles and features.

    From the lesson: Installing IIS
  14. Where are site bindings stored?

    • AThe site’s web.config
    • BapplicationHost.config
    • CThe registry
    • Dmachine.config
    Show answer

    Answer: B. applicationHost.config

    Sites and bindings are defined in applicationHost.config.

    From the lesson: IIS Manager
  15. Which component starts and recycles w3wp.exe processes?

    • AHTTP.sys
    • BWAS (Windows Process Activation Service)
    • CKestrel
    • DURL Rewrite
    Show answer

    Answer: B. WAS (Windows Process Activation Service)

    WAS manages worker process lifetime.

    From the lesson: IIS Architecture
  16. How can two HTTPS sites share port 443 with different certificates?

    • ADifferent physical paths
    • BServer Name Indication (SNI)
    • CDifferent app pools
    • DStatic compression
    Show answer

    Answer: B. Server Name Indication (SNI)

    SNI selects the certificate by host name.

    From the lesson: Websites and Bindings
  17. Which can have its own application pool?

    • AVirtual directory
    • BApplication
    • CMIME type
    • DBinding
    Show answer

    Answer: B. Application

    Applications can run in separate pools.

    From the lesson: Applications and Virtual Directories
  18. Which pipeline mode should new apps use?

    • AClassic
    • BIntegrated
    • CHybrid
    • DLegacy
    Show answer

    Answer: B. Integrated

    Integrated is the modern pipeline.

    From the lesson: Application Pools
  19. What is the Windows account name for ApplicationPoolIdentity of a pool called ApiPool?

    • ANT AUTHORITY\SYSTEM
    • BIIS AppPool\ApiPool
    • CIUSR
    • DAdministrator
    Show answer

    Answer: B. IIS AppPool\ApiPool

    Each pool gets a virtual account with its name.

    From the lesson: Application Pool Identity
  20. What is lost when an app pool recycles?

    • AFiles on disk
    • BIn-memory sessions and caches
    • CThe database
    • DThe site bindings
    Show answer

    Answer: B. In-memory sessions and caches

    The old process and its memory are discarded.

    From the lesson: Application Pool Recycling
  21. Which error appears when a folder has no default document and directory browsing is disabled?

    • A404.0
    • B403.14
    • C500.19
    • D401.2
    Show answer

    Answer: B. 403.14

    403.14 Forbidden — directory listing denied.

    From the lesson: Default Document and Directory Browsing
  22. What does the .NET Hosting Bundle install?

    • AVisual Studio
    • BThe .NET runtime and the ASP.NET Core Module
    • CSQL Server
    • DURL Rewrite
    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 Core
  23. Which attribute enables writing console output to a log file?

    • AlogEnabled
    • BstdoutLogEnabled
    • CtraceEnabled
    • Ddebug
    Show answer

    Answer: B. stdoutLogEnabled

    stdoutLogEnabled with stdoutLogFile.

    From the lesson: web.config for ASP.NET Core
  24. Which CLR version does an ASP.NET MVC 5 app pool need?

    • ANo Managed Code
    • Bv2.0
    • Cv4.0
    • Dv9.0
    Show answer

    Answer: C. v4.0

    .NET Framework 4.x uses the v4.0 CLR.

    From the lesson: Hosting ASP.NET Framework Apps
  25. Why does refreshing /dashboard in a SPA return 404 without a rewrite rule?

    • AThe app crashed
    • BNo dashboard file exists on the server
    • CWrong MIME type
    • DSSL error
    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