OMG Certified UML Professional: Intermediate (OCUP) Exam Prep
Free practice questions

Free OCUP Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

These 10 free OCUP questions are organized by exam domain, so you can see how each part of the OMG Certified UML Professional: Intermediate (OCUP) blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Activities & Actions 20% of exam

Question 1

During order fulfillment, a fork starts ReserveStock and AuthorizePayment concurrently. Each action produces one control token when it completes. Their outgoing control flows enter a merge node, whose outgoing flow leads to DispatchOrder. DispatchOrder can therefore start after only one check finishes. Both checks must finish before dispatch. Which local change fixes the synchronization defect?

Show answer & explanation

Correct answer: C - Replace the merge with a join that requires a token from each check.

Question 2

A robotic-cell activity executes MoveArm and FeedPart concurrently inside an interruptible activity region. AuditAlarm remains active outside the region. An enabled AcceptEventAction inside the region accepts EmergencyStop. The model must cancel all work in the region, keep AuditAlarm running, and start EngageBrake outside the region but in the same activity. How should the accepted-event token leave the region?

Show answer & explanation

Correct answer: C - Traverse an interrupting edge from the AcceptEventAction directly to EngageBrake.

Domain 2: Basic Structure 16% of exam

Question 3

An interaction constrains server processing time to at most 40 ms, measured from the server's receipt of a request to its transmission of the reply. A trace uses one synchronized clock: the client sends at 100 ms, the server receives at 112 ms, the server replies at 145 ms, and the client receives at 173 ms. A reviewer reports 73 ms and rejects the trace. What should the review record instead?

Show answer & explanation

Correct answer: B - 33 ms; the constrained processing interval satisfies the requirement.

Question 4

An itinerary holds zero to eight Stop references in visit order. Revisiting the same Stop object is permitted, so [A, B, A, C] is a legitimate route. The current property has multiplicity 0..8, isOrdered=true, and isUnique=true. Which correction expresses the requirement while preserving the identities and order of the referenced Stops?

Show answer & explanation

Correct answer: D - Set isUnique=false and retain the multiplicity and ordering setting.

Domain 3: Interactions 14% of exam

Question 5

An alt combined fragment offers expedited delivery under [priorityCustomer] and standard delivery under [orderTotal < 200]. For a priority customer's order totaling 120, both guards are true. No additional selection rule is specified. How does UML interpret the alternatives in this execution?

Show answer & explanation

Correct answer: A - One eligible operand is chosen, with no specified priority between them.

Domain 4: StateMachines & Use Cases 13% of exam

Question 6

The Streaming state has entry behavior openConnection(), doActivity transferChunks(), and exit behavior closeConnection(). A valid heartbeat must refresh lastSeen without interrupting the transfer or reopening the connection. The model currently uses an external self-transition labeled heartbeat / refreshLastSeen(). What should replace this transition?

Show answer & explanation

Correct answer: A - An internal transition triggered by heartbeat, with effect refreshLastSeen().

Domain 5: Components 12% of exam

Question 7

A replacement BillingEngine fulfills the installed component's IBilling contract but uses different internal classes. Both components require IAudit; the replacement additionally requires ICurrencyRates. The deployment provides IAudit but has no provider of ICurrencyRates. Which review finding follows from these declarations?

Show answer & explanation

Correct answer: D - The replacement cannot satisfy its declared dependencies until an ICurrencyRates provider is connected.

Domain 6: Common Behavior 10% of exam

Question 8

A controller remains in Monitoring while its continuous doActivity runs. Its temperature value changes from 72 to 86. An outgoing transition is labeled sample() [temperature > 80] / activateCooling(), but no sample() call occurs. Cooling is required when the condition becomes true, without waiting for a call or for the doActivity to finish. What is the appropriate event-model correction?

Show answer & explanation

Correct answer: B - Use a ChangeEvent whose expression is temperature > 80 as the trigger.

Domain 7: Structured Classifiers 9% of exam

Question 9

Gateway contains the parts router:Router and audit:AuditService. Gateway's boundary port (isBehavior=false) provides IRoute and forwards incoming requests to router's port, which also provides IRoute. A second connector links router's required IAudit interface to audit's compatible provided IAudit interface. Classify the boundary-to-router connector and the router-to-audit connector, in that order.

Show answer & explanation

Correct answer: C - Delegation; assembly.

Domain 8: Classification 6% of exam

Question 10

Resource has two independent generalization sets. The set {Physical, Virtual} is {complete, disjoint}; the set {Metered, Shared} is {incomplete, overlapping}. All four named classifiers specialize Resource, and no other constraints apply. Which interpretation correctly respects the scope of the two sets?

Show answer & explanation

Correct answer: A - A Physical resource may also be both Metered and Shared.

That's 10 of 1,030

The full bank has 1,020 more OCUP questions with explanations.

Continue in the free practice test →

View plans