












































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!













































Question 1. In a Mendix domain model, when should you use a Generalization relationship instead of a Reference association? A) When you need to store historical versions of an entity. B) When multiple entities share a common set of attributes and you want inheritance. C) When you want to enforce a one-to-many relationship with cascade delete. D) When you need to expose the relationship via a REST API. Answer: B Explanation: Generalization creates a parent-child inheritance hierarchy, allowing child entities to inherit attributes and behaviours from the parent, which is ideal for shared attribute sets. Question 2. Which of the following XPath functions is most appropriate for filtering a list of objects where an attribute value starts with a specific prefix? A) contains() B) starts-with() C) ends-with() D) substring() Answer: B Explanation: The starts-with() function returns true when the attribute value begins with the given string, making it perfect for prefix filtering. Question 3. A non-persistable entity (NPE) is best used for which scenario? A) Storing data that must be saved to the database for reporting. B) Temporarily holding data received from an external web service before mapping to persistent entities. C) Enforcing security constraints on a persistent entity. D) Defining a primary key for a database table. Answer: B Explanation: NPEs exist only in memory and are ideal for transient data such as API responses that are later transformed into persistent entities.
Question 4. You need to ensure that a Customer’s email address is unique across all Customer records, but the uniqueness rule must also consider the Company entity (i.e., the same email can exist in different companies). Which validation approach should you use? A) Add a database unique constraint on the Email attribute. B) Create a microflow that performs a count() XPath query filtering by Email and Company before committing. C) Use a regular expression on the Email attribute. D) Set the Email attribute to be a system member. Answer: B Explanation: A microflow can query with both Email and Company as criteria, ensuring uniqueness within the scoped context without a global database constraint. Question 5. Which system member attribute records the user who last changed an object? A) createdBy B) changedBy C) owner D) modifiedDate Answer: B Explanation: The changedBy attribute automatically stores the username of the user who performed the most recent commit on the object. Question 6. In a microflow, which technique most effectively reduces the “n+1” query problem when loading a list of Orders and their related OrderLines? A) Use a Retrieve action inside a Loop for each Order. B) Retrieve OrderLines with an XPath that includes the Order reference and use a List operation to group them. C) Add a Database Index on the OrderLine entity. D) Call a Java action to fetch data via JDBC.
Answer: C Explanation: The Intersection operation returns only the elements that exist in both input lists. Question 10. How does an Object Type Decision differ from a regular Decision activity? A) It evaluates numeric expressions. B) It determines the concrete entity type of an object at runtime. C) It can only be used inside a loop. D) It automatically commits the object. Answer: B Explanation: An Object Type Decision checks the entity type of a passed object, enabling branching based on inheritance hierarchies. Question 11. Which security setting allows an anonymous user to view a page but prevents them from creating or updating any data? A) Grant read access on the module, deny write access on all entities. B) Assign the anonymous role to the “Admin” security group. C) Enable “Public access” on the page and set “Allow edit” to false. D) Create a custom microflow that checks the user’s session. Answer: A Explanation: Granting read-only permissions to the anonymous role ensures visibility without modification rights. Question 12. When sharing an entity across multiple modules, which approach maintains proper security isolation? A) Duplicate the entity in each module. B) Place the entity in a shared module and use module-level security to restrict access. C) Use a Java action to copy data between modules. D) Set the entity’s “Public” attribute to true.
Answer: B Explanation: Centralizing the entity in a shared module allows consistent security rules while each consuming module can apply additional restrictions. Question 13. In a production environment, which security practice must be enforced that is optional in a prototype environment? A) Enabling HTTPS for all traffic. B) Allowing anonymous login. C) Using the “Developer” security role for all users. D) Disabling audit logging. Answer: A Explanation: Production environments must enforce transport security (HTTPS) to protect data in transit, whereas prototypes may use HTTP for convenience. Question 14. When consuming a REST API that requires OAuth 2. client-credentials flow, which Mendix component handles token acquisition? A) REST Call microflow activity. B) OData Connector. C) OAuth 2.0 authentication profile in the Connector settings. D) Java action that manually sets the Authorization header. Answer: C Explanation: The OAuth 2.0 authentication profile automates token retrieval and injection into the Authorization header for outgoing REST calls. Question 15. Which feature of Import Mapping allows you to map a JSON array of objects into a list of Mendix entities? A) Use a CSV mapping with a custom delimiter. B) Define a “Reference Set” attribute in the mapping. C) Set the mapping’s “Root element” to the array name. D) Enable “Batch import” in the mapping options.
Answer: B Explanation: Lazy loading fetches rows on demand as the user scrolls, dramatically lowering the initial payload. Question 19. Which database index type in Mendix provides the greatest performance boost for equality searches on a string attribute? A) Full-text index. B) Unique index. C) Composite index. D) Normal (non-unique) index. Answer: B Explanation: A unique index not only enforces uniqueness but also optimizes equality lookups, often faster than a regular index. Question 20. When two users attempt to edit the same Order record simultaneously, which Mendix feature prevents data loss? A) Optimistic concurrency control using the “changedDate” attribute. B) Automatic merge of changes. C) Pessimistic locking via the “Lock” microflow activity. D) No built-in protection; you must write custom Java code. Answer: A Explanation: Mendix uses optimistic concurrency; the changedDate attribute is checked on commit, and a conflict error is raised if the record was modified elsewhere. Question 21. Which attribute of a page controls its responsiveness across device types? A) Page size. B) Layout grid. C) Theme class. D) Layout type (Responsive).
Answer: D Explanation: Selecting a Responsive layout ensures the page adapts to different screen sizes using the Atlas UI framework. Question 22. In Atlas UI, which CSS class would you add to a button to make it appear as a primary action? A) .mx-button--secondary B) .mx-button--primary C) .mx-button--danger D) .mx-button--link Answer: B Explanation: The .mx-button--primary class styles the button with the primary color defined in the theme. Question 23. Which microflow activity should you use to bulk delete 10, records without exhausting the transaction memory? A) Delete action inside a Loop. B) Delete action with “Batch size” set to 200. C) Delete action with “Commit after each iteration” unchecked. D) Use a Java action that runs a raw SQL DELETE. Answer: B Explanation: Setting a batch size splits the delete operation into manageable chunks, preventing memory overload. Question 24. How can you enforce that a Project entity can only be created by users belonging to the “Project Manager” role? A) Add a microflow that checks the user’s role before committing. B) Set the entity’s security to “Public” and rely on UI checks. C) Use a database trigger. D) Set the attribute “owner” to the current user. Answer: A
Answer: B Explanation: The XPath sum() function performs the aggregation directly in the database, avoiding data transfer and extra processing. Question 28. What is the purpose of the “Object Variable” in a microflow’s “Create Object” activity? A) To store the result of a database query. B) To hold the newly created instance before it is committed. C) To define a reference set for a list operation. D) To pass a constant value to a Java action. Answer: B Explanation: The Object Variable captures the in-memory instance created by the activity, allowing further manipulation before committing. Question 29. In a multi-module Mendix project, which practice ensures that security settings are not unintentionally overridden? A) Duplicate all entities in each module. B) Centralize security configuration in a dedicated “Security” module and import it where needed. C) Use “Public” access for all entities and rely on UI checks. D) Disable module-level security entirely. Answer: B Explanation: Centralizing security rules reduces the risk of contradictory settings and makes maintenance easier. Question 30. Which Mendix feature allows you to expose a microflow as a SOAP web service? A) Create a REST endpoint and set the content type to XML. B) Use the “Expose as Web Service” option on the microflow. C) Add a Java action that publishes the WSDL. D) Deploy the microflow to an external Tomcat server.
Answer: B Explanation: The “Expose as Web Service” setting automatically generates the WSDL and SOAP handling for the microflow. Question 31. When should you use a “Reference Set” attribute instead of a “Reference” attribute? A) When the relationship cardinality is one-to-one. B) When you need to store multiple related objects (one-to-many or many-to-many). C) When the related objects are stored in an external database. D) When the attribute must be indexed. Answer: B Explanation: Reference Set attributes represent collections of related objects, supporting one-to-many and many-to-many relationships. Question 32. Which logging level in the Mendix Logger activity is most appropriate for tracing normal application flow without cluttering production logs? A) Error B) Warning C) Info D) Debug Answer: C Explanation: “Info” provides useful runtime information while remaining manageable in production environments. Question 33. How does the “Commit with Events” option affect a microflow’s execution? A) It disables all before-commit events. B) It triggers before-commit and after-commit events for each object that is committed. C) It forces a synchronous database transaction. D) It disables optimistic concurrency checks.
Answer: C Explanation: NoSQL databases usually require custom Java code to interact via the provider’s SDK, as Mendix’s built-in SQL connector targets relational databases. Question 37. Which security principle is enforced by setting “Read-only” on an entity’s attribute for a specific user role? A) Confidentiality B) Integrity C) Availability D) Non-repudiation Answer: A Explanation: Limiting read access ensures that only authorized roles can view sensitive data, protecting confidentiality. Question 38. What is the effect of enabling “Lazy loading” on a Data Grid’s “Load on demand” property? A) All rows are fetched immediately when the page loads. B) Only the first page of rows is fetched; additional rows load as the user scrolls. C) The grid disables pagination. D) The grid caches all rows in the client session. Answer: B Explanation: “Load on demand” fetches additional rows incrementally, reducing initial data transfer. Question 39. Which of the following is a recommended practice for handling large file uploads in Mendix? A) Store the entire file content in a String attribute. B) Use the “FileDocument” entity with the “Chunked upload” option enabled. C) Convert the file to Base64 and store it in a BLOB attribute. D) Upload the file directly to an external FTP server from the client.
Answer: B Explanation: The Chunked upload feature splits the file into manageable parts, preventing memory overload and improving reliability. Question 40. When creating a custom widget, which lifecycle method is called each time the widget’s data changes? A) render() B) update() C) repaint() D) refresh() Answer: B Explanation: The update() method is invoked whenever the widget receives new data or property changes, allowing it to re-render accordingly. Question 41. Which type of XPath constraint should you use to restrict access to a Customer entity so that a user can only see records where the “owner” attribute matches their username? A) [contains($currentUser, $owner)] B) [owner = '[%CurrentUser%]'] C) [owner = $currentUser] D) [owner = '[%CurrentUser%]'] (using the system variable) Answer: D Explanation: The [%CurrentUser%] placeholder resolves to the logged-in user’s name, enabling per-owner filtering. Question 42. In a microflow that processes a large list, which activity helps avoid “Transaction size too large” errors? A) Use a “Commit” after each loop iteration. B) Place the entire logic inside a single “Start Transaction” activity. C) Disable “Rollback on error”. D) Increase the database timeout.
D) String Answer: B Explanation: The Decimal type supports arbitrary precision, making it suitable for financial amounts where rounding errors must be avoided. Question 46. How can you prevent a microflow from being executed by an unauthorized user in a production environment? A) Hide the button that triggers the microflow. B) Add a “Security” constraint on the microflow itself, specifying allowed user roles. C) Use a Try-Catch activity inside the microflow. D) Set the microflow’s “Rollback on error” flag to “Yes”. Answer: B Explanation: Microflow security settings restrict execution to specified roles, providing server-side protection regardless of UI visibility. Question 47. Which of the following statements about “Parallel split” in a workflow is true? A) It creates a loop that repeats until a condition is met. B) It ensures that only one outgoing path is taken. C) It initiates multiple concurrent branches that must all be completed before merging. D) It automatically escalates tasks after a timeout. Answer: C Explanation: A Parallel split forks the process into concurrent paths; a subsequent Parallel join waits for all branches to finish. Question 48. In Mendix, which method is used to retrieve the current user's language preference? A) $currentUser/getLanguage() B) $session/getLanguage() C) $currentUser/getLocale()
D) $currentUser/getUserLanguage() Answer: C Explanation: The getLocale() method returns the locale (language and region) associated with the logged-in user. Question 49. Which of the following is the most efficient way to enforce a “soft delete” pattern on an entity? A) Add a Boolean attribute “IsDeleted” and filter it out in every Retrieve. B) Use the built-in “Delete” action and rely on database triggers. C) Create a separate “Archive” entity and move records there via a microflow. D) Enable “Soft Delete” in the entity’s properties (available in Mendix 9+). Answer: D Explanation: Mendix provides a native Soft Delete option that automatically flags records as deleted without physically removing them, simplifying implementation. Question 50. When configuring a REST service that returns paginated results, which HTTP header should you include to indicate the total number of available items? A) X-Total-Count B) Content-Range C) Pagination-Total D) Total-Items Answer: A Explanation: The X-Total-Count header is a common convention for communicating the total size of a paginated collection. Question 51. Which Mendix widget is best suited for displaying hierarchical data such as a tree of categories? A) Data Grid B) List view with a custom template C) Tree view widget (Pluggable)
D) Use a Java action that implements the GraphQL schema. Answer: C Explanation: Mendix provides native GraphQL service publishing, allowing a microflow to be accessed via GraphQL queries. Question 55. Which of the following statements about “Entity Access Rules” is correct? A) They are evaluated only on the client side. B) They can be defined per attribute, per association, and per entity. C) They automatically grant full access to administrators. D) They cannot be combined with XPath constraints. Answer: B Explanation: Access rules can be granular, targeting specific attributes, associations, or the whole entity, and they are enforced on the server. Question 56. What is the primary benefit of using a “Reference Set” with “Ordered” enabled? A) It creates a many-to-many relationship. B) It allows the list of related objects to be displayed in a specific order without an additional attribute. C) It improves database performance for lookups. D) It enforces uniqueness of the referenced objects. Answer: B Explanation: Ordered Reference Sets store the sequence of related objects, enabling deterministic ordering in UI components. Question 57. Which of the following actions should you take to improve the performance of a microflow that processes 50,000 records? A) Increase the Java heap size on the server. B) Use a “Retrieve” with “Retrieve mode = Exact” for each record. C) Process the records in batches using “Iterate” with a batch size.
D) Convert the microflow to a Java action. Answer: C Explanation: Batching reduces memory consumption and transaction size, making large-scale processing more efficient. Question 58. In Mendix, what is the purpose of the “Object Variable” named “$currentUser” that is automatically available in microflows? A) It stores the result of the last database query. B) It references the user object of the currently logged-in user. C) It holds the system’s configuration settings. D) It contains a list of all active sessions. Answer: B Explanation: $currentUser provides access to the User entity of the session’s owner, enabling personalized logic. Question 59. Which of the following best describes the effect of enabling “Security > Production Mode” in the project settings? A) It disables the ability to edit the domain model at runtime. B) It enforces stricter validation of user roles, disables anonymous access by default, and requires HTTPS. C) It automatically generates unit tests for all microflows. D) It turns off all logging. Answer: B Explanation: Production Mode tightens security defaults, ensuring a hardened deployment configuration. Question 60. When designing a page that must work on both desktop and mobile devices, which layout strategy should you adopt? A) Use a fixed-width grid of 1200 px. B) Build separate pages for each device type. C) Use the responsive layout with breakpoints defined in the Atlas UI theme.