






























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!































This comprehensive 147-question exam bank is designed to prepare candidates for Mendix Advanced Developer Certification - Mendix Academy - Academic Year 2026/2027 - Comprehensive Certification Examination with 50 Verified Questions and Correct Answer Rationales. Every question is aligned with the latest official content outline and includes a detailed, evidence-based rationale, an explanation of why each remaining option is incorrect, and a supporting reference.
Mendix Advanced Developer Certification - Mendix Academy - Academic Year 2026/2027 - Comprehensive Certification Examination with 50 Verified Questions and Correct Answer Rationales, exam bank, practice questions, verified answers, detailed rationales, test prep, study guide, review questions, certification exam, latest update, Mendix Advanced Developer Certification - Mendix Academy - Academic Year 2026/2027 - Comprehensive Certification Examination with 50 Verified Questions and Correct Answer Rationales, exam bank, practice questions, verified answers, detailed rationales
A) Delete 'Order' and 'OrderLine' B) Delete 'Order' and 'OrderLine' with cascade C) Delete 'Order' and 'OrderLine' with cascade and prevent delete of 'Order' if 'OrderLine' exists D) Delete 'Order' and 'OrderLine' with cascade and prevent delete of 'OrderLine' if 'Order' exists
' C o r r e c t A n s w e r : B Rationale: The cascade option ensures that when the parent (Order) is deleted, all associated child (OrderLine) objects are also deleted. Option A would delete only the Order and leave orphaned OrderLines. Options C and D add unnecessary constraints that would prevent deletion or cause errors.
A) Replace the loop with a single commit activity outside the loop. B) Use a 'Commit' activity with the 'with events' option disabled. C) Add a 'Change object' activity before the commit. D) Use a 'Retrieve' activity with the 'Range' option to limit the number of objects.
' C o r r e c t A n s w e r : A Rationale: Committing each object individually causes multiple database round-trips. Moving the commit outside the loop and committing the entire list in one operation significantly reduces database load. Option B disables events but still commits per object. Options C and D do not address the round-trip issue.
A) Entity access: Manager has read/write, Staff has read only. B) Entity access: Manager has read/write, Staff has read/write but with a constraint. C) Microflow access: Manager can call the microflow, Staff cannot. D) Page access: Manager can view the page, Staff cannot.
' C o r r e c t A n s w e r : A Rationale: Entity access rules directly control CRUD operations on data. Setting Manager to read/write and Staff to read-only enforces the requirement. Option B would allow Staff to edit if constraints are not properly set. Options C and D control access to logic and UI, not data-level permissions.
A) Use a Java action to parse the JSON and store it in a non-persistent entity. B) Use the 'Call REST' activity with the 'Store response in a variable' option and then parse with a microflow. C) Use the 'Call REST' activity with the 'Store response in a file' option and then import the file. D) Use the 'Call REST' activity with the 'Store response in a string' option and then use a JSON structure.
' C o r r e c t A n s w e r : C Rationale: Storing the response in a file avoids loading the entire payload into memory, which is critical for large responses. Parsing from a file can be done incrementally. Options A, B, and D load the full response into memory, potentially causing out-of-memory errors.
A) Nanoflows can directly commit objects to the database. B) Nanoflows run on the server and can access all microflow activities. C) Nanoflows run on the client and can only access data already available in the client context. D) Nanoflows can call microflows but cannot be called from microflows.
' C o r r e c t A n s w e r : C Rationale: Nanoflows execute on the client side and are limited to data already retrieved to the client; they cannot directly commit to the database. Option A is false because commits require a microflow. Option B is false as nanoflows are client-side. Option D is false because microflows can call nanoflows in certain contexts.
A) Create an index on the entity's primary key. B) Create an index on attributes frequently used in XPath constraints. C) Create an index on all attributes to cover all queries. D) Avoid indexes as they slow down insert operations.
' C o r r e c t A n s w e r : B Rationale: Indexes should be created on attributes that are frequently used in search conditions (XPath) to speed up retrieval. Option A is unnecessary as primary keys are already indexed. Option C is excessive and can degrade write performance. Option D is incorrect because proper indexing improves read performance significantly.
A) It defines the user interface layout. B) It encapsulates business logic and can be executed on the server. C) It is used only for client-side validations.
Design-time binding (A) is false, parameters are never silently ignored (C), and XPath is not client-side textually substituted (D).
A) A published REST service with a custom microflow that builds a non-persistent export entity and entity access rules restricting the persistent entity. B) A published REST service mapped directly to the persistent entity with default entity access, relying on the client to filter fields. C) A published OData service with 'Apply entity access' disabled to maximize performance. D) A consumed REST service pointing back to the same app's REST endpoint to enforce field-level security.
' C o r r e c t A n s w e r : A Rationale: The secure pattern is a published REST service backed by a microflow that maps to a non-persistent export entity, so only authorized fields leave the app, while entity access rules continue to protect the persistent entity. Direct mapping (B) leaks fields, disabling entity access (C) removes the security boundary, and a consumed service (D) does not enforce outbound field-level security.
A) Scheduled events run on every cluster node simultaneously; task queues run on one node only. B) Scheduled events are executed by a single elected node per scheduled time; task queues distribute individual tasks across nodes with configurable concurrency and cluster-wide coordination. C) Both are executed exclusively on the first node in the cluster and cannot be distributed. D) Task queues require an external message broker; scheduled events are purely in-memory and lost on restart.
' C o r r e c t A n s w e r : B Rationale: Mendix scheduled events are coordinated so a single node executes each scheduled occurrence, whereas task queues distribute tasks across the cluster with configurable concurrency and cluster-wide coordination. (A) inverts the behavior, (C) is false for task queues, and (D) misstates both mechanisms.
A) Add a 'Commit' activity inside the loop to flush pending changes. B) Replace the loop with a single Retrieve over Customer using an XPath 'id = $Order_Customer' association path and then associate in a second loop. C) Retrieve the associated Customers in one Retrieve over the association from the Orders list, then iterate the Orders and look up the Customer in memory. D) Enable 'Optimize retrieve' on the Retrieve activity inside the loop.
' C o r r e c t A n s w e r : C Rationale: Retrieving all associated Customers in a single query and then resolving them in memory from the retrieved list avoids one query per Order. Committing inside the loop (A) worsens performance, retrieving by id per Order (B) still issues many queries, and there is no 'Optimize retrieve' toggle (D).
A) Rely on the default offline synchronization, which guarantees exactly-once delivery. B) Assign a client-generated idempotency key to each record and have the server-side synchronization microflow upsert by that key. C) Use a scheduled event on the device to post records directly to a REST endpoint without keys. D) Disable offline synchronization and require the user to retry manually until success.
' C o r r e c t A n s w e r : B Rationale: Offline sync is at-least-once, so exactly-once semantics require an idempotency key and server-side upsert keyed on it. (A) is false, (C) still risks duplicates without a key, and (D) pushes the problem to the user without guaranteeing exactly-once.
A) Committing inside the loop triggers a database round trip per iteration and may invalidate the in-memory list, whereas a single commit batches the changes. B) Mendix forbids committing inside a loop and will throw a runtime error. C) Change activities inside a loop are ignored unless committed immediately. D) Committing inside a loop bypasses entity access rules, causing security errors.
' C o r r e c t A n s w e r : A Rationale: Each in-loop commit incurs a database round trip and can invalidate the in-memory list, so batching changes and committing once is more efficient. (B) is false, (C) is false (changes persist until commit regardless of location), and (D) misstates how entity access is evaluated.
A) Add a validation rule on the attribute that checks the new value against a static list. B) Implement the transition logic in a microflow and restrict write access to the attribute via entity access so only that microflow's module role can change it. C) Use a before-commit event handler that throws an error if the transition is invalid. D) Document the allowed transitions in the project's style guide and rely on code review.
' C o r r e c t A n s w e r : B Rationale: Restricting write access to the attribute to a specific module role, combined with a microflow that validates transitions, enforces the state machine at the platform level. Validation rules (A) only check value membership, event handlers (C) are not a Mendix feature in this form, and documentation (D) is not enforcement.
A) Sessions are stored in each node's memory; sticky sessions are required and file storage is local to each node. B) Sessions are shared across nodes via a shared session store, and file storage is backed by shared object storage, so any node can serve any request. C) Sessions are shared, but file storage must be replicated manually between nodes. D) Sessions are node-local, but file storage is shared, so no sticky sessions are needed.
' C o r r e c t A n s w e r : B Rationale: Mendix Cloud shares session state across nodes and uses shared object storage for files, enabling any node to serve any request without sticky sessions. (A) and (D) misstate session locality, and (C) misstates file storage replication.
A) Add a 'Has role' check inside the Java action using the current session's user roles. B) Restrict the microflow's allowed roles in the microflow properties to the specific role. C) Use entity access rules on the entities the Java action manipulates. D) Configure the Java action's 'Allowed roles' property in the modeler.
' C o r r e c t A n s w e r : A
' C o r r e c t A n s w e r : B Rationale: Non-persistent objects persist only as long as they are referenced; if the target page expects a Cart parameter but none is passed, Mendix instantiates a new empty object. There is no default 10-second GC, no 'Cache' domain model setting, and System.Image generalization is unrelated.
A) Set the event handler's 'Raise error on concurrent modification' to false. B) Use a separate microflow for the related entity's commit and mark the original entity's event handler as 'Prevent commit'. C) Guard the before-commit handler with a static boolean flag or check the object's state to avoid re-triggering, or move logic to an after-commit handler. D) Convert the event handler to a Java action that bypasses the event chain.
' C o r r e c t A n s w e r : C Rationale: Recursion occurs when an event handler commits the same entity type, re-invoking the handler. Guarding with a flag or relocating logic to after-commit prevents re-entry. 'Prevent commit' blocks commits entirely, and Java actions still participate in the event chain.
A) Wrap the Call REST action in a loop with a fixed 1-second delay and no exit condition. B) Use the 'Call REST' action's built-in retry with exponential backoff and a maximum retry count, combined with an error handler that surfaces a user-friendly message. C) Increase the microflow's 'Allowed time' property to 300 seconds. D) Move the REST call to a scheduled event that runs every 5 seconds.
' C o r r e c t A n s w e r : B Rationale: Mendix's Call REST action supports configurable retries with backoff, which handles transient 429s without tight-looping. An unbounded loop with fixed delay risks thread starvation and never exits; increasing allowed time does not address rate limiting; scheduled events change semantics and do not retry per user request.
A) Define a property of type 'Microflow' and a separate property of type 'Object' with the entity set to the desired type. B) Define a property of type 'Microflow' with the return type set to 'List' and the entity specified in the microflow's return type. C) Use a 'Data source' property of type 'List' and bind it to a microflow that returns the list. D) Define a property of type 'Attribute' and map it to a list attribute.
' C o r r e c t A n s w e r : B Rationale: In Mendix 10 custom widgets, a Microflow property can specify a return type (including List of a chosen entity), allowing the widget to invoke the microflow and receive the list. Data source properties are for pluggable widgets that fetch data, not direct microflow invocation; attributes cannot hold lists.
A) In the microflow's properties, set 'Allowed roles' to 'Approver'. B) In the page's visibility conditions for the button that triggers the microflow.
C) In the entity access rules for Invoice, granting 'Approver' write access to the Status attribute. D) In the module role mapping, mapping the 'Approver' module role to the 'Approver' user role.
' C o r r e c t A n s w e r : A Rationale: Microflow 'Allowed roles' restricts which user roles may execute the microflow, enforced at runtime regardless of UI. Page visibility only hides the button, entity access controls attribute-level writes but not microflow execution, and module role mapping only links roles.
A) Import the WSDL as a consumed web service and use the generated 'Choice' entity, mapping only the selected branch and leaving others empty. B) Manually edit the WSDL to remove the choice element before import. C) Use a REST call instead, since Mendix cannot handle SOAP choices. D) Map the choice to a single string attribute and parse it in a Java action.
' C o r r e c t A n s w e r : A Rationale: Mendix's WSDL importer generates entities representing choice branches; the developer maps the relevant branch and leaves others unset, which serializes correctly. Editing the WSDL breaks the contract, Mendix supports SOAP choices, and string parsing bypasses schema validation.
A) Use Data Grid 2 with the non-persistent entity; server-side paging works automatically. B) Persist the data to a persistent entity (or use a view entity backed by a database) so the grid can delegate paging and sorting to the database. C) Switch to a List View widget, which supports server-side paging for non-persistent entities. D) Disable paging and load all records into the client.
' C o r r e c t A n s w e r : B Rationale: Server-side paging and sorting require a database-backed source; non-persistent entities exist only in memory and cannot be paged by the database. Persisting the data or using an OQL view entity enables efficient server-side operations. List View and client-side loading do not provide true server-side paging.
A) Mark the Java action as 'Asynchronous' in its properties. B) Increase the JVM heap size. C) Convert the Java action to a microflow with a loop. D) Run the Java action in a separate thread and poll for completion via a microflow.
' C o r r e c t A n s w e r : D Rationale: Long-running synchronous Java actions block the request thread, freezing the UI. Offloading to a background thread and polling (or using an async microflow with a callback) keeps the UI responsive. Mendix Java actions do not have an 'Asynchronous' property, increasing heap does not address blocking, and converting to a loop worsens performance.
A) The retrieve returns zero Customer objects because entity access rules are enforced at the database level for all retrieves.
commits per object (A) preserves the same bottleneck.
A) Place the library in the userlib folder and hard-code configuration values in the Java action. B) Bundle the library as a module dependency and use a constant with environment-specific values configured per environment in the Cloud Portal. C) Place the library in the resources folder and read configuration from a text file committed to the model. D) Add the library via a Marketplace module and store configuration in a non-persistable entity initialized at startup.
' C o r r e c t A n s w e r : B Rationale: Java libraries belong in userlib (or as module dependencies), and environment-specific configuration is managed through constants whose values are set per environment in the Mendix Cloud Portal. Hard-coding (A), committing a config file (C), or initializing a non-persistable entity (D) all fail to provide the required per-environment configuration separation.
A) A published OData service with an entity set and a microflow-based 'authentication' that returns a Boolean. B) A published OData service with an entity set, plus entity access rules that limit attribute visibility per module role. C) A consumed OData service with a transformation mapping that filters attributes. D) A published REST service with a custom microflow that serializes the entity to JSON.
' C o r r e c t A n s w e r : B Rationale: Published OData services honor the domain model's entity access rules, so attribute-level visibility is enforced through module-role access rules on the entity. Option A describes an authentication microflow but not attribute-level restriction; C describes a consumer, not a publisher; D describes REST, which does not natively support OData query options like $filter/$expand.
A) Change the datasource to a database retrieve with a refresh interval of 0 seconds. B) Enable 'Refresh in client' on the data view and ensure the microflow retrieves from the database (not from a cached list). C) Add a 'Commit' activity at the end of the microflow datasource. D) Replace the data view with a list view that has a page size of 1.
' C o r r e c t A n s w e r : B Rationale: The data view must be configured to refresh in the client, and the microflow datasource must perform a fresh database retrieve rather than returning a cached object, so the latest committed state is shown. Committing in the datasource (C) is inappropriate, and refresh interval 0 (A) does not force a database refresh, while a list view (D) does not address the caching issue.
A) A user task with a due date and an 'on due date' boundary event that routes to a manager task. B) A user task assigned to a group, with a timer boundary event set to 48 hours that triggers an escalation path. C) A parallel split that creates two tasks, one for the group and one for the manager, both active simultaneously. D) A user task with a 'target users' expression that dynamically resolves to a manager after 48 hours.
' C o r r e c t A n s w e r : B Rationale: The Workflow Engine supports timer boundary events on user tasks, which can trigger an escalation path after a specified duration. Option A conflates due dates with boundary events, C creates simultaneous rather than escalated tasks, and D misuses user targeting expressions, which do not change over time based on elapsed duration.
A) A non-persistable entity that mirrors Order and is merged on save. B) The 'Optimistic locking' option on the entity, which uses a version attribute to detect conflicting updates. C) A microflow that checks a 'last modified' timestamp before committing. D) A database unique constraint on the Order's primary key combined with a retry loop.
' C o r r e c t A n s w e r : B Rationale: Mendix provides built-in optimistic locking on persistent entities via a version attribute, automatically detecting conflicting updates when the entity is committed. Options A, C, and D require custom implementation and do not provide the same platform-native concurrency control.
A) Replace the loop with a single Retrieve activity using an XPath constraint that filters all required Customers, then iterate over the in-memory list. B) Enable 'Apply entity access' on the loop's retrieve activity to reduce the result set before iteration. C) Wrap the loop body in a Java action that calls Core.retrieveXPathQuery per iteration to leverage connection pooling. D) Convert the microflow to a nanoflow so the client performs parallel retrieves against the runtime.
' C o r r e c t A n s w e r : A Rationale: Batching the retrieve outside the loop and iterating in memory removes per-iteration database round-trips, the defining fix for N+1. Entity access (B) only filters rows, not query count. Java per-iteration retrieves (C) worsen the pattern. Nanoflows (D) still execute the same queries and add client overhead.
A) A microflow-based OData resource with a $filter parameter bound to the user's region via a session variable. B) A published OData service with a static XPath constraint of [Region = '[%CurrentUser%]']. C) A custom Java action registered as an OData operation that inspects the Authorization header. D) A database view exposed as an external entity with a WHERE clause referencing a session table.
' C o r r e c t A n s w e r : A Rationale: Microflow-based OData resources let you inject the authenticated user's region as a constraint server-side, preventing client tampering. Static XPath (B) cannot resolve per-user tokens. Java header inspection (C) is fragile and bypassable. External-entity views (D) cannot see Mendix session context.
D) The client's browser performance timeline recorded during user sessions.
' C o r r e c t A n s w e r : B Rationale: Heap dumps reveal retained objects and dominator trees, directly exposing memory leaks or excessive caching. Access logs (A) show requests, not heap state. CPU graphs (C) correlate but don't identify retained objects. Browser timelines (D) reflect client, not runtime, memory.
A) Implement validation once in a nanoflow and call it from both the page and a microflow. B) Implement validation once in a microflow and call it from a nanoflow via a 'Call microflow' activity. C) Use a Java action for validation and invoke it from both client and server contexts. D) Rely solely on domain model validation rules, which run on both client and server.
' C o r r e c t A n s w e r : D Rationale: Domain model validation rules are enforced by the runtime on both client and server, eliminating duplicated logic. Nanoflows (A) cannot be called from microflows. Nanoflows cannot call microflows (B). Java actions (C) cannot run client-side.
A) Grant all users full access to Order; restrict editing via a microflow that checks ownership before showing the edit page. B) Define an entity access rule granting edit rights to the Order_Creator module role, and a separate rule for the Manager role. C) Use a single entity access rule with an XPath constraint [CreatedBy = '[%CurrentUser%]' or [%CurrentUser%] in Managers]. D) Set entity access to 'read only' and use a Java action to bypass security for managers.
' C o r r e c t A n s w e r : B Rationale: Separate entity access rules per module role enforce least privilege declaratively at the runtime. Full access (A) exposes data if the microflow is bypassed. XPath cannot reference user roles (C). Java bypass (D) violates least privilege.
A) A PWA with a service worker and a published REST service for sync. B) A native mobile app with offline synchronization enabled on the domain model and a sync microflow. C) A web app with a 'Store offline' flag on each entity and a scheduled sync event. D) A hybrid app using a Java action to cache data in local storage.
' C o r r e c t A n s w e r : B Rationale: Mendix native mobile apps support offline synchronization via domain model settings and sync microflows, the supported offline-first pattern. PWA service workers (A) don't provide Mendix offline sync. Web apps (C) lack offline entity flags. Java local storage (D) bypasses Mendix's sync framework.
A) Event handlers on the entity in the domain model B) Microflow validation checks before every commit action C) Database constraints defined in the entity's validation rules
D) Client-side validation using JavaScript actions
' C o r r e c t A n s w e r : A Rationale: Event handlers (before commit) enforce validation at the domain model level, ensuring all entry points (UI, API, batch) are covered. Microflow checks are bypassed if commits occur elsewhere; database constraints are not natively supported in Mendix; client-side validation is insecure and easily bypassed.
A) Replace XPath with a Java action that uses a prepared statement B) Add an index on the attribute used in the XPath constraint C) Use a 'Retrieve by association' activity instead D) Convert the microflow to a nanoflow
' C o r r e c t A n s w e r : B Rationale: Adding a database index on the constrained attribute dramatically improves query performance for large datasets. Java actions may not be necessary; association retrieval is not always applicable; nanoflows run client-side and cannot replace server-side logic.
A) Use a single database with a Tenant entity and entity access rules based on tenant association B) Create separate databases for each tenant and manage connections dynamically C) Use module roles per tenant and assign users accordingly D) Implement a custom authentication microflow that filters data by tenant
' C o r r e c t A n s w e r : A Rationale: A single database with entity access rules scoped to the tenant association ensures data isolation without duplicating logic. Separate databases complicate maintenance; module roles don't inherently isolate data; custom filtering is error-prone and not enforced at the platform level.
A) Retry with exponential backoff and jitter, logging failures after max attempts B) Immediately fail the microflow and notify the user C) Ignore the error and continue with default values D) Switch to a synchronous SOAP call as fallback
' C o r r e c t A n s w e r : A Rationale: Exponential backoff with jitter is the standard resilient pattern for handling rate limiting. Immediate failure degrades UX; ignoring errors causes data inconsistency; SOAP is not a fallback for REST rate limits.
A) Published REST service with custom microflow B) Published OData service with entity set and query options enabled C) Consumed web service with a WSDL D) Java action that serializes to JSON
' C o r r e c t A n s w e r : B Rationale: Published OData services natively support $filter, $top, $skip, and other OData query options. REST services require manual implementation; WSDL is for SOAP; Java actions lack standard OData semantics.
Rationale: Lazy loading with pagination reduces initial load and memory usage. Retrieving all objects causes performance issues; base64 images increase payload; preloading all images is inefficient.
A) Increase the JVM heap and database connection pool size to absorb the peak concurrency. B) Replace the loop with a batch retrieve and use a Call REST action with a synchronous microflow per record. C) Move the per-record calls into an asynchronous scheduled event and process the list in chunks with a queue. D) Enable stateless execution on the microflow and set the microflow to 'Apply entity access' to reduce memory.
' C o r r e c t A n s w e r : C Rationale: Chunked asynchronous processing via a queue decouples user sessions from external latency and bounds concurrent connections, addressing both pool exhaustion and heap pressure. Increasing pool/heap (A) only postpones the failure, synchronous per-record calls (B) worsen contention, and stateless/entity access (D) do not reduce external call concurrency.
A) Calculated attributes are recomputed on every retrieve, so caching in a non-persistent entity is redundant. B) After-commit events on OrderLine do not fire for changes made through a microflow that only modifies the associated Product. C) Event handlers always fire regardless of the source of change, ensuring the cache is never stale. D) Calculated attributes can only reference attributes on the same entity, not associations.
' C o r r e c t A n s w e r : B Rationale: Mendix event handlers fire on changes to the entity that owns the event, not on changes to associated entities; modifying Product does not trigger OrderLine's after-commit, so the cache can become stale. Calculated attributes are computed on retrieval (A is partially true but not the key issue), event handlers are not universal (C), and calculated attributes can traverse associations (D).
A) Expose the entity as an entity set and mark the Parent association as a navigation property with $expand support. B) Expose the entity as a function import returning a flat list and handle hierarchy in Power BI. C) Create a separate entity set for each level of the hierarchy and join them in Power BI. D) Disable $expand and require clients to retrieve each level with separate $filter queries.
' C o r r e c t A n s w e r : A Rationale: OData navigation properties with $expand allow clients to traverse self-referencing associations efficiently in a single request. Function imports (B) flatten the hierarchy, per-level entity sets (C) are not idiomatic and scale poorly, and disabling $expand (D) forces N+1 queries.
A) Wrap the Java action in an asynchronous microflow and return a task token. B) Increase the number of runtime instances in the Mendix Cloud. C) Move the blocking call to a scheduled event that runs every minute. D) Convert the Java action to a microflow with a Call REST action using a timeout.
' C o r r e c t A n s w e r : A Rationale: Asynchronous execution offloads the blocking call from the request thread, preventing thread starvation while preserving the action's interface. Scaling instances (B) does not fix thread blocking, scheduled events (C) change semantics, and converting to a microflow (D) may not be feasible if the Java action performs logic unavailable in microflows.
A) The non-persistent entity was not committed before navigation. B) The page was opened with a microflow that did not pass the object as a parameter. C) The entity access rules do not allow read access to the non-persistent entity. D) The non-persistent entity was garbage collected by the JVM.
' C o r r e c t A n s w e r : B Rationale: Non-persistent objects are passed by reference through microflow parameters; if the navigation microflow does not pass the object, the new page receives an empty context. Committing (A) is unnecessary for non-persistent entities, entity access (C) is not the typical cause for non-persistent passing, and JVM garbage collection (D) is not applicable while a reference exists.
A) Set page visibility to 'Finance' module role and set entity access on Invoice to allow read for 'Finance'. B) Set page visibility to 'Finance' and rely on the default entity access for Invoice. C) Set entity access on Invoice to allow read for 'Finance' and leave the page visible to all. D) Use a microflow to check the user's role before opening the page and set entity access to allow all.
' C o r r e c t A n s w e r : A Rationale: Both page visibility and entity access must be configured to prevent unauthorized data exposure. Relying on defaults (B) may allow broader access, leaving the page visible (C) exposes the UI, and a microflow check (D) is not a substitute for declarative security and can be bypassed.
A) Use a transaction with the 'Commit' activity at the end of the microflow. B) Enable 'Apply entity access' on the microflow. C) Use a Java action with a database transaction. D) Mendix microflows are inherently atomic; no additional configuration is needed.
' C o r r e c t A n s w e r : D Rationale: Microflows execute within a single database transaction by default, so all commits succeed or fail together. Adding a Commit activity (A) does not change atomicity, entity access (B) is unrelated, and a Java action (C) is unnecessary.
A) The JSON structure does not match the mapping's expected root element. B) The entity has no associated persistent entity. C) The REST service requires authentication. D) The attribute is not marked as 'Optional' in the mapping.
' C o r r e c t A n s w e r : A
' C o r r e c t A n s w e r : B Rationale: The 'First' option translates to a database query with LIMIT 1, so only one object is fetched. It does not retrieve all objects, nor does it cache results or default to creation date sorting. This makes it efficient for large datasets.
A) Core.createObject(context, entityName) B) Core.instantiate(entityName) C) Core.newObject(context, entityName) D) Core.create(entityName)
' C o r r e c t A n s w e r : A Rationale: The correct method is Core.createObject(context, entityName), which creates a new object in the given context. Core.instantiate, Core.newObject, and Core.create are not valid Mendix Core API methods for object creation.
A) Mark the microflow as 'Asynchronous' in the microflow properties. B) Use a scheduled event to run the microflow in the background. C) Call the microflow from a page using a 'Call microflow' button with the 'Show progress bar' option. D) Implement the Java action to run in a separate thread using Mendix's IContext.runInTransaction.
' C o r r e c t A n s w e r : A Rationale: Marking the microflow as asynchronous allows it to run in the background without blocking the UI. Scheduled events are for time-based execution, progress bars do not prevent freezing, and runInTransaction is for transactional control, not threading.
A) Dockerfile B) mendix.yaml C) deployment.yaml D) app.yaml
' C o r r e c t A n s w e r : C Rationale: Kubernetes deployment and service resources are defined in YAML files, typically named deployment.yaml and service.yaml. A Dockerfile builds the image, mendix.yaml is not standard, and app.yaml is used for other platforms like Google App Engine.
A) A validation rule on the attribute in the domain model. B) A unique constraint on the attribute in the entity's properties. C) A microflow that checks for duplicates before commit. D) An event handler on the entity's before commit event.
' C o r r e c t A n s w e r : B
Rationale: Mendix allows setting a unique constraint on an attribute in the entity properties, which enforces uniqueness at the database level. Validation rules and microflows can check but do not enforce database-level uniqueness, and event handlers are for custom logic.
A) TRACE B) DEBUG C) INFO D) ERROR
' C o r r e c t A n s w e r : D Rationale: Setting the log level to ERROR captures only error messages. TRACE, DEBUG, and INFO capture increasingly verbose levels including non-error information. ERROR is the most restrictive for capturing only errors.
A) Microflow B) MicroflowBase C) MicroflowObject D) MicroflowDefinition
' C o r r e c t A n s w e r : A Rationale: In the Mendix Model SDK, a microflow is represented by the Microflow unit type. MicroflowBase, MicroflowObject, and MicroflowDefinition are not the correct unit types for a microflow.
A) Using the mx.data.action API with a callback. B) Using the mx.ui.action API with a callback. C) Using the mx.data.callMicroflow API with a callback. D) Using the mx.server.request API with a callback.
' C o r r e c t A n s w e r : A Rationale: The mx.data.action API allows calling a microflow asynchronously with a callback to handle the result. mx.ui.action is for UI actions, mx.data.callMicroflow does not exist, and mx.server.request is for low-level server requests.
A) An exclusive split with a condition, followed by a log message activity on the false branch. B) An exclusive split with a condition, followed by a validation feedback activity on the false branch. C) A decision activity with a condition, followed by a log message activity on the false branch. D) A loop with a condition, followed by a log message activity on the false branch.
' C o r r e c t A n s w e r : A Rationale: An exclusive split evaluates a condition and directs the flow; on the false branch, a log message activity can record the event. Decision and loop activities are not used for conditional branching in this context, and validation feedback is for user input.