Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free OMG Certified UML Professional 2 (OCUP 2) - Foundation Level OMG-OCUP2-FOUND100 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 9 Total 90 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Activity Diagram

Skill tested: Models guarded decisions and alternative workflow paths in an activity diagram.

A claims team is documenting an intake workflow. Every claim must first be registered, then assessed for completeness. Complete claims proceed to risk review; incomplete claims are returned to the submitter for correction and are assessed again when resubmitted. The team wants a control-flow model that makes the repeat path explicit and prevents a claim from proceeding to risk review before the completeness assessment succeeds. Which activity-diagram structure best represents this behavior?

Correct Answer: A. Use a decision after completeness assessment with guards [complete] and [incomplete]; send the incomplete path to correction and back to the assessment, and the complete path to risk review.
Explanation:

A decision node selects one outgoing control flow according to a guard, so the assessment result can route a claim either to correction or to risk review. Returning the correction flow to the assessment models the required re-evaluation loop. A places the decision before the result is known and incorrectly ends the incomplete path. C uses concurrency where the paths are alternatives, not simultaneous work. D does not encode the correction loop or enforce the completeness condition in the control flow.

Question 2

New Multiple answers

Topic: Activity Diagram

Skill tested: Uses fork and join nodes to represent concurrent activity flows and synchronization.

A manufacturing process begins only after a purchase order is approved. Once approved, the system must reserve inventory and arrange transport independently; both tasks may proceed at the same time. Assembly may start only after both tasks have completed. The model should show the synchronization requirement explicitly, and the team does not want to imply that either task can be skipped. Which two activity-diagram elements best express the required behavior? Select TWO.

Correct Answer: A. A fork node after approval that creates separate flows for inventory reservation and transport arrangement.; E. A join node that synchronizes the inventory-reservation and transport-arrangement flows before assembly.
Explanation:

The fork represents the point where one incoming flow becomes concurrent flows, allowing inventory reservation and transport arrangement to proceed independently. The join synchronizes those flows so assembly cannot begin until both have completed. A decision would model an alternative choice, not mandatory parallel work. A merge accepts alternative incoming flows without waiting for all of them, so it would permit assembly after only one task. Final nodes would end the relevant activity rather than establish the required prerequisite for assembly.

Question 3

New Single answer

Topic: Activity Diagram

Skill tested: Distinguishes object flows and control flows when modeling data-bearing activities.

A laboratory models sample processing. A technician prepares a sample, and the resulting Sample object is then analyzed by an analyzer activity. The team wants the diagram to show both that preparation must finish before analysis begins and that the prepared sample is passed to the analyzer. The workflow is sequential, not concurrent, and the Sample is represented as a typed object node. Which modeling choice most accurately communicates these requirements?

Correct Answer: A. Connect preparation to the Sample object node and the object node to analysis with object flows, and use a control flow as needed to express the required ordering.
Explanation:

Object flows communicate the movement of data or objects - in this case, the prepared Sample - between actions. Control flow communicates sequencing or permission to proceed. Modeling the object transfer therefore does not eliminate the need to represent the required control ordering when that ordering must be explicit. A loses the typed object transfer. B incorrectly treats an object flow alone as the complete expression of control sequencing. D introduces concurrency, contrary to the scenario.

Question 4

New Single answer

Topic: Sequence Diagram

Skill tested: Interprets synchronous messages, returns, and activation ordering in a sequence diagram.

A developer is reviewing a sequence diagram for a service that validates a payment. A Checkout lifeline sends a validation request to a PaymentGateway lifeline, then displays confirmation only after the gateway has returned a result. The diagram currently shows the confirmation message being sent before the gateway's reply, although the implementation is synchronous and cannot display confirmation without the result. What is the most appropriate correction?

Correct Answer: C. Show the gateway's validation response before the confirmation message, with the request represented as a synchronous call.
Explanation:

A synchronous call models a caller waiting for the invoked operation to complete, so the validation result must be received before Checkout sends a result-dependent confirmation. The diagram should show the call and its return in an order consistent with that interaction. An asynchronous message would not fix the stated dependency and would misrepresent the synchronous implementation. The proposed `alt` fragment does not establish the needed response ordering, and lifeline placement does not change temporal order.

Question 5

New Multiple answers

Topic: Sequence Diagram

Skill tested: Models conditional and repeated interactions with combined fragments and guards.

An online booking interaction has two behavioral rules. First, the booking service attempts authorization; if authorization succeeds, it creates a reservation, while failure produces a decline response. Second, when authorization succeeds, the service may query availability repeatedly until a room is found or a configured retry limit is reached. The analyst wants to show both the mutually exclusive outcomes and the repeated query behavior without duplicating the entire interaction. Which two sequence-diagram constructs are the best fit? Select TWO.

Correct Answer: A. An `alt` combined fragment with guarded operands for authorization success and failure.; E. A `loop` combined fragment with a guard expressing the retry condition or limit.
Explanation:

An `alt` fragment represents mutually exclusive interaction paths, so guarded operands can distinguish authorization success from failure. A `loop` fragment represents repeated interaction and can carry a guard describing the retry condition or limit. `par` would imply concurrent behavior rather than alternatives. `break` indicates an interruption of the enclosing interaction, not the general two-outcome structure described. `ref` references another interaction and does not itself express either branching or repetition.

Question 6

New Single answer

Topic: Sequence Diagram

Skill tested: Uses lifeline creation, destruction, and message ordering to model object lifecycles.

A monitoring application creates a short-lived Report object only after receiving a user request. It sends the report to an Exporter for conversion and then discards the Report object when export completes. The object does not exist before the request, and the team wants the sequence diagram to convey its limited lifetime and the order of these events. Which representation is most appropriate?

Correct Answer: C. Start the Report lifeline at its creation message, show its message to Exporter, and terminate its lifeline with a destruction occurrence after export completes.
Explanation:

A lifeline can begin at an object-creation occurrence rather than at the top of the diagram, showing that the Report comes into existence in response to the request. Its interaction with Exporter follows creation, and a destruction occurrence after export communicates the end of that object's lifetime. A places destruction before creation. C confuses a return message, which reports completion or a value, with object destruction. D omits relevant participant and lifecycle information.

Question 7

New Single answer

Topic: Why We Model

Skill tested: Selects an appropriate UML model abstraction for stakeholder communication and design decisions.

A product group is replacing an undocumented order-processing application. Business analysts need to validate the major responsibilities and relationships with domain experts before developers choose internal algorithms or database structures. The group also needs diagrams that can later guide implementation, but it wants early discussions to remain independent of technology choices. Which modeling approach best satisfies these needs?

Correct Answer: D. Create conceptual UML models of key domain concepts and system behavior, validate them with stakeholders, and refine detail as design decisions become available.
Explanation:

Models provide abstractions that help stakeholders reason about a system, communicate assumptions, and refine understanding before committing to implementation details. Starting with conceptual views supports domain validation while leaving technology-specific decisions open; those models can then be elaborated as design progresses. A prematurely embeds choices the stakeholders are not ready to validate. C discards modeling's communication and analysis value. D assumes one diagram can clearly serve all purposes, despite the need for different views and levels of detail.

Question 8

New Multiple answers

Topic: Why We Model

Skill tested: Evaluates model scope and abstraction for communication, analysis, and implementation support.

A distributed project has separate analyst, architecture, and development teams. They need to use UML models to reduce misunderstandings, examine design alternatives, and support later implementation. The organization cannot keep models synchronized automatically with source code, so it wants to avoid treating diagrams as a substitute for implementation or as a guarantee of correctness. Which two practices best align with these goals? Select TWO.

Correct Answer: D. Use models to explore and communicate design alternatives, then maintain appropriate correspondence with implementation artifacts.; E. Choose model views and detail levels for their intended stakeholders and decisions, making assumptions visible.
Explanation:

Models are useful when their scope and abstraction suit the decisions and audiences they support. Making assumptions visible and using views to explore alternatives improves communication and analysis. Models can also support implementation, but in this scenario they cannot be assumed to remain synchronized automatically; appropriate correspondence and maintenance are therefore important. B overstates model completeness and currency. D ignores differing stakeholder concerns. E assumes notation alone captures rationale, which it need not.

Question 9

New Single answer

Topic: Why We Model

Skill tested: Identifies how multiple UML views manage complexity without conflating system concerns.

A transit agency's stakeholders are struggling with a single large UML diagram that combines user goals, object structure, and message-level behavior. Each review becomes difficult because participants must mentally filter out details unrelated to their concern. The agency still needs the views to describe one coherent system and does not want to remove necessary information merely to make the diagram smaller. What is the most appropriate modeling improvement?

Correct Answer: A. Create separate, purpose-specific UML views for functional goals, static structure, and interactions, ensuring their elements remain consistent where they overlap.
Explanation:

Different UML diagram types emphasize different concerns: use cases show functional goals and actors, class diagrams show static structure, and sequence diagrams show interactions over time. Separating these views reduces cognitive load without requiring the agency to discard information. They should remain consistent where concepts overlap so they still describe one system. Color alone does not separate the underlying concerns. Text lists lose useful relationships, while unrelated models can produce contradictory definitions.

Question 10

New Single answer

Topic: State Machine Diagram

Skill tested: Models event-triggered transitions with guards and state-dependent behavior.

A support ticket moves from Open to Assigned when an assignment event occurs, but only if a qualified agent is available. If no agent is available, it remains Open. Once assigned, the ticket may be Resolved, but a resolution event is valid only after an assigned agent has recorded a resolution. The analyst wants to distinguish states from triggering events and encode the availability condition on the transition. Which model is most appropriate?

Correct Answer: B. Use states Open, Assigned, and Resolved, with an Open-to-Assigned transition triggered by assignment and guarded by agent availability, and an Assigned-to-Resolved transition triggered by resolution.
Explanation:

A state machine represents the states an object can occupy and transitions caused by events. The availability condition belongs in a guard on the Open-to-Assigned transition; when the guard is false, that transition is not taken and the ticket remains Open. Resolution is a separate event that moves an already assigned ticket to Resolved. B reverses the roles of states and events. C hides meaningful state changes, and D performs an action without making availability a condition on whether the transition is enabled.

Question 11

New Single answer

Topic: Object Diagram

Skill tested: Interprets object diagrams as snapshots of instances, values, and links.

During a design review, engineers need to demonstrate one concrete configuration of a library at a particular moment: a specific Library object, two specific Book objects with their current attribute values, and links showing which books are registered with that library. They are not trying to define all possible library structures or specify behavior over time. Which UML representation best communicates the requested evidence?

Correct Answer: A. An object diagram showing named instances, their attribute values, and links between the instances.
Explanation:

An object diagram presents a snapshot of instances and their links at a particular point, making it suitable for showing the concrete Library and Book objects and their current values. A class diagram describes types and possible relationships rather than this specific runtime configuration. A state machine focuses on state transitions, and a sequence diagram focuses on ordered interactions. Neither is as direct a representation of the requested static instance snapshot.

Question 12

New Single answer

Topic: Package Diagram

Skill tested: Uses package dependencies to represent modular organization and dependency direction.

A software team separates a system into Billing, Customer, and SharedTypes packages. Billing and Customer both use types defined in SharedTypes. SharedTypes must remain independent of the other packages so it can be reused by another application. The team wants a package diagram that communicates this organization and helps reviewers detect an undesirable reverse dependency. Which dependency structure should it show?

Correct Answer: A. Dependencies from Billing and Customer to SharedTypes, with no dependency from SharedTypes back to either client package.
Explanation:

A package dependency is directed from the client that uses a package toward the supplier whose contents it depends on. Billing and Customer therefore depend on SharedTypes, while SharedTypes remains independent and reusable. A reverses the required dependency direction. Generalization and composition are not the appropriate package-level relationships for expressing ordinary package usage, and neither captures the intended reuse constraint.

Question 13

New Single answer

Topic: Use Case Diagram

Skill tested: Models actor goals and distinguishes use case relationships from mandatory inclusion.

An insurance portal allows a Policyholder to submit a claim and check claim status. Every claim submission must include identity verification as part of the required behavior, while checking status does not require identity verification in the same workflow. The team wants a use case diagram focused on externally visible goals and mandatory shared behavior, not internal screen navigation. Which modeling choice best represents the requirement?

Correct Answer: C. Associate Policyholder with Submit Claim and Check Claim Status, and show Submit Claim including Verify Identity.
Explanation:

The Policyholder is an external actor pursuing the goals of submitting a claim and checking status. An `include` relationship is appropriate for required behavior that is always performed as part of a base use case, so Submit Claim includes Verify Identity. The requirement does not make verification a separate actor goal or make submission an optional extension. Checking status is independent. Screens are internal interface elements, not actors in the stated context.

Question 14

New Single answer

Topic: Class Diagram

Skill tested: Selects UML association multiplicities that enforce a required ownership relationship.

A university models students and seminar registrations. Each Registration refers to exactly one Student, and each Student may have zero or many Registrations. A Registration is retained as an independently identifiable record for auditing, so deleting a Student must not imply that the registration record ceases to exist. The analyst wants the class diagram to show these cardinalities without asserting lifecycle ownership. Which relationship is best?

Correct Answer: C. An association between Student and Registration, with multiplicity 1 at the Student end and 0..* at the Registration end.
Explanation:

A plain association expresses the structural relationship without asserting that one object controls the lifecycle of the other. Multiplicity 1 at the Student end means each Registration is linked to exactly one Student; 0..* at the Registration end means a Student may have none or many. Composition would imply strong whole-part lifecycle semantics that conflict with retaining registrations independently. Generalization and dependency do not express the required instance cardinalities.

Question 15

New Multiple answers

Topic: Class Diagram

Skill tested: Models association classes and qualified associations for relationship-specific data.

A consulting firm models Consultants and Projects. A consultant may work on many projects, and each project may involve many consultants. The number of hours and the role are specific to a particular consultant-project pairing, not intrinsic to either class. In addition, project records are identified within a client account by a project code, and the model should show how that code distinguishes a project for a given account. Which two modeling elements best capture these requirements? Select TWO.

Correct Answer: B. A qualifier on the ClientAccount-to-Project association using project code.; D. An association class attached to the Consultant-Project association to hold hours and role.
Explanation:

Hours and role describe the relationship between a particular Consultant and Project, so an association class is an appropriate place for those attributes. A qualifier on the ClientAccount-to-Project association can represent selecting a project by its project code within the context of an account. Putting the values on Consultant loses their project-specific meaning. Generalization does not model a many-to-many work relationship, and composition would assert lifecycle ownership not present in the scenario.