Web Developer Framework 4.0 Sample Questions – 31

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server. You need to ensure that applications authenticate against user information stored in the database before the application is allowed to use the service. Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)

  1. Configure IIS to require basic authentication.
  2. Configure IIS to allow anonymous access.
  3. Configure IIS to require Windows authentication.
  4. Enable the WCF Authentication Service.
  5. Modify the Data Services service to use a Microsoft ASP.NET membership provider.

Correct Answer: 2 & 5


Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service.
You discover that when an application submits a PUT or DELETE request to the Data Services service, it receives an error. You need to ensure that the application can access the service. Which header and request type should you use in the application

  1. an X-HTTP-Method header as part of a POST request
  2. an X-HTTP-Method header as part of a GET request
  3. an HTTP ContentType header as part of a POST request
  4. an HTTP ContentType header as part of a GET request

Correct Answer: 1


Question: You create a Web page that contains drop-down menus that are defined by using div tags in the following code.

You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.
Which code segment should you use

Correct Answer: 2


Question: You are designing a data access service backed by Microsoft SQL Server. Other developers will use your service as a third-party service. You have the following requirements:

  • To reduce maintenance cost, you must write the minimal amount of code required for fulfilling the goals.
  • The service must function with Microsoft and non-Microsoft technologies.
  • The service must implement the WS-Security standards.
      You need to design the service to meet the requirements.

 

    Which approach should you recommend

    1. Use an ASP.NET Web service.
    2. Use SQL Server XML Web services.
    3. Use a WCF service with multiple bindings.
    4. Use an .ashx file to return an XML response over HTTPS.

Correct Answer: 3


Question: You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel. Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)

    1. In your site’s master page, add a call to Sys.loader.defineScripts to define each of the scripts that are used in the site.
    2. In your site’s master page, add a call to Sys.loader.registerScript to define each of the scripts that are used in the site.
    3. In each page that uses scripts, add a call to Sys.get for each script that is needed in that page.
    4. In each page that uses scripts, add a call to Sys.require for each script that is needed in that page.

Correct Answer: 1 & 4

Tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.