Q1. - (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/
Q2. DRAG DROP - (Topic 2)
You need to complete the GetProcessedOrders() action in the ProcessedOrderController controller 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:
Q3. - (Topic 4)
You are developing a WCF service.
You need to create a duplex contract.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Apply the MessageContractAttribute attribute to every public method signature included in the appropriate contract.
B. Create an interface for the client-side duplex contract.
C. Create an interface for the server-side duplex contract.
D. Apply the MessageContractAttribute attribute to the appropriate interface.
E. Apply the ServiceContractAttribute attribute to the appropriate interface. Then, apply the OperationContractAttribute attribute to every public method signature included in that contract.
F. Set the CallbackContract property to the appropriate interface.
Answer: C,E,F
Explanation: To create a duplex contract
(C) Create the interface that makes up the server side of the duplex contract.
(E) Apply the ServiceContractAttribute class to the interface.
Declare the method signatures in the interface.
(E)Apply the.OperationContractAttribute.class to each method signature that must be part of the public contract.
Create the callback interface that defines the set of operations that the service can invoke on the client.
Declare the method signatures in the callback interface.
Apply the.OperationContractAttribute.class to each method signature that must be part of the public contract.
(F)
Link the two interfaces into a duplex contract by setting
the.CallbackContract.property in the primary interface to the type of the callback
interface.
Reference: How to: Create a Duplex Contract
Q4. - (Topic 4)
You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The library provides implementations of security algorithms.
If a problem with any of the security algorithms is discovered, a new version of the library must be created and deployed. Application downtime during the update must be minimized.
You need to ensure that the new version of the library will be used by all applications as soon as possible.
What should you do?
A. Build the web applications and include the security assembly as an embedded resource.
When an update is needed, copy the new assembly to the bin directory for the application.
B. Sign all assemblies in each application with the same key used to sign the security assembly.
When an update is needed, create a new key pair and re-sign all assemblies.
C. Build the security assembly as a netmodule in a shared location.
Use the assembly linker to merge the netmodule into the assemblies for the application.
When an update is needed, update the netmodule in the shared location.
D. Install the security assembly in the Global Assembly Cache (GAC).
When an update is needed, update the assembly in the GAC.
Answer: D
Q5. DRAG DROP - (Topic 4)
You are developing a WCF service.
You need to configure the web.config file to ensure that metadata is exposed only via the
MEX protocol.
You have the following markup:
Which XML elements should you include in Target 1, Target 2, Target 3 and Target 4 to complete the markup? (To answer, drag the appropriate XML elements to the correct targets in the answer area. Each XML element 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. - (Topic 4)
You are developing a new ASP.NET MVC application that does not have an existing database.
The requirements for the application are not complete, and the SQL data model will likely change.
You need to choose an approach to visually manage a data model.
Which approach should you use?
A. Physical First
B. Database First
C. Code First
D. Model First
Answer: D
Explanation: With the model first workflow, you can design a model in a designer.
Q7. - (Topic 4)
You are developing an ASP.NET MVC application. The application is a loan processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all loans along with rate information. Lazy loading has been disabled.
The Loan class is shown below.
You need to return the loans and rate information in a single round trip to the database. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q8. - (Topic 4)
You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to prevent the application from reading data that is locked by other transactions. You also need to prevent exclusive range locks.
Which isolation level should you use?
A. ReadCommitted
B. Serializable
C. Repeatable
D. ReadUncommitted
Answer: A
Q9. HOTSPOT - (Topic 4)
You are developing an application.
The application must be deployed from Team Foundation Server after a successful build is completed. The Process tab of the Build Definition screen is shown in the exhibit. (Click the Exhibit button.)
You need to configure the automated deployment.
In which section should you define the parameters for the automated deployment? (To answer, select the appropriate section in the answer area.)
Answer:
Q10. - (Topic 4)
You are planning to migrate websites from IIS 6 to IIS 7.5. You do not have access to SSH or a VPN.
You need to select a deployment tool to securely migrate the websites.
Which tool should you use?
A. RoboCopy
B. Web Deploy
C. Microsoft command-line FTP
D. xCopy
Answer: B