PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segments should you include in Target 1 and Target 2 to complete the code?

DRAG DROP
You are developing an ASP.NET Web API for a home inventory management system. You
need to limit access to users with IP addresses based only in the United States. You have
the following code:

Which code segments should you include in Target 1 and Target 2 to complete the code?
(To answer, drag the appropriate code segments to the correct targets in the answer area.
Each code segment may be used once, more than once, or not at all. You may need to drag
the split bar between panes or scroll to view content.)

Which code segment should you use?

You are developing an ASP.NET MVC application. The application is a loan processing
system that uses the ADO.NET Entity Framework against a SQL Server database. It has a
controller that loads a page that displays all loans along with rate information. Lazy loading
has been disabled.
The Loan class is shown below.

You need to return the loans and rate information in a single round trip to the database.
Which code segment should you use?

Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5…?

DRAG DROP
You are developing a self-hosted WCF service to display data about books. The solution
contains a service named BookService that implements the IBookService interface. You
need to expose the metadata in the service host programmatically. You have the following
code:

Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and
Target 5 to build the service host? (To answer, drag the appropriate code segments to the
correct targets in the answer area. Each code segment may be used once, more than once,
or not at all. You may need to drag the split bar between panes or scroll to view content.)

Which code segment should you use?

You are developing a library management application that uses the ADO.NET Entity
Framework against a SQL Server database. The application has a method that returns
check outs filtered by date.
The Book class is shown below.

You must filter the data on the SQL server before it is returned to the application server. You
need to return books checked out more recently than the entered date. Which code segment
should you use?

You need to configure the Windows Azure service definition to enable Consolidated Messenger…

DRAG DROP
You need to configure the Windows Azure service definition to enable Consolidated
Messenger to upload files.
What should you do? (To answer, drag the appropriate configuration items to the correct
location or locations. Each configuration item may be used once, more than once, or not at
all. You may need to drag the split bar between panes or scroll to view content.)

Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es file?

Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity
Framework context. Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation.
No more than five retries should be performed.
Which code segment should you use as the body of the SaveChanges() method in the
FlightInfoContext.es file?


Which configuration setting should you add to the web.config?

DRAG DROP
The service has been deployed to Windows Azure.
Trey Research has provided version 1.3.0.0 of the assembly to support a change in the
serialization format. The service must remain available during the transition to the new
serialization format.
You need to ensure that the service is using the new assembly.
Which configuration setting should you add to the web.config? (To answer, drag the
appropriate configuration elements to the correct location or locations in the answer area.
Each configuration element may be used once, more than once, or not at all. You may need
to drag the split bar between panes or scroll to view content.)

You need to specify which properties of the FlightInfo class should be used at the partition…

DRAG DROP
Historical flight information data will be stored in Windows Azure Table Storage using the
FlightInfo class as the table entity.
There are millions of entries in the table. Queries for historical flight information specify a set
of airlines to search and whether the query should return only late flights. Results should be
ordered by flight name.
You need to specify which properties of the FlightInfo class should be used at the partition
and row keys to ensure that query results are returned as quickly as possible.
What should you do? (To answer, drag the appropriate properties to the correct location or
locations in the answer area. Each property may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.)