OMG Certified UML Professional 2 (OCUP 2) - Advanced Level OMG-OCUP2-ADV300 Exam Practice Test

Page: 1 / 14
Total 90 questions
Question 1

Choose the correct answer:

Which statement is correct about redefinition of simple States?



Answer : B

In UML, a simple State can indeed be redefined, but the specifics of how it is redefined matter:

A is incorrect as redefinition of States, including simple States, is permitted.

B is correct. A simple State can be effectively removed or altered through redefinition in a derived StateMachine, which could include changing its type or characteristics.

C suggests that a simple State can be turned into a composite State. While theoretically possible in the context of redefinition, this option might be considered a significant alteration that could be misleading without additional context.

D is incorrect; UML does support State Redefinition.


UML Specification, particularly the sections on Redefinition and StateMachines.

Detailed rules on state redefinition are outlined in the UML 2.5 Documentation, specifically under StateMachine specializations.

Question 2

Choose the correct answer:

What should a modeler do lo represent specific hardware environments In a deployment model?



Answer : A

To represent specific hardware environments in a deployment model, a modeler should create a UML profile that includes the necessary hardware stereotypes with applicable details. A profile allows the modeler to extend the standard UML metamodel to include domain-specific elements that can be applied to deployment models. These stereotypes can represent different types of hardware components and their attributes, which can then be used to model the physical aspects of the deployment environment. The creation and application of profiles are supported by the UML 2.x Superstructure Specification, which details how to tailor UML to particular domains or platforms using profiles.


Question 3

Choose the correct answer:

Consider the following modeling scenario:

Which statement is correct about the modeling scenario?



Answer : C

In UML, profiles are applied to specific model elements to adapt the UML metamodel to different domains or platforms. The provided diagram shows a UML package diagram within which the Versioning profile is applied to the 'Business Logic' package, and the DBProfile is applied to the 'Data' package. This is a correct use of profiles in UML as they allow the customization of parts of a model by applying additional constraints and stereotypes to specific packages or classes. There is no restriction in UML that a profile cannot be applied to multiple packages in the model simultaneously, and profiles do not necessarily need to be members of the namespace of the model they are applied to; they can be defined externally. Therefore, the scenario presented is a correct application of two different profiles to two distinct packages within the same model, conforming to the UML 2.x Superstructure Specification.


Question 4

Choose the correct answer:

Given the following fragment from a profile definition:

Which statement is correct regarding the application of the profile?



Answer : B

In UML, a stereotype is a mechanism that extends the vocabulary of the UML in order to create new model elements. The given profile fragment defines a stereotype architecture decision that extends the metaclass Class. This stereotype includes three properties: Complexity, Risk, and Status, each typed by specific enumerations: Rank and Status. When a stereotype is applied to a UML element, it does not create physical attributes on the element; instead, it enables the element to carry additional information as specified by the stereotype --- in this case, as Stereotype Properties. These properties are effectively tagged values that are associated with the stereotyped element. Hence, when a class is stereotyped as an architecture decision, it will have the ability to hold values for Complexity, Risk, and Status according to the types defined by the enumerations in the profile. This is consistent with the rules defined in the UML 2.x Superstructure Specification for profiles and stereotypes.


Question 5

Choose the correct answer:

A modeler wants to develop a customization for a standard UML tool that provides the ability to specify CORBA physical Components.

Which approach should the modeler use?



Answer : A

To provide the ability to specify CORBA physical components within a UML tool, the most appropriate approach is to create a UML profile that includes stereotypes, tagged values, and constraints that reflect the characteristics and requirements of CORBA components. Applying this profile to a UML model would extend the semantics of UML to support CORBA-specific concepts without modifying the UML metamodel itself. This approach allows the modeler to leverage the existing UML tooling while incorporating the additional semantics required for CORBA components. This practice is supported by the extensibility mechanisms provided by UML, as described in the UML 2.x Superstructure Specification, which outlines how to create and apply profiles.


Question 6

Choose the correct answer:

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?



Answer : B

UML allows the introduction of new concepts that are not part of the standard UML metamodel by creating a profile. To add capabilities for modeling requirements and tracing relationships in UML, a profile can be created where a Class is stereotyped to represent a requirement, and a Dependency is stereotyped to represent the trace relationship. This approach is both practical and conforms to the UML standard's mechanisms for extending the language. It is a common practice to create such profiles for requirements engineering within the UML framework. This conforms to the UML 2 Superstructure Specification, which provides guidelines on creating and applying profiles and stereotypes.


Question 7

Choose the correct answer: What does Protocol Conformance represent?



Answer : C

Protocol Conformance in UML is a relationship between protocol state machines that ensures consistency in behavior inheritance:

A . Incorrect as it describes a general-to-inherited relationship, which is not the focus of protocol conformance.

B . Incorrect, as it describes a relationship the wrong way around (general to nested).

C . Correct. Protocol Conformance ensures that a specific Protocol State Machine conforms to the rules and constraints specified by a redefined, more general Protocol State Machine.

D . Incorrect, because it generally describes conformance but does not specifically focus on the relationship between specific and general state machines in the context of protocols.


UML Specification: Protocol State Machines section.

Specifics of protocol conformance are detailed under state machine and classifier behaviors in the UML 2.5 Documentation.

Page:    1 / 14   
Total 90 questions