OMG-OCUP2-ADV300 practice question 2 of 10

An organization has determined that they want to add the capability to create and add requirement elements to their UML models. They also want to create a unique relationship for tracing requirements to other model elements. What is the appropriate approach to do this?

Full set: 90 questions
Answer options
A: Use the requirement element and relationship defined in the UML specification.
B: Create a profile that stereotypes Class as requirement and Dependency as the relationship. Correct answer
C: Create a new MOF metamodel that includes UML and adds the desired requirement element and relationship.
D: Assign tag values that ascribe the desired requirement type to a UML Requirement and Dependency relationship. exam question
Correct Answer:
B. Create a profile that stereotypes Class as requirement and Dependency as the relationship.
Explanation

Standard UML does not include a built-in Requirement metaclass or requirement-tracing relationship natively. To extend UML with domain-specific concepts without modifying the core metamodel, UML provides the Profile mechanism. The standard and proper approach is to create a UML profile containing two key stereotypes: a stereotype extending the Class metaclass to represent requirement elements, and a stereotype extending the Dependency (or Abstraction) metaclass to represent trace relationships between requirements and target architectural elements. This maintains full tool interoperability and adheres strictly to OMG UML profile extension guidelines.

Why Incorrect

A. Core UML 2.5.1 standard does not include a native Requirement element; Requirements are defined in profiles like SysML.
C. Creating a new MOF metamodel is unnecessary, overly complex, and destroys interoperability compared to using a lightweight profile.
D. Tagged values cannot be applied to a "UML Requirement" because no such element exists in standard un-extended UML.

References

- Object Management Group (OMG). (2017). OMG Unified Modeling Language (OMG UML), Version 2.5.1, Clause 12.3 (Profiles). https://www.omg.org/spec/UML/2.5.1/PDF

- Object Management Group (OMG). (2019). OMG Systems Modeling Language (OMG SysML), Version 1.6, Clause 16 (Requirements). https://www.omg.org/spec/SysML/1.6/PDF

Scroll to Top