最新的Microsoft PRO: Design & Develop Wndws Apps Using MS .NET Framework 4 - 070-518免費考試真題
---
You are designing a .NET Framework 4 solution. The solution contains a Windows Presentation Foundation (WPF) application and a Windows Communication Foundation (WCF) Web service.
The WPF application uses the WCF Web service to store data in a Microsoft SQL Server 2008 database.
You have the following requirements:
Ensure that the WPF application functions while users' computers are offline.
Minimize the time spent sending data to the WCF Web service.
Minimize disk space requirements for data storage.
You need to recommend an approach for synchronizing data between the WPF application and the database.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
You are designing a .NET Framework 4 solution. The solution contains a Windows Presentation Foundation (WPF) application and a Windows Communication Foundation (WCF) Web service.
The WPF application uses the WCF Web service to store data in a Microsoft SQL Server 2008 database.
You have the following requirements:
Ensure that the WPF application functions while users' computers are offline.
Minimize the time spent sending data to the WCF Web service.
Minimize disk space requirements for data storage.
You need to recommend an approach for synchronizing data between the WPF application and the database.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
正確答案: A,C
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?
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?
正確答案: B
You 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.)
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,B
---
You are designing updates to a Windows solution that processes complex scientific datA.The solution extracts analyzed data from Microsoft Excel by using an application-level add-in.
You have the following requirements:
Deploy the Excel add-in to client machines with the application.
Ensure that the solution supports Excel 2007 and Excel 2010.
Minimize the size of the deployment package.
You need to recommend an approach that meets the requirements.
What should you recommend?
You are designing updates to a Windows solution that processes complex scientific datA.The solution extracts analyzed data from Microsoft Excel by using an application-level add-in.
You have the following requirements:
Deploy the Excel add-in to client machines with the application.
Ensure that the solution supports Excel 2007 and Excel 2010.
Minimize the size of the deployment package.
You need to recommend an approach that meets the requirements.
What should you recommend?
正確答案: B
You 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?
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?
正確答案: B
You are designing a Windows Presentation Foundation (WPF) application.
The application calls methods that perform long-running computational tasks.
You need to recommend an approach for ensuring that the application remains responsive while the tasks are executing.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
The application calls methods that perform long-running computational tasks.
You need to recommend an approach for ensuring that the application remains responsive while the tasks are executing.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
正確答案: B,C
You are packaging updates for multiple Windows Presentation Foundation (WPF) applications by using Microsoft .NET Framework 4.
Updates to the applications and to third-party control files are available. Updates to the applications have dependencies upon updates to the third-party control files. An update script is run at logon that allows only a single command to be executed.
You need to package the application updates and updates to the third party controls to ensure that they are successfully installed.
What should you do?
Updates to the applications and to third-party control files are available. Updates to the applications have dependencies upon updates to the third-party control files. An update script is run at logon that allows only a single command to be executed.
You need to package the application updates and updates to the third party controls to ensure that they are successfully installed.
What should you do?
正確答案: D
You are designing an n-tier solution that includes a Windows Presentation Foundation (WPF) client application. The WPF application connects to a middle-tier server that runs the data access layer.
The data access layer connects to a Microsoft SQL Server 2008 database and to a mainframe-based database.
The data access layer connects to a Microsoft SQL Server 2008 database and to a mainframe-based database.
正確答案: A
You are designing a Windows Presentation Foundation (WPF) application.
You have the following requirements:
- Run client-side validation tests on a large result set from a Microsoft SQL Server 2008 database. - Validate each row of data without storing the entire result set in memory.
You need to recommend a data access technology.
What should you recommend?
You have the following requirements:
- Run client-side validation tests on a large result set from a Microsoft SQL Server 2008 database. - Validate each row of data without storing the entire result set in memory.
You need to recommend a data access technology.
What should you recommend?
正確答案: A
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You plan to design an instrumentation strategy for the application.
You need to ensure that the strategy meets the following requirements:
- Captures detailed performance information. - Enables or disables diagnostic messages by using an application configuration option without requiring the application to restart.
What should you design?
You plan to design an instrumentation strategy for the application.
You need to ensure that the strategy meets the following requirements:
- Captures detailed performance information. - Enables or disables diagnostic messages by using an application configuration option without requiring the application to restart.
What should you design?
正確答案: D