Valid Integration-Architect Dumps shared by ExamDiscuss.com for Helping Passing Integration-Architect Exam! ExamDiscuss.com now offer the newest Integration-Architect exam dumps, the ExamDiscuss.com Integration-Architect exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Integration-Architect dumps with Test Engine here:
Northern Trail Outfitters wants to improve the quality of call-outs from Salesforce to their REST APIs. For this purpose, they will require all API clients/consumers to adhere to RESTAPI Markup Language (RAML) specifications that include field-level definition of every API request and response payload. RAML specs serve as interface contracts that Apex REST API Clients can rely on. Which two design specifications should the Integration Architect include in the integration architecture to ensure that ApexREST API Clients unit tests confirm adherence to the RAML specs? Choose 2 answers
Correct Answer: A,D
Explanation The HttpCalloutMock interface allows testing HTTP callouts by returning a predefined response in a test context. By implementing HttpCalloutMock to return responses per RAML specification, the Apex REST API Clients unit tests can confirm that the API requests and responses match the expected format and values. Calling the Apex REST API Clients in a test context to get the mock response is also necessary to verify the adherence to the RAML specs. Calling the HttpCalloutMock implementation from the Apex REST API Clients or requiring the Apex REST API Clients to implement the HttpCalloutMock are not valid options because the HttpCalloutMock interface is implemented by a separate class that is passed as a parameter to the Test.setMock method2 References: 1: Idempotent REST APIs 2: Testing HTTP Callouts by Implementing the HttpCalloutMock Interface