Test
Accessing Data
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (16)
1You are building an ADO.NET EF application. You need to add a property of type
NVARCHAR(50) named Notes to the underlying database table named Customer and
have it reflected in the Customer entity. What should you do?- ADrop the Customer table and re-create it with the new field; then choose the
Generate Database From Model option. - BAdd the field to the underlying table, add a Scalar property of type String to the
Customer entity, and update the mapping. - CRun the Update Model Wizard.
- DRun the EDM Generator.
- ADrop the Customer table and re-create it with the new field; then choose the
2You have been asked to choose a data access technology to retrieve data from a SQL
Server database and have it exposed over the web. The application will be consumed
exclusively by external parties that have no access to the internal database. Which data
access technologies should you recommend?- ALINQ-to-SQL
- BADO.NET Entity Framework
- CWCF Data Services
- DADO.NET Data Services
3You are working with an EDM and suspect there’s a problem with the mappings. Which
file should you look at to see the underlying code?- ACSDL file
- BSSDL file
- CMSL file
- DEDMX file
4Which of the following are provided for use by the .NET Framework as
ChangeMonitors when defining a CacheItemPolicy?- ACacheEntryChangeMonitor
- BFileChangeMonitor
- CMsmqChangeMonitor
- DSqlChangeMonitor
5You have set up an ObjectCache instance using the following code:
List<String> fileList = new List<String>();
fileList.Add(@"C:\SomeDirectory\SampleFile.txt");
ObjectCache cacheInstance = MemoryCache.Default;
CacheItemPolicy accountPolicy = new CacheItemPolicy();
accountPolicy.Priority = CacheItemPriority.Default;
accountPolicy.AbsoluteExpiration = DateTime.Now.AddMinutes(60);
accountPolicy.ChangeMonitors.Add(new HostFileChangeMonitor(fileList));
CacheItem exampleItem1 = new CacheItem("ExampleItemId", "Example Item Value",
"AccountObjects");
Which of the following items add an item to the cache with a key named “ExampleItemId,”
a value of “Example Item Value,” a region named “AccountObjects,” and a
CacheItemPolicy with a Default CacheItemPriority?- AcacheInstance.Add(exampleItem1, accountPolicy);
- BcacheInstance.Add(exampleItem1, accountPolicy.Priority.Default);
- CcacheInstance.Add(“ExampleItemId”, “Example Item Value”, accountPolicy);
- DcacheInstance.Add(“ExampleItemId”, “Example Item Value”, accountPolicy,
“AccountObjects”);
6You are developing an ASP.NET application that reads data from and writes data to a
SQL Server database. You should avoid nonrepeatable reads and not concern yourself
with phantom data. Which isolation level should you use?- AReadUncommitted
- BRepeatableRead
- CChaos
- DSnapshot
7Which items would benefit from being made transactional?
- ALong-running queries that span multiple tables
- BQuick-running queries that involve only one table
- CQueries that make use of the file system on a Windows operating system.
- DQueries that make use of the file system of a non-Windows operating system.
8You are developing an ASP.NET application that hosts an online chat room. What
Windows Azure Storage options should you consider for storing the contents of these
chat rooms?- ATable storage
- BQueue storage
- CBlob storage
- DCDN storage
9Benefits of using Windows Azure Content Delivery Network include?
- AIncreased performance for users geographically close to the content source.
- BIncreased performance for users geographically far from a content source.
- CLarge distributed scale to better handle instanteously increased loads.
- DImproved security.
10Which of the following queries take advantage of the Content Delivery network?
- Ahttp://atlanta.vo.mysite.net/documents
- Bhttp://myaccount.blob.core.windows.net/documents
- Chttp://myaccount.atlanta.blob.core.windows.net/documents
- Dhttp://atlanta.mysite.net/documents
11You need to create an interceptor that runs each time you try to return Topic items.
Which items should you use?- AChangeInterceptor
- BQueryInterceptor
- CDataServiceProtocolVersion
- DSetEntitySetAccessRule
12You need to return all questions that have an Id greater than 5. Which query should
you use?- Ahttp://servicehost/ExamPrepService.svc/Questions?$filter=Id gt 5
- Bhttp://servicehost/ExamPrepService.svc/Questions?$filter(ID> 5)
- Chttp://servicehost/ExamPrepService.svc/Questions(>5)
- Dhttp://servicehost/ExamPrepService.svc/Questions?$select(Id) gt 5
13Assume you have the following C# code snippet.
var selectedQuestions = from q in context.Questions
where q.QuestionNumber > 30
orderby q.QuestionId descending
select q;
Which of the following URI queries is the equivalent?- Ahttp://Service/Question.svc/Questions?Orderby=QuestionId&?$QuestionNumber
( gt 30) - Bhttp://Service/Question.svc/Questions?Orderby=QuestionId&?$QuestionNumber gt 30
- Chttp://Service/Question.svc/Questions?Orderby=QuestionId&?filte
r=(QuestionNumber > 30) - Dhttp://Service/Question.svc/Questions?Orderby=QuestionId&?filte
r=QuestionNumber gt 30
- Ahttp://Service/Question.svc/Questions?Orderby=QuestionId&?$QuestionNumber
14You need to use an ampersand in the name of an element you create with an XElement
item. Which of the following allows a correctly created element name?- AJust pass in the string to the XElement constructor; it handles it automatically by
calling the XmlConvert class transparently. - BManually escape the character sequence.
- CUse the XmlConvert.Encode method to create the string to pass into the
constructor. - DAll of the above.
- AJust pass in the string to the XElement constructor; it handles it automatically by
15Which of the following are requirements for a valid and well-formed XML document?
- AEvery element must have a corresponding closing element.
- BEvery element must have at least one attribute.
- CEvery attribute must have a corresponding closing attribute.
- DElements and attributes can be used interchangeably as long as they have open
and closing tags
16Which values are valid choices when defining the Priority property of the CacheItemPolicy
using the System.Runtime.Caching version of the Cache?- ANormal
- BHigh
- CNotRemovable
- DLow
Información
- Descripción
- MCSD Prep 70-487
- Autor
- Paulo Duarte
- Idioma
- Português
- Visitas
- 30
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test