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.)
Correct Answer:
CEF
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
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 dat a.
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer:
AC
DRAG DROP
You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below.
< ><>>>>< >
Solution:
Does this meet the goal?
Correct Answer:
A
DRAG DROP
You are developing a self-hosted WCF service that returns stock market information. The service must be discoverable by any client application.
You need to build the service host.
How should you build the host? (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.)
Solution:
Does this meet the goal?
Correct Answer:
A
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop a REST API that uses Node.js. The API will store data in Azure Cosmos DB. You plan to deploy the API to a new Azure App Services Web App. You create a new Web App by using the Azure portal.
The API must be deployed by using SFTP.
You need to provide the proper deployment credentials to deploy the API. Solution: Use your Azure Cosmos DB master key and resource token.
Does the solution meet the goal?
Correct Answer:
B
Get FTP publishing profile and query for publish URL and credentials
References: https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli- deploy-ftp