You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to create a Customer object that contains an Orders property. The Orders property
contains an array of Order objects.
When users browse Customer objects, they must be able to optionally view Order objects. You need to design a data access strategy that retrieves data only when necessary.
Which strategy should you use?
A. lazy loadingYou are designing a .NET Framework 4 solution that contains a Windows Presentation Foundation (WPF) application and a Windows Communication Framework (WCF) Web service. The WPF application will be deployed to users' desktops located in the company's corporate network. The WCF Web service will be deployed to a Web farm located in the company's perimeter network. The firewall between the perimeter network and the Internet allows only HTTP and HTTPS traffic.
You need to recommend an approach for minimizing the attack surface of the WCF Web service. What should you recommend?
A. Add a load-balancing router to the Web farm configuration.You are developing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008.
The application will store data in a SQL Server database instance.
You plan to use the Code Generation technology to develop data entities.
You need to ensure that the following requirements are met:
When the application runs, a database must be created if it does not already exist.
When the database schema changes, data entities must be added dynamically.
Which data access technology should you use?
A. LINQ to SQLYou are analyzing a Windows client application that uses Microsoft Visual Studio 2010 and Microsoft SQL Server 2008.
The application updates two database tables from the main user interface (UI) thread. You need to ensure that the following requirements are met:
The database tables are either updated simultaneously or not updated at all.
Users are notified of the success or failure of the updates.
Users are able to perform other tasks during the update process.
What should you do?
A. Use TransactionScope in a using block on the UI thread. Batch the database updates by setting the DbDataAdapter.UpdateBatchSize property to 2.You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consist of a user interface (UI) tier and a middle tier. The middle tier will be implemented by using Windows Communication I Foundation (WCF).
Each method in the middle tier will contain the following catch block.
Catch (Argument-NullException e)
{ thcow e; }
When testing the application, you discover that all ArgumentNullExceptions exceptions that occur in the middle tier do not contain accurate stack trace information.
You need to design the exception handling strategy for the application.
What should you do?
A. Create an ArgumentFMullException handler in the UI tier.You are deploying an application on Windows client computers by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You need to ensure that the deployment package meets the following requirements:
Grants only the necessary permissions Adds a shortcut to the Windows Start menu Registers the application within Programs and Features ?Can be published to a Web site
Which deployment strategy should you use?
A. XCopyYou are designing an n-tier solution that connects to a Microsoft SQL Server 2008 database.
You plan to deploy the database to development machines and to a staging database server from within Microsoft Visual Studio 2010. You plan to set up separate build configurations for development and staging. You also plan to deploy to
multiple production database servers managed by an outside vendor.
You must not allow the outside vendor to access the visual Studio projects.
You need to recommend an approach for configuring and deploying the production database servers.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Use a SQL Server 2008 Database Project.You are designing an n-tier .NET Framework 4 solution that includes a Windows Presentation Foundation (WPF) application and a Windows Workflow Foundation (WF) component. The WF component contains functionality to incorporate
frequently changing rules.
You need to recommend a tier for the deployment of the WF component that will not degrade the performance of the WPF application.
Which tier should you recommend?
A. The business tierYou are designing an update to an existing Windows Presentation Foundation (WPF) application. Users can purchase and download photographs from the company's Web server by using the WPF application. Photographs must be viewable
only when logged in as the user who purchased the photographs.
You need to recommend a download location for the photographs.
Which location should you recommend?
A. the application's IsolatedStorage folderWhich to possible ways to call operation without blocking of UI thread?
A. Use async call of operation in main threadNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-518 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.