New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Rev-Con-201 Exam - Topic 4 Question 6 Discussion

Actual exam question for Salesforce's Rev-Con-201 exam
Question #: 6
Topic #: 4
[All Rev-Con-201 Questions]

A Revenue Cloud Consultant is writing a constraint rule in Constraint Modeling Language (CML) to prevent customers from selecting a red laptop case if the selected laptop model is Executive Pro. The consultant anticipates that this color restriction might apply to other products in the future and wants to make the rule easier to maintain and reusable across multiple rules.

Which approach should the consultant take?

Show Suggested Answer Hide Answer
Suggested Answer: C

Exact Extracts from Salesforce CPQ Advanced Configurator (Constraint Modeling Language Guide):

''Global constants enable administrators to define reusable values that can be referenced across multiple CML rules.''

''Using global constants ensures consistent logic and simplifies maintenance when constraints need to be updated.''

''Avoid hard-coded literals or repetitive local variables in multiple rules, as this increases maintenance complexity.''

Step-by-Step Reasoning:

Requirement: Create a reusable restriction for color ''red'' across several product rules.

Best Practice: Define global constant, e.g., const BlockedColor = 'Red'.

Why C is Correct:

Global constants promote reusability and reduce redundancy.

Changing one constant updates all dependent rules automatically.

Why Others Are Incorrect:

A: Local variables are limited to each rule; no reuse.

B: Hardcoding values breaks scalability and maintainability.


Salesforce CPQ Advanced Configurator Developer Guide --- Constraint Modeling Language (CML) and Global Constants

Salesforce CPQ Implementation Guide --- Best Practices for Constraint Rules and Reusability

Contribute your Thoughts:

0/2000 characters
Karrie
3 days ago
I disagree, A would be easier to manage.
upvoted 0 times
...
Moon
8 days ago
C sounds like the best option for reusability!
upvoted 0 times
...
Bettina
13 days ago
C is the way to go. Gotta love that global constant - it's the color-coded key to success!
upvoted 0 times
...
Eileen
18 days ago
Haha, B is for "Boring and Outdated." C is where it's at, folks!
upvoted 0 times
...
Stephane
24 days ago
C is the obvious choice. Ain't nobody got time for hard-coding colors in every rule!
upvoted 0 times
...
Brett
29 days ago
I agree, C is the best option. Who wants to update a bunch of rules every time the blocked color changes?
upvoted 0 times
...
Alaine
1 month ago
C is the way to go. Keeping things consistent and reusable is key.
upvoted 0 times
...
Karol
1 month ago
I’m a bit confused about the local variable approach. It seems like it would require more updates if we need to change the color later.
upvoted 0 times
...
Mollie
1 month ago
I think we practiced a similar question where we had to choose between local variables and global constants. The global constant seemed to be the better option for maintainability.
upvoted 0 times
...
Dianne
2 months ago
I'm not entirely sure, but I feel like hard coding values could lead to more errors down the line.
upvoted 0 times
...
Cordelia
2 months ago
I like how option C allows for flexibility and consistency across all the constraint rules. Seems like the most efficient and scalable solution.
upvoted 0 times
...
Elvera
2 months ago
Definitely go with the global constant approach. That way, if the blocked color needs to be changed, you only have to update it in one place.
upvoted 0 times
...
Yolande
2 months ago
I remember we discussed the importance of reusability in CML, so I think using a global constant for red makes the most sense.
upvoted 0 times
...
Katina
2 months ago
I think option C is the best choice. Consistency is key.
upvoted 0 times
...
Paz
3 months ago
Option B seems too rigid. Hard-coding the color directly in each rule would make it harder to update if the blocked color changes in the future.
upvoted 0 times
...
Malinda
3 months ago
Hard coding is a bad idea, B is definitely not the way to go.
upvoted 0 times
...
Lisbeth
3 months ago
I'm a bit confused on the difference between a local variable and a global constant. Wouldn't a local variable work just as well in this case?
upvoted 0 times
...
Leonie
3 months ago
I think option C is the best approach here. Using a global constant for the blocked color will make the rule more maintainable and reusable across multiple products.
upvoted 0 times
Scarlet
3 months ago
Using a global constant saves time in the long run.
upvoted 0 times
...
...

Save Cancel