Skip to content
lowcoder.net
All decks
MendixAdvanced· 51 cards

Mendix Advanced Developer: exam prep

Exam prep: Advanced Developer

51 cards for the Mendix Advanced Developer certification: performance, task queues, transactions and error handling, advanced security, integration and extensibility, domain model choices, patterns and team workflow.

Take a practice exam
0 of 51 cards learned0%

Unofficial study aid from Lowcoder.net, not affiliated with or endorsed by Mendix or Siemens. Written from Mendix documentation and learning paths, not from exam questions. The exam: online proctored, 50 questions in 120 minutes; it requires the Intermediate Developer certificate and about six months of hands-on experience. Check the official Mendix exam guide for the topics and pass mark.

All 51 cards as a list

Performance

Why avoid committing inside a loop?
Each commit is a database round trip and fires events. Collect changed objects in a list and commit the list once after the loop.
How do you process a very large table without running out of memory?
Batch it: retrieve with a limit and offset (or by an ID range) in a loop, process and commit each batch, and keep the list small.
Why are calculated (virtual) attributes risky?
They run a microflow every time the object is retrieved, also in lists, and can't be used for sorting or XPath. Prefer stored values updated by events or logic.
What is the effect of deep generalization trees?
Each level is a separate table, so retrieving a specialization needs joins. Deep inheritance (especially from System.FileDocument on large tables) slows queries.
When should you add an index?
On attributes often used in XPath filters, sorting or joins on large tables. Too many indexes slow down inserts and updates.
Retrieve with range 'First' vs 'All'?
'First' adds a limit of 1 in the query, so the database returns one row. Use it when you only need one object.
How do you count records efficiently?
Use an aggregate list Count directly on a database retrieve; Mendix turns it into a COUNT query without loading all objects.
Why avoid microflow data sources in nested list items?
Each item calls the server separately (N+1 calls). Use database or association sources so Mendix can fetch data in one go.
Where do you look for slow microflows and queries?
Mendix Cloud metrics and running-request statistics, log nodes such as ConnectionBus_Queries at Trace level, and the Studio Pro debugger and profiling tools.

Background processing

What is a task queue?
A Mendix mechanism to run microflows asynchronously in the background, spread over cluster nodes, with a configurable number of threads. You call a microflow 'Execute in background' in a queue.
Why use a task queue instead of running long logic directly?
The user isn't kept waiting, the work survives node restarts, and you control parallelism. Good for sending many emails or calling slow APIs.
Can a task queue microflow use the user's session?
No. It runs in a system context (or a recreated user context) on any node, so pass the data it needs as parameters.
Scheduled event vs task queue?
A scheduled event starts at set times. A task queue runs work as soon as it is queued, often triggered by a user action or a scheduled event.

Transactions & error handling

When is a microflow's data actually committed?
At the end of the transaction that started with the first microflow called from the client. Until then other users don't see the changes.
What does 'Custom without rollback' keep?
The changes made before the failing activity stay; only the failing activity's work is undone (Mendix uses savepoints). The flow continues on the error path.
What happens if a sub-microflow fails with default error handling?
The error bubbles up and the whole transaction, including the caller's changes, is rolled back unless the caller handles the error.
Why log $latestError in an error handler?
Without it the cause is lost. Log it with a clear message and log node, then show the user a friendly message.
What is an optimistic-concurrency risk in Mendix?
Two users editing the same object: by default the last commit wins without warning. Add a version attribute or check changedDate before committing when that matters.
How do you make a long batch job keep progress on failure?
Commit per batch in separate transactions (for example via a task queue per batch or an EndTransaction/StartTransaction Java action), so earlier batches stay saved.

Advanced security

Why turn on 'Apply entity access' for some microflows?
So the microflow only reads and changes what the current user is allowed to. Use it for published APIs and microflows that act on behalf of the user.
How do you build multi-tenancy in Mendix?
Link data to a tenant (for example Company) and add XPath constraints on entity access, such as [Module.Order_Company/Module.Company/Module.Account_Company = '[%CurrentUser%]'].
What does strict mode do?
It limits the client API so the browser can only reach data and microflows that the pages in the app actually use, which protects against tampering through the client.
How do you add single sign-on?
With Marketplace modules such as OIDC SSO (OpenID Connect) or SAML, which map identity-provider users and claims to Mendix accounts and user roles.
How can you restrict access to an app by IP in Mendix Cloud?
With access restriction profiles (IP ranges or client certificates) per environment path in the Cloud Portal.
What does 'Manage users' (user management) on a user role do?
It decides which other user roles a role can create and edit, for example a Manager can manage Employees but not Administrators.
Why never trust input from the client?
Client data can be changed by the user. Validate in microflows or entity validation on the server, and secure entities and microflows with access rules.

Integration & extensibility

What are Mendix Business Events?
Asynchronous messages between Mendix apps through the Mendix Event Broker (based on Kafka): one app publishes an event, subscribed apps handle it in a microflow.
Published OData vs published REST service?
OData exposes entities with standard querying (filters, paging) and is used for external entities and BI tools. REST services give you full control over resources and payloads via microflows.
What is an external entity?
An entity whose data comes live from another app's published OData service (found in the Catalog). Data isn't copied locally.
When do you write a Java action?
When microflows can't do it: complex calculations, a Java library, or low-level platform APIs. It runs on the server and is called from microflows.
When do you write a JavaScript action?
For client-side logic in nanoflows, for example calling a browser or device API. It runs in the browser or native app.
What is a pluggable widget?
A custom UI widget built with React (and TypeScript), the Pluggable Widgets API and its XML definition, then used in Studio Pro like built-in widgets.
How do you handle an HTTP error from a REST call?
Add custom error handling to the Call REST activity and inspect $latestHttpResponse (status code and content) to decide what to do.
Why use import mappings with 'find by key'?
So incoming JSON updates existing objects instead of creating duplicates.

Domain model & data

Why does association ownership matter for commits?
The owner stores the association. To change it you must commit the owner side; setting it from the non-owner side is only possible with 'Both' ownership.
When do you use a non-persistable entity?
For data you don't need to keep: search criteria, API responses before mapping, wizard steps or calculations shown in the UI. They don't touch the database.
Event handler vs explicit microflow logic?
Event handlers always run (unless committing without events), which is safe but hidden. Explicit logic in the save microflow is easier to follow and test.
What is the 'System.owner' member used for?
It stores the user who created the object and is often used in XPath access rules ('only your own records').
How do you keep history of changes?
Store changes in an audit entity from before/after commit events, or use the Audit Trail module from the Marketplace.
What does 'Delete only if not associated' do?
It prevents deleting an object while associated objects exist and shows the configured message.

Logic & UI patterns

When choose a nanoflow over a microflow?
For UI logic that doesn't need the server (validation, toggles, navigation) and for offline-first apps. It saves a server round trip.
Why keep microflows small?
Smaller microflows with clear names and sub-microflows are easier to read, reuse and test, and errors are easier to trace.
What is a validation microflow pattern?
A sub-microflow that checks all fields, shows validation feedback per field, returns a Boolean, and is called before commit in the save flow.
What is the role of snippets?
Reusable page parts that keep identical UI in one place (for example an address block), used on several pages.
How do you unit test logic in Mendix?
With the Unit Testing module: microflows starting with Test_ that assert results, run from a test overview page or in a pipeline.
What is Mendix Application Test Suite (ATS)?
A tool for automated UI tests of Mendix apps, built on Selenium, with Mendix-aware actions.

Team & lifecycle

When do you create a branch line?
For a release fix on the version in production or for a large feature that shouldn't block the main line. Keep branches short-lived and merge back often.
How do you bring a fix from a branch to the main line?
Merge the branch commit (port it) into the main line in Studio Pro, resolve conflicts, then commit.
Merge commit vs rebase when pulling?
Rebase replays your local commits on top of the latest remote commits (a straight history). Merge creates a merge commit. Studio Pro lets you choose.
What is a deployment pipeline in Mendix?
Mendix Pipelines (or your own CI/CD with the Deploy API) automatically builds, runs checks and deploys an app to environments.
What should a good definition of done include?
Code reviewed, tested (including security), no errors or warnings, documented, story accepted by the product owner.