Ensurepass


QUESTION 10

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method.

You need to modify the queryString string to retrieve the record. With which code segment should you replace line EQ64?

 

A.clip_image001

B.clip_image002

C.clip_image003

D.clip_image004

 

Correct Answer:A

 

QUESTION 11

You need to modify the ExecuteCommandProcedure() method to meet the technical requirements. Which code segment should you use?

A.clip_image005

B.clip_image006

C.clip_image007

D.clip_image009

 

Correct Answer:A

 

QUESTION 12

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method. You need to modify the queryString string to retrieve the record. With which code segment should you replace line EQ64?

clip_image010

 

A.clip_image011

B.clip_image012

C.clip_image013

D.clip_image014

 

Correct Answer:C

 

QUESTION 13

You need to regenerate the service proxies to include task-based asynchronous method signatures. Which command should you use?

 

A.  aspnet_regiis.exe /t:code http://localhost:62965/UploadCallbackService.svc

B.  svcutil.exe /t:code http://localhost:62965/UploadCallbackService.svc

C.  aspnet_compiler.exe /t:code http://localhost:62965/UploadCallbackService.svc

D.  aspnet_regiis.exe /t:code http://localhost:62965/UploadService.svc

E.  svcutil.exe /t:code http://localhost:62965/UploadService.svc

 

Correct Answer:B


 

QUESTION 14

The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException exception as defined by the FaultContractAttribute attribute in the IExternatQueueService.cs file. You need to throw the FaultException exception. Which code segment can you insert at line EQ45 to achieve this goal? (Each correct answer presents a complete solution. Chose all that apply.)

 

A.clip_image015

B.clip_image016

C.clip_image017

D.clip_image018

 

Correct Answer:C

 

QUESTION 15

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());

 

Correct Answer:AC

 

QUESTION 16

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.

 

Correct Answer:BCDE

 

Download Latest 70-487 Real Free Tests , help you to pass exam 100%.

Comments are closed.