Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce ARC-101 Exam - Topic 9 Question 67 Discussion

Northern Trail Outfitters wants to improve the quality of call-outs from Salesforce to theirREST APIs. For this purpose, they will require all API clients/consumers to adhere to RESTAPIMarkup Language (RAML) specifications that include field-level definition of every APIrequest and response payload. RAML specs serve as interface contracts that Apex REST APIClients can rely on.Which two design specifications should the Integration Architect include in the integrationarchitecture to ensure that Apex REST API Clients unit tests confirm adherence to the RAMLspecs?Choose 2 answers
A) Call the Apex REST API Clients in a test context to get the mock response. and D) Implement HttpCalloutMock to return responses per RAML specification.
B) Require the Apex REST API Clients to implement the HttpCalloutMock.
C) Call the HttpCalloutMock implementation from the Apex REST API Clients.

Salesforce ARC-101 Exam - Topic 9 Question 67 Discussion

Actual exam question for Salesforce's ARC-101 exam
Question #: 67
Topic #: 9
[All ARC-101 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

0/2000 characters
Buddy
2 months ago
I feel like all options have their place, but D stands out.
upvoted 0 times
...
Lenita
2 months ago
B is also important for testing.
upvoted 0 times
...
Lettie
2 months ago
A could work too, but D is stronger.
upvoted 0 times
...
Louann
2 months ago
Agreed, D ensures compliance with RAML.
upvoted 0 times
...
Isaiah
2 months ago
I think D is essential.
upvoted 0 times
...
Coleen
2 months ago
This question is tricky!
upvoted 0 times
...
Micah
3 months ago
I’m not sure about C, seems a bit redundant to me.
upvoted 0 times
...
Armando
3 months ago
Totally agree with D, it’s essential for compliance!
upvoted 0 times
...
Lanie
3 months ago
Wait, are we really expecting all clients to follow RAML?
upvoted 0 times
...
Sharen
4 months ago
I think A could work too, but not as reliable.
upvoted 0 times
...
Tegan
4 months ago
Definitely B and D for solid testing!
upvoted 0 times
...
Layla
4 months ago
A and D, no doubt. Gotta keep those API clients in line!
upvoted 0 times
...
Elza
4 months ago
Haha, mock responses? Sounds like a party! A and D all the way.
upvoted 0 times
...
Louis
4 months ago
A and D are the way to go. Anything less and you're just asking for trouble.
upvoted 0 times
...
Almeta
4 months ago
A and D for sure. Mocking is the way to go, saves a ton of headaches.
upvoted 0 times
...
Chu
5 months ago
Definitely A and D. Gotta love those mock responses!
upvoted 0 times
...
Lezlie
5 months ago
A and D are the correct answers. Mocking the API responses is key to ensuring the clients adhere to the RAML specs.
upvoted 0 times
...
Samuel
5 months ago
I definitely remember that we should mock responses based on RAML, so option D seems like a solid choice for ensuring compliance.
upvoted 0 times
...
Arthur
5 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.
upvoted 0 times
...
Hayley
5 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.
upvoted 0 times
...
Mertie
5 months ago
I think implementing HttpCalloutMock to return responses per RAML specs is crucial. It aligns with what we practiced in our last session.
upvoted 0 times
...
Ilona
6 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.
upvoted 0 times
...
Kizzy
6 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.
upvoted 0 times
...
Rose
6 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.
upvoted 0 times
...
Lashunda
6 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?
upvoted 0 times
...
Sarah
7 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.
upvoted 0 times
Sonia
24 days ago
Let's not forget about testing in a proper context!
upvoted 0 times
...
Shawn
29 days ago
Yes, it ensures compliance with RAML specs.
upvoted 0 times
...
Fabiola
1 month ago
I think implementing HttpCalloutMock is a must.
upvoted 0 times
...
Carli
1 month ago
Definitely! Mocking responses is key.
upvoted 0 times
...
Reuben
6 months ago
I agree, focusing on RAML is crucial.
upvoted 0 times
...
...

Save Cancel