70-518 Exam Details

  • Exam Code
    :70-518
  • Exam Name
    :PRO: Design & Develop Wndws Apps Using MS .NET Frmwrk 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :239 Q&As
  • Last Updated
    :Dec 13, 2021

Microsoft 70-518 Online Questions & Answers

  • Question 221:

    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.

  • Question 222:

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

    The application will run on Windows 7-based kiosks that are located indoors and outdoors. The kiosk displays have a photo sensor that will update the application with the current ambient luminosity.

    You need to ensure that the user interface (UI) of the application dynamically changes the application theme based on the ambient luminosity.

    What should you use?

    A. a RenderTransform control applied to the root canvas
    B. a visual state manager to add VisualStateGroup objects
    C. an attached behavior to change a merged resource dictionary
    D. a VisualBrush control to paint the UI

  • Question 223:

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

  • Question 224:

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

    The application allows users to view product details. Product managers can modify the product details for the products that they manage.

    You plan to design the application by using the Model-View-ViewModel (M-V-VM) pattern.

    You need to ensure that the product details can be viewed by all users and modified only by product managers.

    What should you do?

    A. ?Create a separate StackPanel in the window to modify data. ?Create a separate StackPanel in the window to view data.
    B. In the ViewModel, disable all input controls if the user's role is not a Product Manager.
    C. ?Create a separate window to modify data. ?Create a separate window to view data,
    D. In the ViewModel, hide all input controls if the user's role is a Product Manager.

  • Question 225:

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

    You create a photo album-browsing application. When the user opens an album, pictures in the album are displayed in sets of 10. Pictures are obtained from a windows Communication Foundation (WCF) service.

    Most of the memory of the application is allocated in the native heap. The memory usage of the application increases when new albums are opened.

    You need to ensure that the memory usage of the application remains within a specific range.

    What should you do?

    A. Use a reduced color palette to render pictures.
    B. Use the NetTcpBinding binding to communicate with the WCF service.
    C. Load the pictures from the WCF service on a background thread. Implement the IDisposable interface.
    D. Assign the null value to every variable pointing to a picture that is not displayed. Implement the IDisposable interface.

  • Question 226:

    You are designing a complex and critical Windows desktop application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.

    You plan to implement a logging strategy for the application.

    You need to record all unexpected errors that occur in the application.

    What should you do?

    A. Subscribe to the unhandled exception event handler for the AppDomain object. Record relevant application-specific information to an external log.
    B. Subscribe to the unhandled exception event handler for the application's dispatcher on the main application thread. Record relevant application-specific information to an external log.
    C. Create a generic catch (Exception e) block in the Main method of the application. Record relevant application-specific information to a log in the Main method.
    D. Create a global WIN 32 unhandled exception filter. Record relevant application-specific information to an external log from within the filter.

  • Question 227:

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

    You need to use a replacement culture for the application at runtime. You also need to ensure that the information in the custom culture will be available to the application.

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

    A. Restart the process that is displaying the user interface,
    B. Register the replacement culture by using the CultureAndRegionInfoBuilder class.
    C. Register the replacement culture by using the Culturelnfo class.
    D. Call the Save method of the CultureAndRegionlnfoBuilder class instance.

  • Question 228:

    You are designing a Windows Presentation Foundation (WPF) client application that requests reports from a Windows Communication Foundation (WCF) Web service.

    Users must be able to perform other tasks while the WCF Web service generates the report.

    You need to recommend a message exchange pattern for the communication between the WPF application and the WCF Web service.

    What are two possible message exchange patterns that will meet the requirements? (Each correct answer presents a complete solution. Choose two.)

    A. Datagram with session
    B. Request-Response
    C. Duplex
    D. Datagram without session

  • Question 229:

    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.

  • Question 230:

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

    The application will consume a Windows Communication Foundation (WCF) service. The WCF service will provide data to the application. You plan to use the ADO.NET Entity Framework to create a data model that will be used by the

    application.

    Another development team makes changes to the WCF service data contract. You need to ensure that changes made to the WCF service data contract do not require the application to be recompiled.

    What should you do?

    A. Create a conceptual model and a storage model based on the existing version of the WCF service.
    B. Create a storage model based on the business model. Use a class generated from the storage model for programming.
    C. Create a storage model based on the schema of the existing WCF service. Update the mapping file when the new version of the WCF service is available.
    D. Create a conceptual model based on the business model. Use a class generated from the conceptual model for programming. Update the mapping file when the new version of the WCF service is available.

Tips on How to Prepare for the Exams

Nowadays, 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.