PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 08?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses LINQ to SQL. The application contains the following model.

You write the following code. (Line numbers are included for reference only.)
01 static void Insect()
02 {
03 NorthwindDataContext dc = new NorthwindDataContext();
04 Customer newCustomer = new Customer();
05 newCustomer.Firstname = “Todd”;
06 newCustomer.Lastname = “Meadows”;
07 newCustomer.Email = “troeadows@contoso.com”; 08
09 dc.SubmitChanges();
10 {
A product named Bike Tire exists in the Products table. The new customer orders the Bike Tire
product. You need to ensure that the correct product is added to the order and that the order is
associated with the new customer. Which code segment should you insert at line 08?

You need to resolve the performance issue

You are analyzing an application that uses Microsoft .NET Framework 4 and Microsoft SQL
Server 2008. The application is used to maintain an inventory database and is accessed
from several remote Windows client applications. The application frequently updates
multiple rows in a database table by using a DbDotoAdopter object. Users report that the
application runs slowly during peak business hours. When large numbers of records are

changed by multiple users, you discover the following: The CPU utilization of the client
applications is normal. The network utilization increases slightly. The CPU utilization of the
database server remains close to the normal average for a day. You need to resolve the
performance issue. What should you do?

Which code segment should you use?

You use Microsoft .NET Framework 4 to develop an ASP.NET 4 Web application. You need to encrypt
the connection string information that is stored in the web.config file. The application is deployed to
multiple servers. The encryption keys that are used to encrypt the connection string information
must be exportable and importable on all the servers. You need to encrypt the connection string
section of the web.config file so that the file can be used on all of the servers. Which code segment
should you use?

Which approach should you recommend?

You are using SharePoint 2010 to design a site at your company. All employees need to
have permission to fill out a new form. When an employee submits the form, the request
should be saved as an item in a custom list. You have the following requirements: ·For
security reasons, employees must only be able to view their own requests. .Employees
must not be able to view requests that other employees have submitted. .Company
managers must have permission to view every request submitted. Which approach should
you recommend?

You need to minimize DNS zone transfer traffic over the WAN links

Your company has a main office and two branch offices that are connected by WAN links. The main
office runs the DNS Server service on three domain controllers. The zone for your domain is
configured as an Active Directory-integrated zone. Each branch office has a single member server
that hosts a secondary zone for the domain. The DNS servers in the branch offices use the main
office DNS server as the DNS Master server for the zone. You need to minimize DNS zone transfer
traffic over the WAN links. What should you do?

You need to ensure that the EDM contains an entity type named Employee that contains all of the data from both

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application that
connects to a database by using the Entity Framework. You create an Entity Data Model (EDM) by
using the Generate from database wizard for the following tables.

You need to ensure that the EDM contains an entity type named Employee that contains all of the
data from both tables. What should you do?

Which code segment should you add at line 09?

You have a SharePoint site collection that has the URL http://contoso/sites/finance. You are
creating a Microsoft .NET Framework console application that will use the SharePoint client object

model to create a site in the site collection. The application contains the following code segment.
(Line numbers are included for reference only.) 01 ClientContext cCtx = new
ClientContext(“http://contoso/sites/finance”); 02 Web root = cCtx.Site.RootWeb; 03
cCtx.Load(root); 04 WebCreationInformation webInfo = new WebCreationInformation(); 05
webInfo.Title = “site1”; 06 webInfo.Url = “site1”; 07 webInfo.WebTemplate = “MPS#2”; 08
root.Webs.Add(webInfo); 09 10 cCtx.Dispose(); You need to ensure that the application creates
the site. Which code segment should you add at line 09?

What should you recommend?

You are modifying an existing Windows Presentation Foundation (WPF) application that
uses .NET Framework 4. The WPF application uses a wizard to capture data and insert the
data into a database. The database includes one parent table and many child tables.
Inserting captured data in the database locks many database tables and delays application
access. You have the following requirements: • Reduce delays when saving data. • Ensure
that other application users are not blocked from reading data. • Ensure that captured data
is available only after all child tables are updated. You need to recommend an approach for
inserting captured data into the database. What should you recommend?

Which two approaches should you recommend?

You are designing an ASP.NET Web application for online image editing. Users can upload
images to the Web application and edit those images by using utilities provided by the
application. Some utilities are processor intensive and should be offloaded to a Graphics
Processing Unit (GPU). Other utilities require the use of proprietary algorithms that must be
performed on the server. You need to design a solution for minimizing bandwidth usage and
Web server response times during image processing, while providing a responsive
application. Which two approaches should you recommend? (Each correct answer presents
part of the solution. Choose two.)

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. The application has an entity model that contains a
SalesOrderHeader entity. The entity includes an OrderDate property of type DateTime. You need to
retrieve the 10 oldest SalesOrderHeaders according to the OrderDate property. Which code segment
should you use?