70-487 83 Q&S Developing Windows Azure and Web Services

How should you build the method?

You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a SQL Server database that changes every 24 hours. The service is defined in the following class.

The application contains the following Entity Framework model.

The service must only return data for movies that are currently in theaters.
You need to add a method to the MovieService class to filter the data.
How should you build the method? (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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET MVC Web API image management application.
The application must meet the following requirements:
It must send or receive image data without the use of a buffer.
It must allow up to 4 MB of image data to be received.
It must allow up to 3 MB of image data to be sent.
You need to complete the code to meet the requirements.
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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET MVC Web API application.
The method names of the Web API must match naming guidelines for RESTful services.
You need to create methods to support standard insert, select, update, and delete operations in an HTTP service.
What should you do? (To answer, drag the appropriate HTTP methods to the correct row in the table in the answer area. Each HTTP method 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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET Web API application that will be consumed by a web browser via a composite application that is served from another web domain.
You need to configure the Web API.
What should you do? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML 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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET Web API action method.
The action method must return the following JSON in the message body.
{" Name ":" Fabrikam", "Vendor Id": 9823, "Items": ["Apples", "Oranges"] }
You need to return an anonymous object that is serialized to JSON.
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.
Select and Place:



Answer Clike
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?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
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?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you do?

You are developing a WCF service.
You need to create a duplex contract.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Apply the MessageContractAttribute attribute to every public method signature included in the appropriate contract.
B. Create an interface for the client-side duplex contract.
C. Create an interface for the server-side duplex contract.
D. Apply the MessageContractAttribute attribute to the appropriate interface.
E. Apply the ServiceContractAttribute attribute to the appropriate interface. Then, apply the OperationContractAttribute attribute to every public method signature included in that contract.
F. Set the CallbackContract property to the appropriate interface.


Answer Clike
Which isolation level should you use?

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to maintain data integrity including retrieving identical sets across reads in all situations that use transactions.
Which isolation level should you use?
A. Repeatable
B. Serializable
C. ReadUncommitted
D. ReadCommitted


Answer Clike
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?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment should you use?

You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results.
The URI for the API call is in a variable named address.
You need to make the API call without blocking.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which method of the EntityCommand type should you use?

You are developing an ASP.NET MVC application. The application has a page that updates an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity Framework data model. Images and associated metadata are stored in a single database table.
You need to run a single query that updates an image and associated metadata in the database while returning only the number of affected rows.
Which method of the EntityCommand type should you use?
A. ExecuteNonQuery()
B. ExecutcScalar()
C. ExecuteDbDataReader()
D. ExecuteReader()


Answer Clike
Which approach should you use?

You are developing a new ASP.NET MVC application that does not have an existing database.
The requirements for the application are not complete, and the SQL data model will likely change.
You need to choose an approach to visually manage a data model.
Which approach should you use?
A. Physical First
B. Database First
C. Code First
D. Model First


Answer Clike
Which HTTP verb should you use?

You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to modify the text of a comment.
Which HTTP verb should you use?
A. GET
B. DELETE
C. POST
D. PUT


Answer Clike
What should you do?

You are preparing to develop a set of libraries that uses large data sets.
The libraries must be shared across an organization and distributed to several servers.
You need to create a remote NuGet feed that exposes the libraries for developer use.
What should you do? (Each answer presents part of the solution. Choose all that apply.)
A. Add packages to the Packages folder.
B. Create a new Empty Web Application in Visual Studio.
C. Configure the Packages folder located in the appSettings section of the web application’s Web.config.
D. Install the NuGet.DataFeed Package.
E. Install the NuGet.Server Package.
F. Create a new Empty Web Site in Visual Studio.


Answer Clike
How many upgrade domains should you use?

You are developing a Microsoft Azure web application. The application will be deployed to 10 web role instances. A minimum of 8 running instances is needed to meet scaling requirements.
You need to configure the application so that upgrades are performed as quickly as possible, but do not violate scaling requirements.
How many upgrade domains should you use?
A. 1
B. 2
C. 5
D. 10


Answer Clike
Which CommandBehavior type should you use?

You are developing an ASP.NET MVC application that displays a report. The report includes large images that are stored in a database. Members of the EntityClient namespace are used to access the database through the ADO.NET Entity Framework data model. You need to prevent memory exceptions while generating a report using the EntityDataRcader type.
Which CommandBehavior type should you use?
A. FastForwardReadOnly
B. SequentialAccess
C. SingleResult
D. SingleRow


Answer Clike
Which method of the EntityCommand type should you use?

You are developing an ASP.NET MVC application. The application has a page that searches for and displays an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity Framework data model. Images and associated metadata are stored in a database table.
You need to run a query that returns only the image while minimizing the amount of data that is transmitted.
Which method of the EntityCommand type should you use?
A. ExecuteScalar
B. ExecuteDbDataReader
C. ExecuteReader
D. ExecuteNonQuery


Answer Clike
Which code segment should you use?

You are developing an order processing application that uses the ADO.NET Entity Framework against a SQL Server database. Lazy loading has been disabled. The application displays orders and their associated order details. Order details are filtered based on the category of the product in each order.
The Order class is shown below.

The OrderDetail class is shown below.

The Product class is shown below.

The Category class is shown below.

You need to return orders with their filtered list of order details included in a single round trip to the database.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which message pattern should you choose?

You are developing a WCF service that compares several data sources. The service takes a long time to complete.
The service must meet the following requirements:
The client must be able to continue processing while the service is running.
The service must initiate communication with the client application when processing is complete.
You need to choose a message pattern to meet the requirements.
Which message pattern should you choose?
A. One Way
B. Streaming
C. Duplex
D. Request/Reply


Answer Clike
Which instance mode should you use?

You are developing a WCF service.
A new service instance must be created for each client session.
You need to choose an instancing mode.
Which instance mode should you use?
A. PerCall
B. Single
C. Multiple
D. PerSession
E. PerRequest


Answer Clike
Which instancing mode should you use?

You are developing a WCF service.
A new service instance must be created for each client request.
You need to choose an instancing mode.
Which instancing mode should you use?
A. Single
B. PerRequest
C. PerCall
D. Multiple
E. PerSession


Answer Clike
Which HTTP verb should you use?

You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to remove a comment.
Which HTTP verb should you use?
A. PUT
B. DELETE
C. POST
D. GET


Answer Clike
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 all orders along with customer information. Lazy loading has been disabled.
The Order class is shown below.

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

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to maintain data integrity in all situations that use transactions.
A. ReadUncommitted
B. Repeatable
C. Serializable
D. ReadCommitted


Answer Clike
Which tool should you use?

You are developing an ASP.NET MVC application.
Deployment administrators do not have access to Visual Studio 2102, but will have the elevated permissions required to deploy the application to the servers.
You need to select a deployment tool for use by the deployment administrators.
Which tool should you use?
A. Publish Web Site Tool
B. Web Deployment Package
C. One-Click Publish
D. Deployment Package Editor


Answer Clike
How should you build the expression?

You are developing an application in Visual Studio 2012 to display student information. The application contains the following Entity Framework model.

The application contains a WCF data service named DirectoryService.svc.
You need to create a query expression to display all of the grades for students whose first name is "John"
How should you build the expression?
A. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’ &$expand=Grades
B. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’/Grades
C. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName = ‘John’ &$expand=Grades
D. http://localhost:54946/DirectoryService.svc/Grades/Students?$filter=FirstName eq ‘John’


Answer Clike
Which isolation level should you use?

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to prevent the application from reading data that is locked by other transactions. You also need to prevent exclusive range locks.
Which isolation level should you use?
A. ReadCommitted
B. Serializable
C. Repeatable
D. ReadUncommitted


Answer Clike
What should you do?

You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The library provides implementations of security algorithms.
If a problem with any of the security algorithms is discovered, a new version of the library must be created and deployed. Application downtime during the update must be minimized.
You need to ensure that the new version of the library will be used by all applications as soon as possible.
What should you do?
A. Build the web applications and include the security assembly as an embedded resource.
When an update is needed, copy the new assembly to the bin directory for the application.
B. Sign all assemblies in each application with the same key used to sign the security assembly.
When an update is needed, create a new key pair and re-sign all assemblies.
C. Build the security assembly as a netmodule in a shared location.
Use the assembly linker to merge the netmodule into the assemblies for the application.
When an update is needed, update the netmodule in the shared location.
D. Install the security assembly in the Global Assembly Cache (GAC).
When an update is needed, update the assembly in the GAC.


Answer Clike
What should you do?

You develop an ASP.NET MVC application that is secured by using SSL. You are ready to deploy the application to production.
The deployment package must include the installation of the SSL certificate.
You need to configure the deployment package to meet the requirement.
What should you do?
A. Create a web publish pipeline target file with a custom web deploy target.
B. In the Package/Publish settings of the project, select the All Files in this project option.
C. Extend the CopyAllFilesToSingleFolder target in the project file.
D. In the Build Events settings of the project, configure a pre-build event to include the SSL certificate.


Answer Clike
Which tool should you use?

You are developing an ASP.NET MVC application.
Applications can be deployed to remote servers only by administrators who have elevated privileges. The administrators do not have access to Visual Studio 2012.
You need to select a deployment tool to deploy the application to remote servers for testing.
Which tool should you use?
A. Copy Web Site Tool
B. One-Click Publish
C. Publish Web Site Tool
D. Web Deployment Package


Answer Clike
What should you do?

You are preparing to develop a set of libraries for a company.
The libraries must be shared across the company.
You need to create a remote NuGet feed that exposes the libraries.
What should you do? (Each answer presents part of the solution. Choose all that apply.)
A. Install the NuGet.Feed Package.
B. Install the NuGet.Server Package.
C. Configure the Packages folder located in the system.webserver section of the web application’s Web.config.
D. Create a new Empty Web Site in Visual Studio 2012.
E. Configure the Packages folder located in the appSettings section of the web application’s Web.config.
F. Add packages to the Packages folder.
G. Create a new Empty Web Application in Visual Studio 2012.


Answer Clike
Which query expression should you use?

You need to create an OData query expression to return the ten books with the largest number of sales.

Which query expression should you use?
A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code?

An XML file must be produced by the SaveFeaturedBooks() method of the Book class. The schema of the resulting XML file must be identical to the FeaturedBooks.xml file.
You need to write the code to produce the file.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 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)
Select and Place:



Answer Clike
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code?

You need to update the GetBook() method to retrieve book data by using ADO.NET.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 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.)
Select and Place:



Answer Clike
Which Entity Data Model tool can you use?

You are building an ADO.NET Entity Framework application.
You need to validate the conceptual schema definition language (CSDL), store schema definition language (SSDL), and mapping specification language (MSL) files.
Which Entity Data Model tool can you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. EDM Generator (EdmGen.exe)
B. ADO.NET Entity Data Model Designer
C. Entity Data Model Wizard
D. Update Model Wizard


Answer Clike
Which HTTP verb should you use?

You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?
A. GET
B. POST
C. DELETE
D. PUT


Answer Clike
Which script segment should you use?

You are developing an ASP.NET MVC web application that contains the following HTML.
<table id= "customer" ></table>
You also have an ASP.NET Web API application that contains a call for retrieving customers.
You must send and retrieve the data in the most compact format possible.
You need to update the HTML for the customers table to contain data from the Web API application.
Which script segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which tool should you use?

You are planning to migrate websites from IIS 6 to IIS 7.5.
You do not have access to SSH or a VPN.
You need to select a deployment tool to securely migrate the websites.
Which tool should you use?
A. RoboCopy
B. Web Deploy
C. Microsoft command-line FTP
D. xCopy


Answer Clike
Which code segment should you use?

You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
A. SqlConnection.BeginTransaction(IsolationLevel.RepeatableRead);
B. SqlConnection.BeginTransaction(IsolationLeve.ReadUnconvnited);
C. SqlConneetion.BeginTransaction(IsolationLevel.Serializable);
D. SqlConnection.BeginTransaction(IsolationLevel.Snapshot);


Answer Clike
Which method should you use?

You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query.
Which method should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment should you use?

The PurchaseOrders.xml file contains all of the purchase orders for the day. You need to query the XML file for all of the billing addresses.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which filter statement should you use?

You need to create an OData filter expression that returns books that match the following characteristics:
Published after 1/1/2000
Have "Science" as the first word
Which filter statement should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you do?

You are preparing to write the data access code for the children’s book area of the web site.
You need to review the requirements and identify the appropriate data access technology.
What should you do?
A. Use ADO.NET Entity Framework.
B. Use a Web Service.
C. Use the WCF Data Services.
D. Use LINQ to SQL.


Answer Clike
Which data access technology should you implement?

You need to choose the appropriate data access strategy for the college textbook area of the web application.
Which data access technology should you implement?
A. ADO.NET
B. Entity Data Model (EDM)
C. WCF Data Services
D. LINQ to SQL


Answer Clike
Which code segment should you use?

You need to configure the server to self-host the bookstore’s Web API application.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which type should you use to retrieve the data?

You need to return the list of the top 100 books for the GetTopBooks() method.
Which type should you use to retrieve the data?
A. SqlDataReader
B. DataSet
C. DataTable
D. Data View


Answer Clike
Which data access technology should you choose?

You need to choose the appropriate data access technology for the cookbook area of the web application.
Which data access technology should you choose?
A. WCF Data Services
B. LINQ to SQL
C. Entity Framework
D. ADO.NET


Answer Clike
Which code segment should you use?

You need to update the CreateMonthlyTotalsReports() method to use database transactions.
Which code segment should you use?
A. SqlConnection.BeginTransaction(IsolationLevel.ReadCommitted);
B. SqlConnection.BeginTransaction(IsolationLevel.ReadUnconwited);
C. SqlConnection.BeginTransaction(IsolationLevel.Chaos);
D. SqlConnection.BeginTransaction(IsolationLevel.Serializable);


Answer Clike
Which code segment should you use?

The PurchaseOrders.xml file contains all of the purchase orders for the day. You need to query the XML file for all of the shipping addresses.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which data access technology should you choose?

You need to choose the appropriate data access technology for the children’s book area of the web application.
Which data access technology should you choose?
A. Web Service
B. LINQ to SQL
C. ADO.NET Entity Framework
D. WCF Data Services


Answer Clike
What should you do?

The UploadOrder() method in the UploadCallbackService service is not implementing the callback behavior defined in the IUploadCallBackService interface.
You need to modify the class to implement the required callback behavior.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segments 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.)
Select and Place:



Answer Clike
Which code segment should you use?

You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
Select and Place:



Answer Clike
What should you do?

The GetExternalOrders() method must use members of the EntityClient namespace to query the database for all records in the InboundQueue entity.
You need to modify the GetExternalOrders() method to return the correct data.
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.)
Select and Place:



Answer Clike
What should you do?

The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class.
You need to modify the action to populate the view with data.
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.)
Select and Place:



Answer Clike
What should you do?

You need to complete the GetProcessedOrders() action in the ProcessedOrderController controller to meet the requirements.
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.)
Select and Place:



Answer Clike
What should you do?

You need to create the ShippingContext class in the ShippingAddress.es file to meet the requirements.
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.)
Select and Place:



Answer Clike
How should you build the method?

The GetVendorPolicy() private method in the ProcessedOrderController controller is returning a CacheItemPolicy object with default values. The returned policy must expire if the external file located at C:TriggersVendorTrigger.txt has been modified or the timeout outlined in the technical requirements is reached.
You need to return the policy.
How should you build the method? (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.)
Select and Place:



Answer Clike
What should you do?

You add a class named ShippingInfo.
You need to modify the IShippingService interface and the ShippingInfo class to meet the technical requirements.
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.)
Select and Place:



Answer Clike
Which code segments can you insert at line EQ45 to achieve this goal?

The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException exception as defined by the FaultContractAttribute attribute in the IExternalQueueService.cs file.
You need to throw the FaultException exception.
Which code segments can you insert at line EQ45 to achieve this goal? (Each correct answer presents a complete solution. Chose all that apply)

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment should you replace line EQ64?

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which command should you use?

You need to regenerate the service proxies to include task-based asynchronous method signatures.
Which command should you use?
A. aspnet_regiis.exe /t:code http://localhost:62965/UploadCallbackService.svc
B. svcutil.exe /t:code http://localhost:62965/UploadCallbackService.svc
C. aspnet_compiler.exe /t:code http://localhost:62965/UploadCallbackService.svc
D. aspnet_regiis.exe /t:code http://localhost:62965/UploadService.svc
E. svcutil.exe /t:code http://localhost:62965/UploadService.svc


Answer Clike
Which code segment can you insert at line EQ45 to achieve this goal?

The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException exception as defined by the FaultContractAttribute attribute in the IExternatQueueService.cs file.
You need to throw the FaultException exception.
Which code segment can you insert at line EQ45 to achieve this goal? (Each correct answer presents a complete solution. Chose all that apply.)

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment can you use?

The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is run. The GetVendors() action must query the database only if the cache is null.
You need to add code to the action at line PC33 to cache the data.
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. cache.Set(new CacheItem("vendorKey", vendors), GetVendorPolicy());
B. cache.Add("vendors", vendors, new CacheItemPolicy());
C. cache.Add(new CacheItem("vendorKey", vendors) , GetVendorPolicy());
D. cache.AddOrGetExisting("vendorKey", context, new CacheItemPolicy());


Answer Clike
What should you do?

The QueueDetail entity type must inherit from the InboundQueue entity type in the ExternalQueue service project using table-per-type inheritance.
You need to modify the entities in the designer.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Remove the OrderNum property in InboundQueue.
B. Remove the OrderNum property in QueueDetail.
C. Set the QueueDetail BaseType to InboundQueue.
D. Remove the association between the entities.
E. Right-click the entities and validate the table mapping.
F. Set the InboundQueue BaseType to QueueDetail.


Answer Clike
Which code segment should you replace line EQ64?

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment should you use?

You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D


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

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.)
Select and Place:



Answer Clike
What should you do?

You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below.

Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be interpreted per the business requirements.
You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class.
What should you do? (To answer, drag the appropriate code segments to the correct location in the answer area. Each 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.)
Select and Place:



Answer Clike
What should you do?

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.)
Select and Place:



Answer Clike
What should you do?

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

Select and Place:


Answer Clike
What should you do?

You need to deploy the application to the Windows Azure production environment to meet the business requirements.
What should you do? (To answer, select the appropriate button in the answer area.)
Hot Area:




Answer Clike
Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.es file?

Transformed historical flight information provided by the RemoteDataStream() method must be written to the response stream as a series of XML elements named Flight within a root element named Flights. Each Flight element has a child element named FlightName that contains the flight name that starts with the two-letter airline prefix.
You need to implement the StreamHistoricalFlights() method so that it minimizes the amount of memory allocated.
Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.es file?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which code segment should you replace 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.
With which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.es file?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you do?

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.)
Select and Place:



Answer Clike
Which code segment should you use?

You are adding a new REST service endpoint to the FlightDataController controller that returns the total number of seats for each airline.
You need to write a LINQ to Entities query to extract the required data.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you use?

You need to load flight information provided by Consolidated Messenger.
What should you use?
A. Office Open XML
B. COM interop
C. OleDbConnection and OleDbDataReader
D. EntityConnection and EntityDataReader


Answer Clike
What should you do?

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? (Each correct answer presents part of the solution. Choose all that apply.)
A. Use the WasLate property as the row key.
B. Use the Airline property as the row key.
C. Use the WasLate property as the partition key
D. Use the Arrival property as the row key.
E. Use the Airline property as the partition key.
F. Use the Flight property as the row key.


Answer Clike
Which should you use?

You need to load flight information provided by Consolidated Messenger.
Which should you use?
A. SQL Server Data Transformation Services (DTS)
B. EntityTransaction and EntityCommand
C. Office Open XML
D. OleDbConnection and OleDbDataReader


Answer Clike
Which code segment should you use?

You are adding a new REST service endpoint to the FlightDataController controller. It returns flights from the consolidated data sources only for flights that are late.
You need to write a LINQ to Entities query to extract the required data.
Which code segment should you use?

A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you do?

Data provided by Consolidated Messenger is cached in the HttpContext.Cache object.
You need to ensure that the cache is correctly updated when new data arrives.
What should you do?
A. Ensure that the EffectivePrivateBytesLimit value is greater than the size of the database file.
B. Change the sliding expiration of the cache item to 12 hours.
C. Use the SqlCacheDependency type configured with a connection string to the database file.
D. Use the CacheDependency type configured to monitor the SFTP target folder.


Answer Clike
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?
A. LINQ to XML
B. ADO.NET Entity Framework
C. ADO.NET DataSets
D. WCF Data Services


Answer Clike
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?


A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike