Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 1

Question: You work as a Web Developer at Company.com. Company.com makes use of Microsoft ASP.NET 3.5. You use this application to create a Web site. The following code exists in a file in the App_Code folder:

namespace Company.Providers
{
public class SessionSiteMapProvider : SiteMapProvider
{
// Members omitted for brevity
}
}

You want to make sure that the SiteMapDataSource controls use the SessionSiteMapProvider class by default. What should you use do?

  1. You should add the following to the Web.config file:
    <siteMap defaultProvider="Company.Providers.SessionSiteMapProvider" />
  2. You should add the following to the Web.config file:
    <siteMap defaultProvider="SessionSiteMapProvider">
    <providers>
    <add name="Company.Providers.SessionSiteMapProvider"
    type="SiteMapProvider" />
    </providers>
    </siteMap>
  3. You should add the following to the Web.config file:<siteMap defaultProvider=”Company.Providers.SessionSiteMapProvider, App_Code” />
  4. You should add the following to the Web.config file:
    <siteMap defaultProvider="SessionSiteMapProvider">
    <providers>
    <add name="SessionSiteMapProvider"
    type=" Company.Providers.SessionSiteMapProvider, App_Code" />
    </providers>
    </siteMap>

Correct Answer: 4


Question: You work as an application developer at Company.com. You receive an instruction from management to create an ASP.NET application CK_App. You create the CK_App application that uses Microsoft .NET Framework 3.5. You decide to deploy CK_App on server in a test lab. You need to make sure that the code-behind files for the web pages are complied on the first request sent to CK_App. You must also ensure that CK_App provides the best possible performance.
What should you do?

  1. You should consider adding <compilation debug=”true”> to the Web.config file.
  2. You should consider adding <compilation debug=”true” batch=”true”> to the Web.config file.
  3. You should consider adding <compilation debug=”false”> to the Web.config file.
  4. You should consider adding <compilation debug=”auto”> to the Web.config file.

Correct Answer: 3


Question: You work as an application developer at Company.com. You make use of Microsoft .NET Framework 3.5 to create a Microsoft ASP.NET application. You application makes use of a Microsoft SQL Server 2005 computer named Company-SR02. Company-SR02 has a default instance. Company-SR02 makes use of Windows Authentication. You deploy the application on Company-SR02. You are in the process of configuring the membership providers as well as the role management providers for the application from the command prompt.
What should you do?

  1. You should execute the aspnet_regsql.exe -E -S localhost -A mr command on CompanySR02.
  2. You should execute the sqlcmd.exe -S Company-sr02 E command on Company-SR02.
  3. You should execute the aspnet_regsql.exe /server:localhost command on Company-SR02.
  4. You should execute the aspnet_regiis.exe -s Company-sr02 command on Company-SR02.

Correct Answer: 1


Question: You work as a Web Developer at Company.com. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. The configuration below exists in the Web.config file:

<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms"/>
<identity impersonate="false"/>

Company.com hosts the Web application that uses Microsoft Internet Information Services (IIS) 6.0. The Integrated Windows Authentication is enabled in IIS and anonymous access disabled.The application pool is configured to run as the identity Company\WebApp. The IIS anonymous account is Company\Anonymous. The following code exists in the code-behind file for a web form:

string name = WindowsIdentity.GetCurrent().Name;
Response.Write(name);

A Company.com employee named RoryAllen has a domain user account named Company\RAllen. He uses this account to access the page. However, Rory Allen logs in to the Web application with the user name FormsUser. You need to determine the output of this code when Rory Allen accesses the page. What will the output of this code be?

  1. The output will be FormsUser.
  2. The output will be Company\RAllen.
  3. The output will be Company\Anonymous.
  4. The output will be Company\WebApp.

Correct Answer: 4


Question: You work as an application developer at Company.com. The Company.com network contains a web server named Company-SR05. Company-SR05 runs Microsoft Internet Information Services (IIS) 6.0 and uses Windows Authentication. You are in the process of creating an ASP.NET application using .NET Framework 3.5. The application allows users to upload files to shared folders on a file server named CompanySR07. You decide to deploy this application on a Company-SR02 by making use the default ASP.NET 2.0 application pool. You receive numerous complaints from users stating that they receive an access denied message when uploading files. You need to ensure that the application functions correctly.
What should you do?

  1. Your subsequent step should be to add the <authentication mode=”None” /> section to the Web.config file.
  2. You should consider adding <identity impersonate=”true” /> to the Web.config file.
  3. You should consider enabling Anonymous Authentication on Company-SR05.
  4. You should consider adding <allow users=”*” /> to the <authorization> section ofthe Web.config file.
  5. You should consider enabling Anonymous Authentication on Company-SR07.

Correct Answer: 2

Tagged . Bookmark the permalink.

Leave a Reply