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 Apex REST API Clients unit tests confirm adherence to the RAML
specs?
Choose 2 answers
Suggested Answer: A, D
Get Premium ARC-101 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
BU
Buddy
7 months ago
I feel like all options have their place, but D stands out.
LE
Lenita
7 months ago
B is also important for testing.
LE
Lettie
7 months ago
A could work too, but D is stronger.
LO
Louann
7 months ago
Agreed, D ensures compliance with RAML.
IS
Isaiah
7 months ago
I think D is essential.
CO
Coleen
7 months ago
This question is tricky!
MI
Micah
8 months ago
I’m not sure about C, seems a bit redundant to me.
AR
Armando
8 months ago
Totally agree with D, it’s essential for compliance!
LA
Lanie
8 months ago
Wait, are we really expecting all clients to follow RAML?
SH
Sharen
9 months ago
I think A could work too, but not as reliable.
TE
Tegan
9 months ago
Definitely B and D for solid testing!
LA
Layla
9 months ago
A and D, no doubt. Gotta keep those API clients in line!
EL
Elza
9 months ago
Haha, mock responses? Sounds like a party! A and D all the way.
LO
Louis
9 months ago
A and D are the way to go. Anything less and you're just asking for trouble.
AL
Almeta
9 months ago
A and D for sure. Mocking is the way to go, saves a ton of headaches.
CH
Chu
10 months ago
Definitely A and D. Gotta love those mock responses!
LE
Lezlie
10 months ago
A and D are the correct answers. Mocking the API responses is key to ensuring the clients adhere to the RAML specs.
SA
Samuel
10 months ago
I definitely remember that we should mock responses based on RAML, so option D seems like a solid choice for ensuring compliance.
AR
Arthur
10 months ago
I'm feeling pretty confident about this one. The key is using the HttpCalloutMock to simulate the RAML-compliant responses, and then calling that mock from the Apex REST API Clients' unit tests.
HA
Hayley
10 months ago
Yeah, that makes sense. The Apex REST API Clients should be calling the HttpCalloutMock to get the mock responses, not directly calling the Apex REST API. That way they can confirm their code adheres to the RAML specs.
ME
Mertie
10 months ago
I think implementing HttpCalloutMock to return responses per RAML specs is crucial. It aligns with what we practiced in our last session.
IL
Ilona
11 months ago
Okay, I think I've got it. We need to implement the HttpCalloutMock to return responses that match the RAML spec, and then call that mock from the Apex REST API Clients in their unit tests.
KI
Kizzy
11 months ago
I feel like calling the Apex REST API Clients in a test context could be useful, but I can't recall if it directly confirms adherence to RAML.
RO
Rose
11 months ago
I remember that we discussed the importance of using HttpCalloutMock for testing, but I'm not sure if it should be required for all clients.
LA
Lashunda
11 months ago
I'm a bit confused about the difference between the Apex REST API Clients and the HttpCalloutMock. Can someone clarify how those two components work together?
SA
Sarah
12 months ago
This question seems pretty straightforward. I think the key is to focus on the RAML specs and how to ensure the Apex REST API Clients adhere to them.
SO
Sonia
6 months ago
Let's not forget about testing in a proper context!
SH
Shawn
6 months ago
Yes, it ensures compliance with RAML specs.
FA
Fabiola
6 months ago
I think implementing HttpCalloutMock is a must.
CA
Carli
6 months ago
Definitely! Mocking responses is key.
RE
Reuben
11 months ago
I agree, focusing on RAML is crucial.