15 tips on How to 70-518 Test Like a Badass

70-518 Royal Pack Testengine pdf

100% Actual & Verified — 100% PASS

Unlimited access to the world's largest Dumps library! Try it Free Today!

Get it now →

Product Description:
Exam Number/Code: 70-518
Exam name: PRO: Design & Develop Wndws Apps Using MS .NET Frmwrk 4
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Free Certification Real IT 70-518 Exam pdf Collection

Question No. 61

An existing Windows application uses a Windows Communication Foundation (WCF) Web service that is available only to employees. 

You have the following requirements: 

Make the WCF Web service available to business partners. 

Enable business partners to send a profile token. 

Ensure that the currently deployed application continues to function. 

You need to recommend a solution that meets the requirements. 

What should you recommend? 

A. Convert the WCF Web service to a Duplex service that implements a callback to accept the profile token. 

B. Use SOAP headers to pass the profile token to the service operations. 

C. Modify the WCF Web service operations to accept the profile token as an additional parameter. 

D. Implement the WCF Web service as a REST service. 

Answer:


Question No. 62

You are creating a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

The business logic layer of the application is implemented by using Windows Communication Foundation (WCF). 

The application must provide maximum availability. It must be able to run in a reliable manner even when network connectivity is not available. 

You need to design the WCF service interaction for the business layer of the application. 

What should you do? 

A. Create a WCF queued service. 

B. Create a WCF proxy class that uses synchronous operations. 

C. Create a WCF proxy class that uses asynchronous operations. 

D. Create a WCF service that uses the Ws2007HttpBinding binding. 

Answer:


Question No. 63

You are designing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. You need to design a data access strategy that meets the following requirements: 

. Automatically tracks changes 

. Maps the database data model to the object model 

Which data access technology should you use? 

A. LINQ to SQL 

B. LINQ to XML 

C. ADO.NET DataSet 

D. ADO.NET DataReader 

Answer:


Question No. 64

You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft NET Framework 4. 

The user interface (UI) tier of the application will be implemented by using WPF. 

The middle tier of the application will be implemented by using Windows Communication Foundation (WCF). 

The middle tier will contain several methods that update data in a remote database. 

The middle tier will also contain a long-running method named Process Data. 

The Process Data method performs database operations and can take several minutes to complete. 

You need to ensure that the UI of the application can continue to call other methods while the Process Data method is running What should you do? 

A. Implement the Process Data method by using Windows Workflow Foundation (WF). 

B. Implement the Process Data method by using the Invoke method on the Dispatcher class. 

C. Call the Run method of the Dispatcher class before invoking the Process Data method 

D. Call the Do Events method of the Application class before invoking the Process Data method 

Answer:


Question No. 65

You are designing the data access layer (DAL) for an application that uses Microsoft SQL Server 2008, Microsoft ADO.NET, and Microsoft Visual Studio 2010. 

Conflicts are occurring in the SQL Server database due to concurrent updates. 

You need to design a database locking strategy that meets the following requirements: 

. Resolves concurrent update conflicts without loss of data 

. Ensures that data conflicts can be resolved by users 

. Locks only the data necessary for updates 

What should you do? 

A. Use optimistic locking. Terminate the update when a DBConcurrencyException occurs. 

B. Use pessimistic locking. Terminate the update when a DBConcurrencyException occurs. 

C. Use pessimistic locking. Retry the failing update operation in the DBConcurrencyException exception handler until it succeeds. 

D. Use optimistic locking. In the DBConcurrencyException exception handler, display the data of both original and updated records to the user. Allow the user to resolve the conflicts. 

Answer:


Question No. 66

You are reviewing an existing Windows application that uses .NET Framework 4. 

When the user clicks a button, the application sequentially processes thousands of image files contained in a directory. The user interface becomes unresponsive while the application processes the files. 

You have the following requirements: 

Modify the button's click event. 

Increase application throughput by processing multiple image files concurrently. 

Ensure that the user interface remains responsive while the application processes the image files. 

You need to recommend an approach for meeting the requirements. 

What should you recommend? 

A. Iterate over the image files. For each image file, use the Process.Start() method to launch a console application that processes the image file. 

B. Use the ThreadPool.QueueUserWorkItem() method to queue up a single work item that uses the Parallel.ForEach () method to process the image files concurrently. 

C. Use the Parallel.ForEach() method to process the images concurrently. 

D. Iterate over the image files by using the Parallel.ForEach()method. For each image file, start a separate thread that processes the image file, by using the Thread.Start() method. 

Answer:


Question No. 67

You 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. 

B. Configure a WCF endpoint to use the basicHttpBinding binding. 

C. Configure a WCF endpoint to use the NetTcpBinding binding. 

D. Set up an SSL certificate on the server. 

Answer:


Question No. 68

You are designing a .NET Framework 4 solution that contains a Windows Presentation Foundation (WPF) application. The WPF application includes CPU-intensive calculations. The calculations can be run on a separate process and can effectively be isolated from the rest of the WPF application. 

You need to recommend a deployment strategy that maximizes the scalability of the calculations for each user. 

What should you recommend? 

A. Deploy the calculation logic as a separate assembly along with the WPF application to each client computer. Invoke methods in the assembly asynchronously. 

B. Deploy the calculation logic as a separate assembly along with the WPF application to each client computer. Invoke methods in the assembly synchronously. 

C. Deploy the calculation logic as a Windows Communication Foundation (WCF) service to servers. Deploy the WPF application to each client computer. 

D. Deploy the calculation logic as a Windows Communication Foundation (WCF) service to servers. Deploy the WPF application to the same servers. 

Answer:


Question No. 69

You are designing a Windows Presentation Foundation (WPF) application. The application data files have the file name extension.abc. 

The WPF application installer must meet the following requirements: 

Add a shortcut to the desktop. 

Install infrequently used assemblies on demand. 

Associate the .abc file name extension with the WPF application. 

Roll back the installation in the event of a failure. 

You need to recommend a deployment method. What should you recommend? 

A. ClickOnce 

B. XCopy 

C. Background Intelligent Transfer Service (BITS) 

D. Windows Installer 

Answer:


Question No. 70

You are designing a Windows Presentation Foundation (WPF) application. 

The WPF application must run against either Microsoft SQL Server 2008 or a third-party database system without duplicating data access logic. 

You need to recommend a data access technology. 

What should you recommend? 

A. ADO.NET using DataSet objects and SqlDataAdapter objects 

B. LINQ to Entities 

C. LINQ to SQL 

D. ADO.NET using DataSet objects and SqlDataReader objects 

Answer:


Question No. 71

You are creating a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

The business logic layer of the application is implemented by using Windows Communication Foundation (WCF). 

The application must provide maximum availability. It must be able to run in a reliable manner even when network connectivity is not available. 

You need to design the WCF service interaction for the business layer of the application. 

What should you do? 

A. Create a WCF queued service. 

B. Create a WCF proxy class that uses synchronous operations. 

C. Create a WCF proxy class that uses asynchronous operations. 

D. Create a WCF service that uses the Ws2007HttpBinding binding. 

Answer:


Question No. 72

You are reviewing an existing Windows application that uses .NET Framework 4. 

When the user clicks a button, the application sequentially processes thousands of image files contained in a directory. The user interface becomes unresponsive while the application processes the files. 

You have the following requirements: 

Modify the button's click event. 

Increase application throughput by processing multiple image files concurrently. 

Guaranteed success with TestInsides practice guides 

. Ensure that the user interface remains responsive while the application processes the image files. 

You need to recommend an approach for meeting the requirements. 

What should you recommend? 

A. Iterate over the image files by using the Parallel.ForEach() method. For each image file, start a separate thread that processes the image file, by using the Thread.Start() method. 

B. Iterate over the image files. For each image file, use the Process.Start() method to launch a console application that processes the image file. 

C. Use the Parallel.ForEach() method to process the images concurrently. 

D. Use the ThreadPool.QueueUserWorkItem() method to queue up a single work item that uses the Parallel.ForEach () method to process the image files concurrently. 

Answer:


Question No. 73

You are designing a multi-tenant Windows Presentation Foundation (WPF) application that will connect to a Microsoft SQL Server 2008 database. The WPF application will change the structure of database tables and views at runtime based on the tenant's configuration. 

The WPF application must meet the following requirements: 

. Keep each tenant’s data separate. 

. Allow changes to the structure of the tables and views for each tenant without interfering with other tenants' data. 

You need to recommend an approach for managing the database structure. 

What should you recommend? 

A. Create a Partition Scheme for each tenant. 

B. Create an Application Role for each tenant. 

C. Create a Schema for each tenant. 

D. Create a Synonym for each tenant. 

Answer:


Question No. 74

You are evaluating an existing Windows Presentation Foundation (WPF) application. The WPF application runs in a Web browser as a XAML browser application (XBAP). The WPF application runs in the Intranet zone with Full Trust. A client certificate for the WPF application has been generated. 

Users are unable to access the WPF application. You locate the following message in the security log: "User has refused to grant required permissions to the application." Users state that they are clicking OK in all message boxes that appear. 

You need to recommend an approach for ensuring that the WPF application runs correctly on all client computers. 

Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.) 

A. Use the Code Access Security Policy Tool to grant the appropriate permissions. 

B. Sign the ClickOnce manifest for the WPF application. 

C. Import the client certificate to the Trusted Root store. 

D. Modify the ClickOnce manifest for the WPF application to grant the appropriate permissions. 

Answer: AB 


Question No. 75

You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

You plan to create an Author object that contains a Books property. The Books property contains a large array of Book objects. 

When users browse through author data in the application, they must be able to view all information related to books written by that author without additional queries. 

You need to design a data access strategy that meets the requirement. 

Which strategy should you use? 

A. lazy loading 

B. eager loading 

C. optimistic locking 

D. pessimistic locking 

Answer: