































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Mendix Academy / Siemens Certification – 2026/ This practice exam is designed to help you prepare for the Mendix Certified Developer Intermediate exam. It covers all key topics: domain modeling, microflows, security, integration (REST, SOAP), OQL, Java actions, performance, deployment, and best practices. Each question includes the correct answer and a detailed rationale. Section 1: Domain Model & Data Modeling
1. Which of the following statements about Mendix associations is false? - A) An association can be a one-to-one relationship. - B) An association can be a one-to-many relationship. - C) An association can be a many-to-many relationship. - D) An association cannot have an owner.
Rationale: In Mendix, every association has an owner. The owner is the entity that “holds” the reference. This is important for delete behavior and retrieval.
2. When you define an association with delete behavior “Delete” , what happens when the owning object is deleted? - A) The associated object is also deleted. - B) The association is removed but the associated object remains. - C) The delete is prevented. - D) The associated object becomes a ghost record.
Explanation: “Delete” cascade means the associated object(s) are deleted together with the owner. “Keep” means the association is removed but the object remains. “Prevent” blocks deletion of the owner if any associated objects exist.
3. In the domain model, you want to enforce that an attribute must be filled in before an object can be committed. What should you use? - A) Validation rule - B) Default value - C) Required attribute setting - D) Microflow validation
Explanation: Setting an attribute as “Required” in the domain model makes the Mendix runtime enforce that it cannot be empty before commit. It generates client-side and server-side validation.
4. Which of the following is not a valid data type for an entity attribute in Mendix? - A) AutoNumber - B) Binary - C) JSON - D) HashString
Explanation: Standard Mendix attribute types include AutoNumber, Binary, Boolean, Date and Time, Decimal, Enumeration, Integer, Long, String, and some others. “HashString” is not a built-in type. JSON can be stored as String, but it is not a specific type.
5. You have two entities Order and OrderLine. An order can have many lines, but each line belongs to exactly one order. What type of association should you create? - A) 1-1 with Order as owner - B) 1-* with Order as owner - C) *-1 with OrderLine as owner - D) - with both as owners
Explanation: One order to many order lines is a 1- association. The owner should be the side that “holds” the reference. Usually, Order owns the association (Order → OrderLine), so when an order is deleted, the lines are also deleted if delete behavior is set to “Delete”.*
Explanation: The “Binary” attribute type is used to store binary data (files) in the database. The “Document” entity is a system entity for file handling; it is not an attribute type but an entity that contains a Binary attribute and additional metadata.
10. What is the purpose of the Index on an entity attribute? - A) To enforce uniqueness - B) To speed up retrieval queries - C) To prevent deletion - D) To define a primary key
Explanation: Indexes are used to improve query performance. They do not enforce uniqueness unless combined with a unique constraint. Primary keys are automatically indexed. Section 2: Microflows & Logic
11. In a microflow, the Retrieve activity is used to: - A) Update an object. - B) Create a new object. - C) Fetch objects from the database. - D) Validate user input.
Explanation: Retrieve activities are used to get objects from the database based on certain criteria (by association, by XPath, by ID, etc.).
12. What is the difference between a Commit and a Rollback in a microflow? - A) Commit saves changes to the database; Rollback discards changes made in the current transaction. - B) Commit discards changes; Rollback saves changes.
Explanation: Commit finalizes changes to the database; Rollback cancels all changes made in the current transaction. Rollback is often used after a custom error or exception handling.
13. You want to execute a microflow asynchronously, meaning it will continue without waiting for completion. Which option do you choose? - A) Call microflow activity (synchronous) - B) Create a Java action and use a thread. - C) Use the “Execute Asynchronously” option on the microflow call. - D) Use a scheduled event.
Explanation: Mendix microflow call activities have a property “Call type” where you can select “Synchronous” or “Asynchronous”. Asynchronous calls fire and forget.
14. In a microflow, you need to handle a possible exception. Which construct should you use? - A) Try-Catch block - B) Exception handler in the microflow - C) Custom error handling with a boolean flag - D) Java action for error logging
Explanation: Mendix microflows support Try-Catch activity. You can wrap a sequence of activities in a try and handle errors in the catch segment.
15. What does the Aggregate List activity do? - A) Combines multiple lists into one. - B) Performs aggregation (sum, count, average, min, max) on a list of objects. - C) Filters a list based on conditions. - D) Sorts a list.
Explanation: Validation microflows are used in pages or as part of object commit to validate data and display validation messages. They return a boolean and optionally an error message.
19. You want to ensure that a certain microflow is executed when a user logs in. Which feature should you use? - A) After startup microflow - B) On login microflow - C) Scheduled event - D) Java action in the login process
Explanation: Mendix allows you to configure an “On login” microflow in the project settings. It runs after successful authentication.
20. What is the purpose of the Change activity? - A) To modify attributes of an object. - B) To change the association between objects. - C) To update the database. - D) All of the above.
Explanation: The Change activity can modify attributes and associations of an object. It only changes the object in memory; you need to commit to save changes to the database. Section 3: Security
21. Which of the following is not a module security level in Mendix? - A) Administrator - B) User - C) Anonymous - D) Data
Explanation: Module security defines roles (Administrator, User, Anonymous, etc.) and entity access. “Data” is not a security level; it is a setting in entity access.
22. In Mendix, an administrator role is: - A) Always the same as the default user role. - B) Automatically granted full access to all modules and entities. - C) Not configurable. - D) Only used for REST services.
Explanation: The Administrator role is a special role that bypasses all security checks (entity access, microflow access). It is intended for full access. You can also create custom roles with specific permissions.
23. What is the correct way to restrict access to a microflow so that only users with the “Manager” role can execute it? - A) Set the security level of the microflow to “Manager”. - B) In microflow properties, under “Allowed roles”, select “Manager”. - C) Use a check in the microflow to verify the user’s role. - D) Configure module security to allow only “Manager” role for that microflow.
Explanation: In the microflow properties, there is a section “Allowed roles”. You can select which user roles can execute the microflow. This is the primary mechanism for microflow security.
24. You want to allow a user to view certain entities but not modify them. Which of the following is the best approach? - A) Give the user “read” access on the entity in the module security. - B) Grant the user only “create” access. - C) Disable all microflows that modify the entity. - D) Use a Java action to restrict updates.
Explanation: In module security, for each role, you can define entity access rights: Create, Read, Write, Delete. Setting only “Read” allows viewing but not modifying.
25. What does entity access in Mendix control?
Explanation: The button’s visibility can be conditioned on the user’s role. Additionally, if the user lacks create rights on the entity, the button will be automatically disabled by the platform.
29. In Mendix, user roles are defined at which level? - A) Project level - B) Module level - C) App level - D) Navigation level
Explanation: User roles are defined per module, but they can be mapped to an overall app role in the project security. Each module can have its own roles, and you map them to project roles.
30. What is the purpose of the administrator account in a deployed Mendix app? - A) To perform maintenance tasks without logging in. - B) To have full access to all data and functionality. - C) To reset passwords. - D) To manage cloud deployment.
Explanation: The built-in administrator account (when enabled) has full access to all modules, bypassing security. It is used for initial setup, configuration, and troubleshooting. Section 4: Integration (REST & SOAP)
31. You need to expose a Mendix microflow as a REST service. What is the correct approach? - A) Publish the microflow as a REST service using the “Published REST Service” wizard. - B) Create a Java action that handles HTTP requests. - C) Use a web service domain model entity. - D) Configure the microflow to be called via a servlet.
Explanation: Mendix provides a “Published REST Service” feature where you can select a microflow and expose it as a REST endpoint with defined request/response mappings.
32. When consuming an external REST API, you need to send a JSON payload. Which activity in a microflow is used to call the external service? - A) Call REST Service - B) Call Web Service - C) HTTP Request - D) Import Mapping
Explanation: The “Call REST Service” activity is used to call external REST APIs. It allows you to configure the URL, HTTP method, headers, and body. You can map the response to a Mendix object using an import mapping.
33. What is the purpose of an import mapping in Mendix? - A) To transform XML or JSON data into Mendix objects. - B) To export Mendix objects to XML or JSON. - C) To map database tables to entities. - D) To map user roles to external authentication.
Explanation: Import mappings are used to convert incoming XML or JSON data (from web services or REST calls) into Mendix objects. Export mappings do the reverse.
34. Which of the following is true about export mappings? - A) They can convert Mendix objects to XML or JSON. - B) They are used to import data from external systems. - C) They are only used for SOAP services. - D) They require Java actions.
Explanation: Export mappings generate XML or JSON from Mendix objects. They can be used in both REST and SOAP services to produce response payloads.
Explanation: Synchronization refers to the fact that the published REST service will wait for the microflow to finish before returning the response. Asynchronous execution is also possible.
39. You want to handle a large file upload via REST. What should you consider? - A) Use the binary attribute type and stream the file. - B) Use a file document entity and stream the file. - C) Both A and B are possible; Mendix supports streaming for large files. - D) Large file upload is not supported.
Explanation: Mendix supports streaming of binary data. You can use a Binary attribute or a System.FileDocument entity. For REST, you can accept a multipart/form-data or base64 encoded payload and map it to a file document.
40. What is the purpose of API keys in Mendix? - A) To authenticate external services calling your app. - B) To encrypt data. - C) To authorize user actions. - D) To secure database connections.
Explanation: API keys can be configured in the security settings and used to authenticate calls to published REST and SOAP services. Section 5: OQL & Data Manipulation
41. Which language is used for complex queries directly on the Mendix database? - A) XPath - B) OQL (Object Query Language) - C) SQL
Explanation: OQL (Object Query Language) is a SQL-like language used to query Mendix entities directly, allowing joins, aggregations, and other advanced operations.
42. An OQL query returns: - A) A list of Mendix objects. - B) A data set that can be used in a microflow. - C) A list of database rows as objects. - D) All of the above.
Explanation: OQL queries produce a list of objects (or data rows) that can be used in microflows, especially in activities like “Execute OQL Query”. The result is a dataset that can be processed.
43. What is the correct syntax to retrieve all objects from entity Customer using OQL? - A) SELECT * FROM Customer - B) SELECT Customer FROM Customer - C) FROM Customer SELECT * - D) SELECT Customer
Explanation: OQL syntax is similar to SQL: SELECT * FROM EntityName.
44. When using OQL, how do you join two entities? - A) Use the JOIN keyword with the association name. - B) Use a sub-query. - C) Use the IN keyword. - D) Use the WHERE clause with foreign key.
Explanation: OQL supports JOIN using the association path. Example: SELECT * FROM Order o JOIN o/Customer c WHERE c/Name = 'John'.
Explanation: OQL does not support calling stored procedures directly. You can use a Java action to execute native SQL and call stored procedures.
49. What is the difference between XPath and OQL? - A) XPath retrieves objects, OQL returns data sets. - B) XPath can only be used in microflows; OQL only in Java. - C) XPath is for single objects; OQL for lists. - D) XPath is faster than OQL.
Explanation: XPath retrieves Mendix objects that you can directly use. OQL returns a data set (list of rows) that can be processed similarly to a SQL result. OQL is more powerful for reporting but cannot directly return objects without mapping.
50. You want to restrict the number of objects retrieved in an OQL query. What clause do you use? - A) LIMIT - B) TOP - C) OFFSET - D) ROWCOUNT
Explanation: OQL supports the LIMIT clause (e.g., LIMIT 10) to limit the number of rows returned. It also supports OFFSET for pagination. Section 6: Java Actions & Custom Logic
51. When is a Java action the appropriate choice? - A) When you need to perform a simple calculation. - B) When you need to access a third-party Java library. - C) When you need to call a microflow. - D) When you need to store data in the database.
Explanation: Java actions are used when functionality is not available in microflows, such as complex algorithms, integration with external Java libraries, or direct database access using JDBC.
52. In a Java action, how do you retrieve the current user? - A) getContext().getSession().getCurrentUser() - B) Core.getUser() - C) com.mendix.core.Core.getUser() - D) user.getCurrent()
Explanation: In a Java action, the IContext object gives access to the session. You can call getSession().getCurrentUser() to get the currently logged-in user.
53. What is the recommended way to handle exceptions in a Java action? - A) Throw a custom exception that extends CoreException. - B) Log the error and return null. - C) Use try-catch and rethrow as a microflow exception. - D) All of the above are acceptable.
Explanation: The best practice is to throw a custom exception (e.g., UserException ) that will be caught by the microflow and can be shown to the user. Logging is also good.
54. In a Java action, how do you commit an object to the database? - A) core.commit(context, object) - B) context.commit(object) - C) object.commit() - D) Core.commit(context, object)
Explanation: The IContext interface provides commit methods. You call context.commit(object) to commit a Mendix object.
Explanation: Java actions are stored in the javasource folder of the project. The source code is compiled during deployment.
59. You need to call a REST API from a Java action. Which of the following is the best approach? - A) Use Apache HttpClient. - B) Use Java’s built-in HttpURLConnection. - C) Use Mendix’s Core.http(). - D) Call a microflow that calls the REST service.
Explanation: For consistency and reusability, it is better to use the built-in microflow “Call REST Service” and then call that microflow from the Java action. If you must do it in Java, you can use any HTTP client, but that adds complexity.
60. What is the main benefit of using Java actions over microflows? - A) Performance for heavy computation. - B) Ease of development. - C) Visual debugging. - D) No need to commit objects.
Explanation: Java actions can perform complex calculations faster than microflows. They also allow integration with external libraries and direct database access. Section 7: Performance & Scalability
61. Which of the following is a common cause of performance problems in Mendix applications? - A) Using too many microflows. - B) Retrieving large lists without pagination. - C) Using security constraints. - D) Using Java actions.
Explanation: Retrieving large amounts of data at once can cause memory issues and slow response times. Always use pagination (e.g., XPath with first() or limit) when dealing with large datasets.
62. What is the purpose of caching in Mendix? - A) To store frequently accessed data in memory for faster retrieval. - B) To reduce database load. - C) To improve user experience. - D) All of the above.
Explanation: Mendix provides caching options, such as the Caching module and object caching, to improve performance by reducing database round trips.
63. When using XPath , what can you do to improve query performance? - A) Use indexes on attributes used in constraints. - B) Use complex joins. - C) Use many constraints. - D) Avoid using indexes.
Explanation: Adding indexes to attributes used in XPath constraints speeds up query execution. Indexes should be used judiciously because they also increase write time.
64. You have a page that shows a list of 10,000 orders. Which approach is best for performance? - A) Retrieve all orders in a microflow and pass to a data grid. - B) Use a data grid with built-in pagination. - C) Use a list view and set maximum number of rows. - D) Use a snippet with a templated list.
Explanation: Data grids support built-in pagination, which only loads a subset of records at a time. This is the most efficient for large datasets.