Exam Information
Free practice questions with explanations
OMG OMG-OCUP2-FOUND100 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 16
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Why We Model
A retail company is starting a multi-year replacement of its order-management system. Three teams (developers, business analysts, and a compliance group) must agree on how orders flow between warehouse, billing, and shipping, and the compliance group needs to verify that no shipment is released before payment is recorded. The project sponsor asks why the team should invest several weeks in UML models before any code is written. Which justification best reflects the benefit of modeling in this situation?
Correct Answer: DExplanationThe real value of UML here is communication and early validation: a shared model lets the compliance group check that shipping cannot occur before payment and lets developers and analysts agree on the same workflow before expensive construction starts. The idea that a model replaces testing is wrong because diagrams verify design intent, not runtime behaviour. Treating the model as a generator of schemas and scripts overstates what UML itself guarantees, since code generation depends on tooling and the model's detail. Claiming regulators accept only UML is an unsupported assertion; compliance evidence can take many forms.
-
2 Question 2 Single choice Activity Diagram
A loan-approval process at a bank has an automated credit check that runs in parallel with a manual document verification. Both must complete before a decision node routes the case to either approval or rejection. The analyst is drawing an activity diagram and wants the synchronisation to be modeled correctly so that the decision is never taken on partial results. Which modeling construct should be used to join the two parallel flows before the decision?
Correct Answer: BExplanationA join node waits for all incoming control flows to offer a token before passing control forward, which is exactly the requirement that the decision occur only after both checks finish. A fork node is the opposite construct and splits one flow into concurrent ones, so placing it after the actions would be meaningless. A merge node passes on any single incoming flow without waiting, so it would let the decision fire on partial results. Decision nodes route a flow based on a guard and would not synchronise two concurrent branches.
-
3 Question 3 Single choice Class Diagram
A hospital information system models staff and their assignments. A Nurse can be assigned to many Ward objects, and each Ward must always have at least one assigned Nurse at any time, but a Nurse may currently have no ward during training. The architect is drawing a class diagram association between Nurse and Ward and wants the multiplicities to reflect these rules exactly. Which pair of multiplicities should be placed at the Ward end and the Nurse end respectively?
Correct Answer: AExplanationIn UML a multiplicity is written at the end of the association it describes, so the value near Ward states how many Ward objects a given Nurse may relate to, and the value near Nurse states how many Nurse objects each Ward relates to. The requirement that each Ward has at least one Nurse gives the Nurse end a lower bound of 1 when read from Ward's side, while a Nurse may have zero wards gives the Ward end a lower bound of 0 when read from Nurse's side. Swapping the two values reverses the meaning, and using 1 at both ends would forbid untrained nurses without any assignment. Using 0 at both ends would allow wards with no nurses, violating the stated rule.
-
4 Question 4 Single choice Object Diagram
An engineer is investigating an intermittent fault in a fleet-management service. The customer reported that at 09:14 a vehicle record showed two active trips simultaneously. The engineer wants a UML diagram that captures the exact runtime links between instances at that moment so the fault can be reproduced, rather than a diagram of the general class structure. Which diagram should be produced, and what must it contain?
Correct Answer: BExplanationAn object diagram is a snapshot of instances and the links between them at one point in time, which is exactly what is needed to reproduce a state where one vehicle appears to have two active trips. A class diagram describes possible structure and multiplicities rather than the concrete instances present at 09:14. A sequence diagram captures message ordering over an interaction, not the state of links at a moment. A package diagram organises model elements into namespaces and does not show instance-level data at all.
-
5 Question 5 Single choice Package Diagram
A telecom company is restructuring its billing software into packages. The rating engine must be usable by both the billing package and a fraud-detection package, but the fraud-detection team must not depend on the internal invoice-formatting classes that belong to billing. The architect wants the package diagram to show the intended dependencies so the build team can enforce them. Which modeling choice best meets this constraint?
Correct Answer: DExplanationA separate package for the rating engine lets both billing and fraud-detection depend on a shared, stable element while the invoice-formatting classes remain hidden inside billing with restricted visibility. Merging everything into one package removes the very boundary the team wants to enforce. Importing the whole billing package would expose its internal classes to fraud-detection, breaking the constraint. A generalization arrow expresses inheritance between classifiers and is not a dependency mechanism for sharing a rating engine.
-
6 Question 6 Single choice Sequence Diagram
A payments service calls an external card gateway. If the gateway does not respond within two seconds, the service must send a void request and then return a timeout error to the client, and the void must never be sent before the timeout has actually elapsed. An analyst is documenting this interaction with a UML sequence diagram and wants the timing constraint and the conditional branch shown without ambiguity. Which combination of elements achieves this?
Correct Answer: AExplanationAn alt fragment models a conditional branch, with the timeout guard selecting the void and timeout-response path, and a time constraint between the authorisation send and the void enforces that the void cannot occur before the two-second interval. A critical fragment makes a region atomic and does not express a conditional timeout branch or a timing relation. A loop repeats behaviour and would not represent a single timeout decision. A par fragment runs branches concurrently, which directly violates the requirement that the void waits for the timeout.
-
7 Question 7 Single choice State Machine Diagram
A smart thermostat has states Idle, Heating, Cooling and Fault. It moves to Fault when a sensor reports an invalid reading, and it must leave Fault only after an engineer performs a manual reset, regardless of any later sensor reports. The design team is drawing a UML state machine and needs the exit from Fault to be modeled so that automatic sensor events cannot clear it. Which modeling decision best satisfies this?
Correct Answer: AExplanationModeling the only exit from Fault as a transition triggered by an engineerReset event means no automatic sensor event can move the machine out of that state, which precisely captures the manual-reset requirement. A transition triggered by sensor-valid would allow automatic recovery and contradicts the rule. A self-transition on sensor readings does not leave the state, but it still reacts to sensor events in a way the requirement does not sanction and does not provide the required exit. An entry action only performs behaviour on entering the state and does not restrict or define the exit.
-
8 Question 8 Single choice Use Case Diagram
A university is designing a course-registration system. Students register for courses, and the system must send a confirmation email as part of registration. Some students also need to check their timetable, but that is not part of registration. The business analyst is preparing a use case diagram for the registration team and must show the functional relationships correctly. Which relationship should be used between the Register for Course use case and the Send Confirmation Email use case?
Correct Answer: AExplanationBecause the confirmation email is always performed as a mandatory part of registration, an include relationship from Register for Course to Send Confirmation Email expresses that the base use case invokes the included behaviour every time. An extend relationship implies an optional or conditional addition, which the stem rules out for the email. A generalization between these use cases would imply specialisation, which is not the relationship here. Attaching only the actor to the email use case omits the required functional dependency between the two use cases.
-
9 Question 9 Multiple choice Activity Diagram
A procurement department approves purchase orders. Orders under 5,000 euros need one approver; orders at or above that threshold need a second approver before being sent to the supplier. The approval process must be modeled so that the supplier notification is reached only after all required approvals, and so that the diagram stays correct when the threshold changes. The analyst is drawing an activity diagram and must choose the constructs that achieve this. (Choose two.)
Correct Answer: A, EExplanationA decision node with guards on the order value lets the flow take the second approval only for high-value orders, and placing the guards on the threshold keeps the logic changeable without restructuring the diagram. A join node ensures the notification happens only after the required approval flows complete, rather than after just one. A merge node would let the notification proceed on the first route without waiting, violating the requirement. A fork would start notification concurrently with approval, and a final node after the first approval would terminate the process before the second approval.
-
10 Question 10 Multiple choice Class Diagram
A logistics platform models shipments and the carriers that transport them. Each Shipment must be carried by exactly one Carrier at a time, a Carrier may carry many Shipments, and a Shipment that has been delivered keeps a historical record of its previous carriers. The modeler wants the class diagram to express these rules precisely for the developers implementing the persistence layer. (Choose two.)
Correct Answer: B, EExplanationPlacing 1 at the Shipment end means each Shipment relates to exactly one Carrier, while 0..* at the Carrier end lets a carrier hold many shipments, which matches the rule. A separate association class gives a place to record assignment history on the link itself, which a plain association cannot hold cleanly. Reversing the multiplicities as in the first choice would wrongly say each carrier has one shipment. A generalization misrepresents the relationship as inheritance. A composition would impose deletion semantics that the requirements never state, and the stem does not mention cascading deletion.
-
11 Question 11 Order list Sequence Diagram
A customer-support portal lets an agent reissue a refund. Before the refund is sent to the payment provider, the system must check that the original transaction is still in a refundable state, and it must record the attempt in the audit log whether or not the provider accepts it. The modeler is documenting the message flow between the Agent, Portal, PaymentProvider and AuditLog lifelines for the refund scenario. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Agent submits the refund request through the Portal interface
- Portal queries the transaction status to confirm it is still refundable
- Portal sends the refund request to the PaymentProvider
- Portal writes a refund attempt entry to the AuditLog with the outcome
Correct Answer:- Portal queries the transaction status to confirm it is still refundable
- Portal sends the refund request to the PaymentProvider
- Portal writes a refund attempt entry to the AuditLog with the outcome
- Agent submits the refund request through the Portal interface
ExplanationThe agent must first initiate the request, then the portal verifies the transaction is refundable before anything reaches the provider, so the status query precedes the refund request. The audit entry is written after the provider responds so that the outcome can be recorded, which is why it comes last. Sending the refund before checking refundability would break the stated precondition. Logging before the provider call would leave the outcome unknown at the time of writing.
-
12 Question 12 Order list State Machine Diagram
A medical infusion pump has states Standby, Infusing, Paused and Alarm. The pump must enter Alarm whenever occlusion is detected while infusing, and it must not return to Infusing directly from Alarm; a clinician must acknowledge the alarm and the pump must then pass through Paused before infusion can resume. A modeler is documenting the sequence of transitions for one occlusion event that is later cleared. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- The clinician acknowledges the alarm, moving the pump from Alarm to Paused
- The occlusion clears and the clinician resumes, moving the pump from Paused to Infusing
- The pump is in Infusing when the occlusion sensor reading is first received
- The pump moves from Infusing to Alarm on the occlusionDetected event
Correct Answer:- The pump moves from Infusing to Alarm on the occlusionDetected event
- The clinician acknowledges the alarm, moving the pump from Alarm to Paused
- The occlusion clears and the clinician resumes, moving the pump from Paused to Infusing
- The pump is in Infusing when the occlusion sensor reading is first received
ExplanationThe pump must be in Infusing before the occlusion event can cause a transition, so that state is entered first. The occlusionDetected event then moves it into Alarm, which is the only route out of infusion into the alarm state. Acknowledgement moves it to Paused rather than straight back to Infusing, as the requirement demands. Resumption from Paused back to Infusing completes the cycle, so the sequence must follow that exact order.
-
13 Question 13 Drag and drop Package Diagram
A bank is organising its mobile-banking components into UML packages. The security team needs the cryptography code isolated so that only the authentication package may depend on it, the user-interface package must depend only on the public API package, and the reporting package must be allowed to read the ledger data through the public API. The architect wants each requirement matched to the package-level construct that expresses it. Match each requirement to the construct that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Restrict cryptography code so only the authentication package may access itLet the user-interface package use banking features without touching internal logicAllow reporting to read ledger data through a controlled interfaceDependency from the authentication package to a private cryptography package with a restricted importA nesting of all packages inside a single root package with no dependenciesDependency from the user-interface package to the public API packageA generalization arrow from the reporting package to the ledger packageDependency from the reporting package to the public API packageCorrect Answer:- Restrict cryptography code so only the authentication package may access it → Dependency from the authentication package to a private cryptography package with a restricted import
- Let the user-interface package use banking features without touching internal logic → Dependency from the user-interface package to the public API package
- Allow reporting to read ledger data through a controlled interface → Dependency from the reporting package to the public API package
ExplanationExpressing the cryptography restriction requires a dependency relationship that limits access to a private package, so only the authentication package imports it. Routing the user-interface and reporting packages through the public API keeps internal logic hidden while still exposing needed data. Generalization describes inheritance and would not convey read-only access to ledger data. Nesting everything under one root package creates containment but no access restriction, so it fails the isolation requirements.
-
14 Question 14 Drag and drop Use Case Diagram
A government tax agency is scoping a self-service filing system. Taxpayers file returns, an accountant acts on behalf of clients, and a payment gateway processes the tax due. The business analyst is identifying which element of a use case diagram best represents each of these roles and behaviours so that the scope is clear to stakeholders. Match each element to its role in the diagram.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Taxpayer who files their own returnFile Tax Return as a goal the system must supportPayment gateway that receives the tax due from the systemActorUse caseLifelineClassCorrect Answer:- Taxpayer who files their own return → Actor
- File Tax Return as a goal the system must support → Use case
- Payment gateway that receives the tax due from the system → Actor
ExplanationA taxpayer interacts with the system from outside it, so modeling them as an actor is correct, and the same is true of the external payment gateway. File Tax Return describes a functional goal delivered to the actor, which is what a use case represents. Class and lifeline belong to structural and interaction diagrams respectively, so they do not apply to a use case diagram's role descriptions.
-
15 Question 15 Dropdown Object Diagram
A parcel-tracking system is being debugged after a support ticket reported that a parcel appeared to be held by two couriers at once. The engineer has captured the live instances and their links to reproduce the state. Complete the description of the snapshot by selecting the correct value for each blank. The diagram shows instances of Parcel and Courier linked at a specific moment, so the diagram type is an [1], and the relationship captured in each link is an [2] instance of an association.
Choose the correct value for each blank.
The diagram type used to reproduce the state is an diagram, and each link shown in it is an of an association between two classifiers.Correct Answer:The diagram type used to reproduce the state is an object diagram, and each link shown in it is an instance of an association between two classifiers.
ExplanationAn object diagram is a snapshot of instances at one point in time, which is why it captures the state that produced two couriers holding one parcel. Each link in such a diagram is an instance of an association, linking specific objects rather than classifiers. A class diagram describes general structure rather than runtime state. A sequence diagram orders messages over time and does not show a point-in-time snapshot of links. Templates and stereotypes apply to different modeling concerns and do not describe link instances.
-
16 Question 16 Dropdown Why We Model
A fintech startup must demonstrate to an external auditor how its fraud-screening workflow works before a funding round. The team wants a model that the auditor can read without tooling and that can be checked against the regulatory control list. The modeling lead is choosing which benefit of UML to cite in the audit documentation. Complete the statement by selecting the correct value for each blank. A UML model provides a [1] representation of the design, which lets reviewers check it against requirements before the system is built, and this supports [2] of the design decisions made.
Choose the correct value for each blank.
A UML model provides a representation of the design, which lets reviewers check it against requirements before the system is built, and this supports of the design decisions made.Correct Answer:A UML model provides a shared visual representation of the design, which lets reviewers check it against requirements before the system is built, and this supports traceability of the design decisions made.
ExplanationA UML model gives reviewers a shared visual representation that they can read without running code, which is what the auditor needs. Traceability links model elements back to requirements and controls, supporting the audit trail the funding round depends on. Compiled executables and runtime-only views come from implementation rather than design models. Obfuscation, deletion and randomisation work against the transparency a model is meant to offer.
These are 16 of the 90 questions in the full OMG-OCUP2-FOUND100 pack.
Get All 90 QuestionsGet all 90 questions & answers
Full access options for OMG OMG-OCUP2-FOUND100
Self-study
PDF Version
- 90 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 90 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 90 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the OMG-OCUP2-FOUND100 Exam (OMG Certified UML Professional 2 (OCUP 2) - Foundation Level) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.