How to pass Microsoft 70-518 Real Exam in 24 Hours [actual exam 1-15]

Question No. 1

Which to possible ways to call operation without blocking of UI thread? 

A. Use async call of operation in main thread 

B. Use sync call of operation in main thread 

C. Use sync call of operation in other threads 

Answer: AC 


Question No. 2

You have developed a Windows Forms server application by using Microsoft .NET Framework 4. 

Client applications connect to the server application to receive streaming media on demand on a single server. Each incoming connection is launched on a separate thread. 

As the number of client applications increases, users report that connection attempts intermittently fail. 

You need to ensure that users can connect to the server application even when the number of client applications increases. 

What should you do? 

A. Add additional RAM to the server. Increase the size of the thread pool. 

B. Add additional RAM to the server. Decrease the size of the thread pool. 

C. Install a network load balancer. Increase the size of the connection pool. 

D. Install a network load balancer. Decrease the size of the connection pool. 

Answer:


Question No. 3

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

You need to maintain a common appearance and behavior across all applications in your company. You also need to ensure that the look and feel of the applications can be modified without recompiling them. 

What should you create? 

A. a merged resource dictionary 

B. user controls in a shared assembly 

C. an instance of the System.Windows.Media.StyleSimulations class 

D. custom controls in a shared assembly 

Answer:


Question No. 4

You are designing a sales and inventory tracking system by using Microsoft Visual Studio 2010 and Microsoft SQL Server 2008. The sales, inventory, and shipping tables will reside in different databases on different database servers. 

You need to ensure that the tables are updated simultaneously. 

What should you do? 

A. Use LINQ to SQL. 

B. Use Distributed transactions. 

C. Use Microsoft Sync Framework. 

D. Use the ADO.NET Entity Framework. 

Answer:


Question No. 5

You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will store data that includes a time and date stamp. 

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

The middle tier connects to geographically separated database servers. You need to ensure that the application meets the following requirements: 

. Data stored contains time and date information local to the database server. 

. Data stored contains Universal Coordinated Time (UTC). 

Which class should you use? 

A. DateTime 

B. DateTime Offset 

C. TimeZonelnfo 

D. TimeZone 

Answer:


Question No. 6

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 tier 

B. The data access tier 

C. The data tier 

D. The presentation tier 

Answer:


Question No. 7

You design a Windows Presentation Foundation (WPF) application that connects to a Microsoft SQL Server 2008 database. 

The WPF application becomes unresponsive at times. When the WPF application is running, physical memory usage is between 90 percent and 95 percent. 

You need to recommend a tool that will identify the memory usage characteristics of the WPF application. 

Which tool should you recommend? 

A. SQL Profiler 

B. CLR Profiler 

C. Event Tracing for Windows (ETW) 

D. Application Center Test (ACT) 

Answer:


Question No. 8

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 in WPF. 

The middle tier of the application is implemented by using an existing COM component. 

The middle tier contains a long-running method named ProcessData. 

You need to ensure that users can continue to use the UI while ProcessData is running. 

What should you do? 

A. Use an asynchronous worker thread to call ProcessData. 

B. Use the Invoke method of the Dispatcher class to call ProcessData. 

C. Call the Run method of the Dispatcher class before invoking ProcessData. 

D. Call the DoEvents method of the Application class before invoking ProcessData. 

Answer:


Question No. 9

You are updating a Windows desktop client application that was created by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

The application displays data derived from several database queries. The display takes a long time to update. 

The application currently uses a BackgroundWorker thread and a Parallel.ForEach statement on that thread. 

Users have requested a modification to the program that would allow them to interrupt the display of data and begin processing a new and different query. 

You decide to provide a new Stop button on the user interface (UI) to allow the user to terminate the current data display and initiate the new query. 

The main UI thread must be notified when the current data processing is terminated so that the new query can be started. 

You need to implement the Stop button event handler. 

What should you do? 

A. . Use the DoWork handler of the worker thread and test a shared status value. 

. Use a break statement to terminate the Parallel.ForEach loop. 

B. . Use the DoWork handler of the worker thread and test a shared status value. 

. Use a loopStatus.Stop() statement to terminate the Parallel.ForEach loop. 

C. . Use the DoWork handler of the worker thread and test a shared status value. 

. Use the Thread.AbortQ statement to terminate the worker thread. 

. Start a new BackgroundWorker thread from the main UI thread. 

D. . Use a CancelAsync() function to cancel the worker thread. 

. In the Parallel.ForEach loop, test the CancellationPending property. 

. If the property is set to true, perform the following tasks: 

Write a loopStatus.Stop() statement. 

Set the DoWorkEventArgs.Cancel property to true. 

Use a return statement to exit from the loop. 

Answer:


Question No. 10

You are designing a Windows Presentation Foundation (WPF) application. The main window of the WPF application includes two panels: panel1and panel2. 

The WPF application must meet the following requirements: 

. Panel2 must be enabled only after users have entered values into multiple text boxes in panel1. . The background color of panel2 must be set to a specific color based on oneof the text box values in panel1. . The background color of panel2 must be set at the same time the panel is enabled. 

You need to recommend an approach for meeting the requirements. 

What should you recommend? 

A. Use a Command object. 

B. Use Dependency properties. 

C. Use a DataTemplate object. 

D. Use a MultiDataTrigger object. 

Answer:


Question No. 11

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

The application will be localized into multiple languages. 

You need to recommend an approach for preparing the application for localization. 

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

A. Translate the contents of the appropriate XAML elements into each localization language. 

B. Add an application setting for each language to the App.config file. 

C. Define a UICulture element for each language in the project file. 

D. Add UID attributes to language-specific elements in the XAML file. 

Answer: AB 


Question No. 12

You are designing an n-tier .NET Framework 4 solution that includes a Windows Presentation Foundation (WPF) application. 

You need to recommend an approach for ensuring that the solution can support 5,000 concurrent users. 

What should you recommend? 

A. Buffer overflow testing 

B. Integration testing 

C. Component stress testing 

D. Stress testing 

Answer:


Question No. 13

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 SqlDataReader objects 

B. ADO.NET using DataSet objects and SqlDataAdapter objects 

C. LINQ to Entities 

D. LINQ to SQL 

Answer:


Question No. 14

You are developing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4. 

You need to recommend a testing strategy to identify the additional hardware resources that are necessary to support future projected growth. 

Which testing strategy should you recommend? 

A. Load testing 

B. Stress testing 

C. Capacity testing 

D. Integration testing 

Answer:


Question No. 15

You are designing a Windows Presentation Foundation (WPF) application that will process data. The data is stored in a Microsoft SQL Server 2008 database. 

You plan to access the data by using ADO.NET Entity Framework 4. 

You need to recommend an approach that minimizes the number of calls to the database server. 

What should you recommend? 

A. Use eager loading. 

B. Use SqlDependency objects. 

C. Use lazy loading. 

D. Use change tracking in the ObjectContext object. 

Answer: