70-494 Premium Bundle

70-494 Premium Bundle

Recertification for MCSD: Web Applications Certification Exam

4.5 
(17430 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-494 Free Practice Questions

Q1. DRAG DROP - (Topic 5) 

You are developing an ASP.NET Web API for a home inventory management system. You need to limit access to users with IP addresses based only in the United States. 

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:  

Q2. - (Topic 2) 

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: B,C,D,E 

Explanation: http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/ 

Q3. - (Topic 5) 

You are developing an ASP.NET MVC application. 

You need to authenticate clients by using an ASP.NET membership database. 

Which authentication method should you implement? 

A. Windows 

B. Kerberos 

C. Forms 

D. Basic 

Answer:

Q4. DRAG DROP - (Topic 5) 

You are developing a .NET application that uses the HttpClient type to access an ASP.NET 

Web API application. 

You need to add a header to ensure that data is returned as XML. 

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:  

Q5. - (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:

Q6. - (Topic 1) 

You are developing an ASP.NET MVC application that is secured 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. In the Package/Publish settings of the project, select the All Files in this project folder option. 

B. In the Build Events settings of the project, configure a pre-build event to include the SSL certificate. 

C. Create a web publish pipeline target file with a custom web deploy target. 

D. In the Signing dialog box, choose Sign the assembly and select the appropriate entry from the Choose a strong name key file list. 

Answer:

Q7. DRAG DROP - (Topic 2) 

You need to create the ShippingContext class in the ShippingAddress.cs 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.) 

Answer:  

Q8. - (Topic 5) 

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 URL 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:

Q9. - (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:

Q10. - (Topic 5) 

You are developing an ASP.NET MVC web application that includes the following method. 

You need to test the AccountBalance method. Which unit test should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

http://msdn.microsoft.com/en-us/magazine/cc163665.aspx http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx 

Q11. DRAG DROP - (Topic 5) 

You are developing an ASP.NET MVC Web API application. 

The methods of the Web API must return details about the result of the operation. 

You need to create methods to update and delete products. 

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

Answer:  

Q12. DRAG DROP - (Topic 5) 

You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication. 

The application must: 

. Use Windows Identity Foundation 4.5. 

. Support the Windows Azure Access Control Service. 

You need to implement authentication. 

How should you build the class constructor? (To answer, drag the appropriate code segment 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:  

Q13. - (Topic 3) 

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance. Which attribute should you add? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer:

Q14. - (Topic 5) 

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:

Q15. HOTSPOT - (Topic 5) 

You are developing an ASP.NET MVC application. 

You need to store membership information in a Microsoft SQL Server database. 

How should you configure the membership provider? (To answer, select the appropriate 

options in the answer area.) 

Answer:  

START 70-494 EXAM