PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use the ADO.NET Entity Framework to model entities.
You write the following code segment. (Line numbers are included for reference only.)
01 Dim context As New AdventureWorksEntities(“http://localhost:1234/AdventureWorks.svc”) 02
03 Dim q As var = From c In context.Customers _
04 Where c.City =”London” _
05 Order By c.CompanyName _
06 Select c
You need to ensure that the application meets the following requirements:
• Compares the current values of unmodified properties with values returned from the data source
• Marks the property as modified when the properties are not the same
Which code segment should you insert at line 02?

Which type of resource record should you add to the wingtiptoys.com zone?

Your network contains an Active Directory forest. The forest contains two domains named
contoso.com and wingtiptoys.com. The network contains a public DNS server named Server1 and an
e-mail server named Server2. You notice that Internet hosts can send e-mail messages to users that
have the @contoso.com SMTP suffix, but cannot send e-mail messages to users that have the
@wingtiptoys.com SMTP suffix. You need to ensure that every user can receive e-mail messages
from the Internet. Which type of resource record should you add to the wingtiptoys.com zone?

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. The application uses the ADO.NET Entity
Framework to model entities. The database includes objects based on the exhibit. (Click the Exhibit
button.)

The application includes the following code segment. (Line numbers are included for reference only.)
01 Using advWorksContext As New AdventureWorksEntities()
02
03 End Using
You need to retrieve a list of all Products from todays sales orders for a specified customer.
You also need to ensure that the application uses the minimum amount of memory when retrieving
the list. Which code segment should you insert at line 02?

Which two actions should you recommend?

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

Which approach should you recommend?

You are designing a method for collecting information regarding usage of new functionality
within an ASP.NET Web application. You have the following requirements: Usage data must
be stored in a database for easy reporting. The application must not include code relating to
usage data. You need to design a strategy that meets the requirements. Which approach
should you recommend?

You need to define the connection life cycle of the DataAccessLayer class

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application contains the following code segment. (Line numbers are included for reference only.)
01 Class DataAccessLayer
02 Private Shared connString As String
03
04 …
05 Public Shared Function GetDataTable(command As String) As DataTable
06
07 …
08 End Function
09 End Class
You need to define the connection life cycle of the DataAccessLayer class. You also need to ensure
that the application uses the minimum number of connections to the database. What should you
do?

What should you recommend?

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?

Which approach should you recommend?

You are responsible for rebranding the My Sites section of a corporate SharePoint 2010
farm. The new branding includes a change to the Quick Launch menu in all corporate My
Sites pages. You do not have access to modify any master pages. Also, the new branding is
not yet finalized and might need to be reverted. You need to ensure that the Quick Launch
menu is updated in all corporate My Sites pages, using the least amount of workforce effort.
Which approach should you recommend?