You need to implement basic authentication for the API
DRAG DROP
You are developing an Internet-based ASP.NET Web API application that manages pet
data.
You install an SSL certificate on the web server to encrypt calls to the API. You create a
class named PetAuthorization, which inherits from a type named AuthorizeAttribute, and
implements the OnAuthorization() method.
You need to implement basic authentication for the API.
What should you do? (To answer, drag the appropriate words to the correct targets in the
answer area. Words 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 an order processing
system that uses the ADO.NET Entity Framework against a SQL Server database. It has a
controller that loads a page that displays customers. Customers are filtered on Country and,
if provided, on CompanyName.
You have an Entity Framework context named db.
The Customer class is shown below.
You need to execute a single deferred query to return the filtered list of customers. 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 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 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.)
You need to deploy the application to the Windows Azure production environment to meet the business requiremen
Which data access technology should you recommend?
You need to recommend a data access technology to the contractor to retrieve data from the
new data source.
Which data access technology should you recommend?
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?
You need to implement the Sync() method in the MargiesTravelSync.es file
DRAG DROP
Flight information data provided by Margie’s Travel is updated both locally and remotely.
When the data is synced, all changes need to be merged together without causing any data
loss or corruption.
You need to implement the Sync() method in the MargiesTravelSync.es file.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations 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.)














