Multiple choice technology

The command to package IIS 7 web site

  1. msdeploy.exe -verb:sync -source:apphostconfig="Default Web Site" -dest:package=c:\DefaultWebSite.zip

  2. msdeploy.exe -verb:sync -source:package=c:\dws.zip -dest:apphostconfig="Default Web Site"

  3. msdeploy.exe -verb:sync -source:metakey=lm/w3svc/1 -dest:package=c:\DefaultWebSite.Zip

  4. msdeploy.exe -verb:sync -source:package=c:\DefaultWebSite.Zip -dest:metakey=lm/w3svc/1

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The msdeploy command uses -verb:sync with source apphostconfig to read the website configuration and dest package to create a zip file. Option A correctly specifies reading from 'Default Web Site' and writing to a package.