web analytics

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam (101-110)

QUESTION 101
You are designing a Windows Presentation Foundation (WPF) application. The WPF application displays indicators to compare your company’s past performance to the current day’s operations data. The WPF application accesses historic data from your company’s data warehouse through a Web service, and accesses current data directly from a Microsoft SQL Server 2008 database.
The WPF application must meet the following requirements:
– Retrieve historic data from the data warehouse at application startup andthen once per day.
– Retrieve current data from the database every five minutes, and then updatethe indicators.
– Cache all retrieved data.
– Target the .NET Framework 4 Client Profile.
You need to recommend an approach to data caching.
What should you recommend?

A.    Use System.Web.Caching with a sliding expiration.
B.    Use System.Runtime.Caching with an absolute expiration.
C.    Use System.Runtime.Caching with a sliding expiration.
D.    Use System.Web.Caching with are absolute expiration.

Answer: D

QUESTION 102
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?

A.    Use TransactionScope in a using block on the UI thread.
Batch the database updates by setting the DbDataAdapter.UpdateBatchSize property to 2.
B.    Move the database update logic to a BackgroundWorker thread.
Ensure that the thread is enclosed in a TransactionScope using block in the BackgroundWorker DoWork method.
C.    Use TransactionScope in a using block on the main thread.
Create a BackgroundWorker thread within the block. Move the database updates to the BackgroundWorker DoWork method.
D.    Use TransactionScope in a using block on the UI thread.
Create a DependentTransaction object within the block and pass the object to the BackgroundWorker ReportProgress method Use the object in the ReportProgress method to create a new TransactionScope block.

Answer: B

QUESTION 103
You are designing a Windows Presentation Foundation (WPF) application that accesses a Microsoft SQL Server 2008 database.
You must ensure that database administrators can change the structure of database tables without requiring redeployment of the WPF application.
You need to recommend a data modeling and data access strategy.
What should you recommend?.

A.    Model the data layer by using DataSet objects with automatically generated Create, Read, Update, and Delete (CRUD) statements.
B.    Model the data layer by using custom data access objects. Access the database by using stored procedures.
C.    Model the data layer by using LINQ to SQL with attribute-based mapping of objects to tables.
D.    Model the data layer by using typed DataSet objects with automatically generated Create, Read, Update, and Delete (CRUD) statements

Answer: B

QUESTION 104
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application includes Windows Workflow Foundation (WF) hosts that run thousands of workflow instances. Workflows usually take 2 hours of time to complete. The application also includes a Windows Communication Foundation (WCF) service that contains a method to check the completion status of a workflow stored in a database.
External applications that use the WCF service to check the status of workflows every minute causes performance degradation of the workflow that hosts the application.
You need to eliminate the performance degradation caused by workflow status checks.
What should you do?

A.    Cache the status of the workflow.
Assign a callback function based on a SqlDependencyobject.
Reload the cache in the callback function.
B.    Cache the status of the workflow.
Set the expiry time of the Cache object to 30 minutes.
C.    Create a status checking workflow.
Return the status of the original workflow to the external application in 30 minute intervals.
D.    Create a status checking workflow.
Return the status of the original workflow to the external application after 10 requests have been made.

Answer: A

QUESTION 105
You are designing a Windows Presentation Foundation (WPF) application that uses .NET Framework 4.
The application uses a subset of the functionality provided by a third-party COM component that will be replaced later.
The application developers must have access to only the required subset of functionality.
You need to recommend a solution that meets the requirements.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A.    Create an adapter assembly that exposes the entire functionality of the COM component.
B.    In the adapter assembly, use an embedded interop reference.
C.    In the adapter assembly, use a standard interop reference.
D.    Create an adapter assembly that exposes the required subset of the COM component functionality.

Answer: CD

QUESTION 106
You are designing an n-tier solution for use by multiple groups of users. The solution consists of a client application that collects information from users and transmits it to a business layer for processing. The business layer sends the information to a service layer by using Windows Communication Foundation (WCF). The service layer exists on multiple servers.
The solution must send the collected information to a specific server in the service layer based on the user’s group.
You need to recommend an approach that will allow the information to be sent to the correct server.
What should you recommend?

A.    Impersonate the client in the business layer.
B.    Implement a duplex contract on the service layer.
C.    Create a Windows Workflow Foundation (WF) activity on the client.
D.    Implement the WCF 4 Routing Service.

Answer: D

QUESTION 107
You are designing 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).
You create a duplex bidirectional WCF service that contains a single operation. The service operation sends the result back to the client application by using a two-way callback operation.
You plan to design a service interaction strategy.
You need to ensure that deadlocks are prevented.
What should you do?

A.    Configure the CallbackBehaviorAttribute attribute to use the Reentrant or Multiple concurrency mode in the callback class.
B.    Configure the ServiceBehaviorAttribute attribute to use the Reentrant or Multiple concurrency mode in the service class.
C.    Configure the ServiceBehaviorAttribute attribute to use the Synchronization context in the service class.
D.    Configure the CallbackBehaviorAttribute attribute to use the Synchronization context in the callback class.

Answer: B

QUESTION 108
You are designing a distributed application that will be deployed to 5,000 users worldwide. Servers on five continents will host the Web services and the Microsoft SQL Server 2008 databases that support the application.
You have the following requirements:
– Collect information about all errors associated with the application.
– Store and view all error information in a centralized location.
– Minimize the network bandwidth required for the transfer of errorinformation.
You need to recommend a strategy for reporting error information.
Which strategy should you recommend?

A.    Write error messages to the SQL Server databases.
Synchronize the databases by using merge replication.
B.    Write error messages to the event logs on the local computers.
Use Windows Error Reporting to view the error information.
C.    Write error messages to the SQL Server databases.
Synchronize the databases by using transactional replication.
D.    Write error messages to the event logs on the local computers.
Use Windows Management Instrumentation (WMI) to view the error information.

Answer: B

QUESTION 109
You are designing a distributed Windows Presentation Foundation (WPF) application.
You have the following requirements:
– Ensure that all errors are logged in a central location.
– Ensure that the WPF application logs related errors within a singletransaction.
– Secure error information during transmission.
You need to recommend a strategy for collecting error information.
What should you recommend?

A.    Write the information to the Windows Application log on each client system.
Use Windows Error Reporting to collect the results.
B.    Write the information to the Windows Application log on each client system.
Use Windows Management Instrumentation (WMI) to collect the results.
C.    Create a Windows Communication Foundation (WCF) service.
Use the basicHttpBinding protocol to transport the information.
D.    Create a Windows Communication Foundation (WCF) service.
Use the wsHttpBinding protocol to transport the information.

Answer: A

QUESTION 110
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.)

A.    Use SQL Server 2008 Management Studio to deploy the production databases.
B.    Use VSDBCMD to deploy the production databases.
C.    Use a Visual C# SQL CLR Database Project.
D.    Use a SQL Server 2008 Database Project.

Answer: BD

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam