Exam Rev-Con-201 Topic 3 Question 8 Discussion

Actual exam question for Salesforce's Rev-Con-201 exam
Question #: 8
Topic #: 3
A product administrator needs to add a required rule using Constraint Modeling Language (CML) so that whenever a product called Desktop is added to a quote, another standalone product called Monitor will be automatically added.
What is the correct CML syntax to write this rule?

Suggested Answer: B Vote an answer

Explanation (150-250 words)
Constraint Modeling Language (CML) defines logical relationships between quote line items, allowing administrators to automate dependency and compatibility logic in Salesforce CPQ.
The keyword require() explicitly establishes a dependency that ensures one product must exist when another is present in a quote.
The correct syntax must define relationships with multiplicity ranges (e.g., [0..99]) and use the require() function, not constraint(), to specify the rule. Option B meets these criteria:
type Quote {
relation desktop : Desktop[0..99];
relation monitor : Monitor[0..99];
require(desktop[Desktop], monitor[Monitor], "Desktop requires Monitor");
}
This ensures that when "Desktop" is added, "Monitor" is automatically included. The other options are incorrect because:
* Option A uses the wrong function (constraint() instead of require()), which defines logical conditions but doesn't enforce automatic inclusion.
* Option C omits multiplicity, which is required for valid relationship definition.
Exact Extract from Salesforce CPQ Implementation Guide:
"The require() statement in CML defines a dependency rule so that when one product is selected, the dependent product is automatically added to the quote." References:
Salesforce CPQ Implementation Guide - Constraint Rules and CML Syntax
Salesforce Revenue Cloud Developer Guide - Defining Product Relationships in CML

by Emily at Jun 02, 2026, 04:44 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10