70-494 Exam - Recertification for MCSD: Web Applications

certleader.com

Q1. - (Topic 5) 

You are developing an ASP.NET MVC application. 

The application has a contact view that includes a form for editing the displayed contact. 

You need to save the Contact type when the form is posted back to the EditContact 

method. 

Which code segment should you use? (Each correct answer presents a complete solution. 

Choose all that apply.) 

A. Option A 

B. Option B 

C. Option D 

D. Option E 

Answer: C,D 

Q2. - (Topic 5) 

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

C. DELETE 

D. POST 

Answer:

Q3. nbsp;Topic 1, Scenario 1 

Background 

You are developing an online bookstore web application that will be used by your company's customers. 

Technical Requirements 

General requirements: 

. The web store application must be an ASP.NET MVC application written in Visual 

Studio. 

. The application must connect to a Microsoft SQL database. 

. The GetTop100Books() method is mission critical and must return data as quickly 

as possible. It should take advantage of fast forward-only, read-only methods of 

reading data. 

. The ImportBooks() method must keep a copy of the data that can be accessed 

while new books are being imported without blocking reads. 

. The CreateMonthlyTotalsReport() method must lock the data and prevent others 

from updating or inserting new rows until complete. 

. The college textbook area of the web application must get data from a daily 

updated CSV file. 

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

. The cookbook functionality is contained within a client-side application that must connect to the server using HTTP and requires access to the data using JavaScript. 

. The BookApiController class must have a method that is able to perform ad-hoc queries using OData. 

The RESTful API of the bookstore must expose the following endpoints. 

Application Structure 

PurchaseOrders.xml

Featured Books.xml

(Topic 1)

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. WCF Data Services 

B. ADO.NET 

C. Entity Data Model (EDM) 

D. LINQ to SQL 

Answer:

Q4. HOTSPOT - (Topic 5) 

You are developing an ASP.NET MVC application named ContosoWebApp. You are ready 

to deploy the application to your production web server. 

You need to import the publishing profile. 

Which menu item should you use? (To answer, select the appropriate menu item in the 

answer area). 

Answer:  

Q5. DRAG DROP - (Topic 4) 

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

Answer:  

Q6. DRAG DROP - (Topic 3) 

You need to ensure that the transcode.exe utility is installed before the worker role starts. 

How should you implement the startup task? (To answer, drag the appropriate values to the correct element or attribute. Each value 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) 

You need to configure the server to self-host the bookstore's Web API application. 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.) 

Answer:  

Q8. - (Topic 5) 

You are developing an ASP.NET MVC application that uses forms authentication against 

an Oracle database. 

You need to authenticate the users. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q9. - (Topic 5) 

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:

Q10. - (Topic 3) 

You need to ensure that all customers can delete videos regardless of their browser capability. 

Which code segment should you use as the body of the SendAsync method in the DeleteHandler class? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: