Q1. - (Topic 1)
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: D
Explanation: http://msdn.microsoft.com/en-us/library/system.xml.linq.xstreamingelement.aspx and http://msdn.microsoft.com/en-us/library/bb551307.aspx
Q2. - (Topic 2)
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: C
Q3. - (Topic 1)
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: D
Explanation: Explanation/Reference:
D is right because you send result as REST so if you use “AsQueryable” the result is
deferred to the next enumeration of your result.
D is not optimized but will works.
A will break at runtime.
Credits to Rem
Q4. - (Topic 4)
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: B
Q5. - (Topic 3)
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: C
Explanation: MapHttpRoute Method Maps the specified route template. Use the option with "api/…
Q6. DRAG DROP - (Topic 4)
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.
Answer:
Q7. DRAG DROP - (Topic 1)
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.)
Answer:
Q8. - (Topic 1)
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: C
Explanation: Explanation/Reference:
EntitySqlException: Represents errors that occur when parsing Entity SQL command text.
This exception is thrown when syntactic or semantic rules are violated.
SqlException: The exception that is thrown when SQL Server returns a warning or error.
This class cannot be inherited.
EntityCommandExecutionException : Represents errors that occur when the underlying
storage provider could not execute the specified command. This exception usually wraps a
provider-specific exception.
Q9. - (Topic 1)
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: C
Q10. DRAG DROP - (Topic 2)
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.)
Answer: