10.02.2016 Views

70-516CSHARP-demo

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Question: 4<br />

Answer: C<br />

Explanation:<br />

An OData client accesses data provided by an OData service using standard HTTP. The OData protocol<br />

largely follows the conventions defined by REST, which define how HTTP verbs are used. The most<br />

important of these verbs are:<br />

GET: Reads data from one or more entities.<br />

PUT: Updates an existing entity, replacing all of its properties.<br />

MERGE: Updates an existing entity, but replaces only specified properties[2].<br />

POST: Creates a new entity.<br />

DELETE: Removes an entity.<br />

Http Header Verbs Enumeration<br />

(http://msdn.microsoft.com/en-us/library/windows/desktop/aa364664(v=vs.85).aspx )<br />

WCF Data Services Overview<br />

(http://msdn.microsoft.com/en-us/library/cc668794.aspx)<br />

Introduction to OData Protocol<br />

(http://msdn.microsoft.com/en-us/data/hh237663)<br />

You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL<br />

Server 2008 database by using SQL Server authentication. The application contains the following<br />

connection string. SERVER=DBSERVER-01; DATABASE=pubs; uid=sa; pwd=secret; You need to ensure<br />

that the password value in the connection string property of a SqlConnection object does not exist<br />

after the Open method is called. What should you add to the connection string?<br />

A. Persist Security Info=True<br />

B. Trusted_Connection=True<br />

C. Persist Security Info=False<br />

D. Trusted_Connection=False<br />

Question: 5<br />

Answer: C<br />

Explanation:<br />

The Persist Security Info property specifies whether the data source can persist sensitive<br />

authentication information such as a password.<br />

Persist Security Info Property<br />

(http://msdn.microsoft.com/en-us/library/aa214039(v=sql.80).aspx)<br />

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The<br />

application connects to a Microsoft SQL Server database. The application uses the ADO.NET Entity<br />

Framework to manage order data. The application makes a Web service call to obtain orders from an<br />

order-tracking system. You need to ensure that the orders are added to the local data store. Which<br />

method should you call on the ObjectContext?<br />

A. Attach<br />

B. AttachTo

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!