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 Rev-Con-201 Exam - Topic 4 Question 6 Discussion

Posted by Cyndy on Nov 25, 2025 at 03:08 PM

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?

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

Get Premium Rev-Con-201 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
AR
Arminda 7 months ago
Yes! Reusability is important for future rules.
WA
Wava 7 months ago
I feel like option C saves time in the long run.
SH
Sharee 7 months ago
Hard coding in option B is a bad idea. Too rigid!
GR
Gretchen 7 months ago
Option A seems okay, but it’s not as efficient.
RO
Rosita 7 months ago
Agreed! A global constant makes it easier to update later.
AI
Aide 8 months ago
Global constants are the way to go, keeps things clean!
AL
Altha 8 months ago
Wait, why not just use a color picker instead?
KA
Karrie 8 months ago
I disagree, A would be easier to manage.
MO
Moon 9 months ago
C sounds like the best option for reusability!
BE
Bettina 9 months ago
C is the way to go. Gotta love that global constant - it's the color-coded key to success!
EI
Eileen 9 months ago
Haha, B is for "Boring and Outdated." C is where it's at, folks!
ST
Stephane 9 months ago
C is the obvious choice. Ain't nobody got time for hard-coding colors in every rule!
BR
Brett 9 months ago
I agree, C is the best option. Who wants to update a bunch of rules every time the blocked color changes?
AL
Alaine 9 months ago
C is the way to go. Keeping things consistent and reusable is key.
KA
Karol 10 months 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.
MO
Mollie 10 months 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.
DI
Dianne 10 months ago
I'm not entirely sure, but I feel like hard coding values could lead to more errors down the line.
CO
Cordelia 10 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.
EL
Elvera 10 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.
YO
Yolande 10 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.
KA
Katina 11 months ago
I think option C is the best choice. Consistency is key.
PA
Paz 11 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.
MA
Malinda 11 months ago
Hard coding is a bad idea, B is definitely not the way to go.
LI
Lisbeth 11 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?
LE
Leonie 12 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.
EL
Eloisa 6 months ago
↳ replying to Leonie
A global constant makes everything cleaner and easier to manage.
MI
Micheline 6 months ago
↳ replying to Leonie
Reusability is key in coding!
DO
Dottie 6 months ago
↳ replying to Leonie
Hard coding is just asking for trouble later.
LO
Lorita 7 months ago
↳ replying to Leonie
I agree, option C is definitely the way to go.
SC
Scarlet 11 months ago
↳ replying to Leonie
Using a global constant saves time in the long run.
0/2000 characters

Save Cancel