Q: 14
A Revenue Cloud Consultant is defining relationships in Constraint Modeling Language (CML) to model a house that must contain rooms. The house must have at least one and at most five rooms, and exactly two bathrooms. The consultant also wants the system to instantiate rooms in a specific order – first a Living Room, then a Bedroom – when rooms are created. Which script correctly defines these relationships in CML?
Options
Discussion
B tbh, A throws me off since the order is wrong and min room count isn’t set right.
Option B is right, but if the order had to be Bedroom first then LivingRoom, would A work better?
B , seen this in practice sets and the official study guide. The way it handles the room cardinality (1..5) and creation order (LivingRoom then Bedroom) fits exactly what the question wants. Definitely worth checking the CML syntax section in the docs if you want more details. If anyone’s found a counterexample let me know, but pretty sure B lines up with best practices.
B - official practice tests and the doc on CML syntax both point to that answer.
Nah, not A here. B nails the room min/max and the creation order, where A messes up both. Trap is that A doesn’t enforce 1..5 for rooms. Anyone disagree?
B for sure. The min/max room cardinality and the order (LivingRoom, Bedroom) are exactly what the scenario calls for. A has both those details wrong. Pretty sure this lines up with real use in CML.
Its B. The cardinality is right for both rooms and bathrooms, and the order matches what the scenario asks for.
Be respectful. No spam.