Lead2pass New Microsoft 70-487 exam materials provided eliminates the tacky and laborious process of studying and memorization as it provides direct 70-487 questions and answers that will help you feel confident.
QUESTION 61
Drag and Drop Question
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
Answer:
QUESTION 62
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: AC
QUESTION 63
Drag and Drop Question
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.)
Answer:
QUESTION 64
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: B
Explanation:
* Scenario: The children’s book area of the web application must get data directly from a local database. It must use a connection string. It must also support access to the stored procedures on the database. Further, it is required to have strongly typed objects. Finally, it will require access to databases from multiple vendors and needs to support more than one-to-one mapping of database tables.
* Microsoft Language Integrated Query (LINQ) offers developers a new way to query data using strongly-typed queries and strongly-typed results, common across a number of disparate data types including relational databases, .NET objects, and XML. By using strongly-typed queries and results, LINQ improves developer productivity with the benefits of IntelliSense and compile-time error checking
QUESTION 65
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: D
Explanation:
* Scenario: The Create MonthlyTotalsReport() method must lock the data and prevent others from updating or inserting new rows until complete.
* Serializable: A range lock is placed on the DataSet, preventing other users from updating or inserting rows into the dataset until the transaction is complete.
QUESTION 66
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: B
QUESTION 67
Drag and Drop Question
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)
Answer:
QUESTION 68
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: A
Explanation:
* Scenario: The college textbook area of the web application must get data from a daily updated CSV file.
* ADO.NET reads the CSV file in a very similar way as table in database.
QUESTION 69
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/…
QUESTION 70
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: A
Lead2pass provides:
Comprehensive questions with complete details;
100% Accurate and Verified Answers ;
Most of Exam Answesrs with Explanations;
Printable questions and answers;
Complete coverage of exam objectives;
Precise explanations;
Regular Updates to Reflect Current Exam Material.