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 Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 3 Question 93 Discussion

Which three statements are true about Global API versioning? (3 answers)
A) Calling in with an API version set to lower than 1 will result in an exceptional case where the exception classccrz.BelowMinAPIVersionException will be returned tocallers. and D) Minimum API_VERSION is 1 and the Maximum API version follows the releases. E.g. The maximum was 4 as of Salesforce B2B Commerce Release-4.5, 5 as of Salesforce B2B CommerceRelease 4.6, etc. and E) Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers.
B) There is no need to pass API_VERSION to the Global APIs, and based on the Salesforce B2B Commerce Managed Package version, Global APIs are able to figure out what version of the API to use.
C) The API version is scoped at the Class API level and NOT at the method level.

Salesforce Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 3 Question 93 Discussion

Actual exam question for Salesforce's Salesforce Accredited B2B Commerce Developer Professional (AP-202) exam
Question #: 93
Topic #: 3
[All Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions]

Which three statements are true about Global API versioning? (3 answers)

Show Suggested Answer Hide Answer
Suggested Answer: A, D, E

Three statements that are true about Global API versioning are:

Calling in with an API version set to lower than 1 will result in an exceptional case where the exception class ccrz.BelowMinAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a higher API version.

The API version is scoped at the Class API level and NOT at the method level. This means that all the methods in a class will use the same API version that is specified by the caller. For example, if the caller passes an API version of 4 to ccrz.ccServiceProduct.getProducts(), then all the other methods in ccrz.ccServiceProduct will also use API version 4.

Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a lower API version. Salesforce Reference:B2B Commerce and D2C Commerce Developer Guide,API Versioning


Contribute your Thoughts:

0/2000 characters
Wayne
3 days ago
I think A, B, and D are correct.
upvoted 0 times
...
Mireya
8 days ago
E seems a bit odd, can you really exceed the max version?
upvoted 0 times
...
Lawrence
13 days ago
D is accurate, I remember the max version updates.
upvoted 0 times
...
Eura
18 days ago
C? Not sure about that, I thought it was method scoped.
upvoted 0 times
...
Reita
23 days ago
B sounds right, no need to specify the version!
upvoted 0 times
...
Jettie
29 days ago
A is definitely true, I've seen that exception before.
upvoted 0 times
...
Jin
1 month ago
E) Wait, really? I didn't know exceeding the max version throws an exception!
upvoted 0 times
...
Emiko
1 month ago
D) Yup, the max version keeps changing with releases.
upvoted 0 times
...
Winifred
1 month ago
C) I thought it was scoped at the method level, that's interesting!
upvoted 0 times
...
Pamella
2 months ago
B) makes sense, no need to specify if it auto-detects.
upvoted 0 times
...
Arlyne
2 months ago
A) is definitely true, I've seen that exception before.
upvoted 0 times
...
Jules
2 months ago
I recall a practice question about exceptions related to API versions, so I think options A and E might be true based on that.
upvoted 0 times
...
Casie
2 months ago
I'm a bit confused about the scope of the API version. I thought it was at the method level, but now I'm not so sure.
upvoted 0 times
...
Berry
2 months ago
I think option B is correct because we discussed how Global APIs can determine the version automatically based on the package version.
upvoted 0 times
...
Ardella
4 months ago
I remember something about the minimum API version needing to be 1, but I'm not sure if that's just for certain APIs or all of them.
upvoted 0 times
...

Save Cancel