




















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: What is an important rule to keep in mind when creating effective indexes in Mendix? A. The index should have the same order of attributes defined as in search and retrieve queries in order to be available for queries B. Indexes should always be created on all attributes to improve performance C. Indexes are only needed for entities with more than 1,000 records D. Indexes can be created without considering the domain model structure Correct Answer: A. The index should have the same order of attributes defined as in search and retrieve queries in order to be available for queries Rationale: Effective indexes in Mendix must match the order of attributes used in common queries to optimize performance and availability. Over- indexing (B) can actually degrade performance as each index adds overhead during write operations. Indexes are beneficial regardless of record count
increases storage requirements. A is normalization, C describes indexing, and D is a design decision but not denormalization. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 4: Which of the following is NOT a benefit provided by XPath in the Mendix Platform? A. XPath can be used to automatically generate pages and widgets to show data on B. XPath allows for flexible querying of data in microflows and nanoflows C. XPath supports complex filtering and sorting in lists D. XPath enables dynamic data retrieval based on associations Correct Answer: A. XPath can be used to automatically generate pages and widgets to show data on Rationale: XPath is a query language for data retrieval in Mendix, but automatic page and widget generation is handled by the platform's UI tools, not XPath. Options B, C, and D are all correct benefits of XPath for querying, filtering, and retrieving data. XPath is used in microflows, nanoflows, and data grid constraints. Source: Mendix Advanced Certification Exam 2023/2024 (Stuvia) Question 5: When should you apply an index to an attribute in Mendix? A. Always, for every attribute in every entity B. Never, indexes are obsolete in modern Mendix C. You should apply indexes on attributes that are used in searches when the performance of your app is not up to par D. Only when the entity has more than 10,000 records Correct Answer: C. You should apply indexes on attributes that are used in searches when the performance of your app is not up to par Rationale: Indexes should be applied on attributes that are used in searches when performance issues are identified. Over-indexing (A) can hurt write performance. Indexes are not obsolete (B). While index usefulness increases
with record count, there is no fixed threshold (D). The Mendix documentation recommends creating indexes based on actual query patterns and performance monitoring. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 6: When comparing an attribute to a related entity in an XPath query, what is the most optimal way to retrieve all related objects? A. Retrieve all objects from the database and filter in memory B. When comparing to a related entity, it is enough to stop at the association to get the most optimal query C. Always traverse all associations to ensure completeness D. Use separate XPath queries for each related entity Correct Answer: B. When comparing to a related entity, it is enough to stop at the association to get the most optimal query Rationale: For optimal performance when retrieving related objects via XPath, stopping at the association is sufficient. The platform optimizes the query by leveraging the database joins effectively. This reduces query complexity and improves performance. Retrieving all objects and filtering in memory (A) is inefficient. Traversing all associations unnecessarily (C) creates complex queries. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 7: Which statement best describes how the Mendix platform applies entity access restrictions? A. The platform grants all access unless explicitly restricted B. The platform only grants the access explicitly defined in the entity access rules C. Entity access is applied only on the UI level, not at the database level D. Entity access rules are optional and can be ignored Correct Answer: B. The platform only grants the access explicitly defined in the entity access rules
A. It will run slower because of extra security checks B. Users can invoke it without any authentication, potentially bypassing data- level security inside the microflow C. It cannot be called from a page D. It will automatically be executed on app startup Correct Answer: B. Users can invoke it without any authentication, potentially bypassing data-level security inside the microflow Rationale: Public microflows are accessible to anyone, including anonymous users, so any logic inside must enforce its own security checks to avoid data leaks. There are no extra security checks (A). Public microflows can be called from pages (C). They do not execute on startup (D). The risk is that an unauthenticated user could invoke the microflow and access or modify data. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 10: Which role bypasses all security checks in a Mendix application? A. System.User B. Administrator C. Developer D. Owner Correct Answer: B. Administrator Rationale: The Administrator role is a built-in Mendix role that bypasses all security checks, providing unrestricted access throughout the application. This is why the Administrator role should be used carefully and not assigned to regular users. System.User (A) is the default role, Developer (C) is a Studio Pro user type, and Owner (D) is a concept in entity-level ownership. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 11: How can you configure anonymous users to view a public page but prevent them from creating any data?
A. Assign them the Administrator role B. Give the page a Public access level and set entity permissions to Read- only for the Anonymous role C. Disable session handling for anonymous users D. Use a custom Java action to filter access Correct Answer: B. Give the page a Public access level and set entity permissions to Read-only for the Anonymous role Rationale: Setting the page to Public allows access without authentication, while entity permissions for the Anonymous role can be limited to Read only, blocking Create operations. Administrator role (A) would grant full access. Disabling session handling (C) would break functionality. Custom Java action (D) is unnecessary as this is standard Mendix security configuration. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 12: Which combination correctly maps a Project Role to multiple Module Roles? A. One Project Role can be assigned to many Module Roles, but each Module Role can belong to only one Project Role B. Each Project Role can be linked to multiple Module Roles, and each Module Role can be linked to multiple Project Roles (many-to-many) C. Project Roles and Module Roles are independent; no mapping is required D. A Module Role automatically inherits all Project Role permissions without explicit mapping Correct Answer: B. Each Project Role can be linked to multiple Module Roles, and each Module Role can be linked to multiple Project Roles (many-to-many) Rationale: Mendix allows many-to-many relationships between Project Roles and Module Roles, enabling flexible permission structures. This flexibility is necessary because real-world applications often require users to have different roles across different modules. The relationship is many-to-many, not one-to-many (A). Project Roles and Module Roles are not independent (C), and there is no automatic inheritance without mapping (D). Source: Mendix Advanced Developer Practice Exam Questions (Docsity)
Question 15: When granting Teachers the ability to manage Student accounts, what additional constraint is needed to ensure they can only manage students in their class? A. No additional constraints are needed; the module role is sufficient B. Add an XPath constraint that restricts the Student entity to those associated with the Teacher's class C. Use the Administrator role instead D. Disable entity access for all other students Correct Answer: B. Add an XPath constraint that restricts the Student entity to those associated with the Teacher's class Rationale: Granting a module role alone (A) is insufficient because Teachers would have the ability to edit the accounts of any Student, not just their own. An XPath constraint must be added to restrict the Student entity to those associated with the Teacher's class. The Administrator role (C) would grant excessive access. Disabling entity access (D) would prevent all access. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 16: What is the effect of the 'and' operator in an XPath query when used with multiple constraints? A. The 'and' operator will give the same result regardless of how you write the XPath query B. The 'and' operator will give a different result based on how you write the XPath query C. The 'and' operator is not supported in XPath D. The 'and' operator always returns all records Correct Answer: B. The 'and' operator will give a different result based on how you write the XPath query Rationale: In XPath queries, the 'and' operator can produce different results based on how the query is structured and the order of constraints. This is due to how the database optimizer interprets the query. Careful consideration of query structure is needed when combining multiple constraints. A is incorrect because query structure matters. C is incorrect because 'and' is supported. D is incorrect because 'and' filters records. Source: Mendix Advanced Certification Exam Practice Questions (Docsity)
Question 17: What is a characteristic of the not() function in XPath? A. It improves query performance B. It generates a slow query C. It is the fastest way to filter data D. It only works on string attributes Correct Answer: B. It generates a slow query Rationale: The not() function in XPath can generate slower queries because it often requires scanning more records to exclude data. While sometimes necessary, it should be used judiciously, especially on large datasets. A and C are incorrect because not() is typically slower. D is incorrect because not() can work on various attribute types. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 18: Which of the following is a valid Mendix token for referencing the current user in XPath? A. [%CurrentUser%]
Correct Answer: A. [%CurrentUser%] Rationale: In Mendix XPath for entity access and data grid constraints, [%CurrentUser%] is the correct token to reference the logged-in user's object
(C) is incorrect. This token is essential for implementing "my records" patterns. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 19: What is a field of a Mendix log message?
Question 21: What set-up items do you need to have in place before creating your REST methods? A. An entity with attributes, a Published REST service, and a resource in the Published REST service B. A microflow and a Java action C. A domain model with inheritance only D. A security module and user roles Correct Answer: A. An entity with attributes, a Published REST service, and a resource in the Published REST service Rationale: To create REST methods in Mendix, you need an entity with attributes (to structure the data), a Published REST service (the endpoint container), and a resource within that service (the specific endpoint path). While microflows, Java actions, and security are often involved, the core set- up items are those in A. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 22: What does a GET method do in a REST API context? A. Creates a new resource B. Updates an existing resource C. Deletes a resource D. Allows information sharing between applications, where the other system can determine when to retrieve that shared information Correct Answer: D. Allows information sharing between applications, where the other system can determine when to retrieve that shared information Rationale: A GET method in REST API context allows information sharing between applications, with the consuming system determining when to retrieve that shared information. A is POST, B is PUT or PATCH, C is DELETE. GET retrieves data and is idempotent and safe. Source: Mendix Advanced Certification Exam Practice Questions (Docsity)
Question 23: How can you test a POST method in a Mendix Published REST service? A. Use the Mendix Debugger B. Find the Location property of your published REST service, open that URL in your browser, go to the POST button of your collection, and add a message C. Only through automated unit tests D. By executing a microflow directly Correct Answer: B. Find the Location property of your published REST service, open that URL in your browser, go to the POST button of your collection, and add a message Rationale: To test a POST method, find the Location property of your Published REST service, open that URL in your browser, go to the POST button of your collection, and add a message. This uses the built-in Swagger/OpenAPI documentation that Mendix generates for Published REST services. The Mendix Debugger (A) is not for REST testing. Automated tests and direct microflow execution (C and D) are less direct for API testing. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 24: What type of input parameter do you need for the delete microflow belonging to the DELETE method? A. An entity object B. A unique ID to be able to retrieve the object to delete C. The entire resource URL D. A list of objects to delete Correct Answer: B. A unique ID to be able to retrieve the object to delete Rationale: For a DELETE method's microflow, you need a unique ID to retrieve the object to delete. DELETE methods typically operate on a specific resource identified by its ID. An entity object (A) would require the caller to provide the entire object. The URL (C) is supplied by the framework. A list of objects (D) is not standard for a single DELETE.
Question 27: How can you get a response that shows if a POST method was executed correctly including the provided data? A. Return the object ID only B. Go to the connecting microflow of your POST method, export the information to a JSON String value, change the HTTPResponse object, and create an HTTP header object C. Use a custom Java action to generate the response D. Always return a success status code Correct Answer: B. Go to the connecting microflow of your POST method, export the information to a JSON String value, change the HTTPResponse object, and create an HTTP header object Rationale: To create a response showing successful execution with the provided data, you need to go to the connecting microflow, export the information to a JSON String value, change the HTTPResponse object, and create an HTTP header object. This gives you control over the response structure. Returning only the ID (A) is insufficient for showing data. Custom Java action (C) is unnecessary. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 28: When using the Database Connector module to query an external PostgreSQL database, which setting is critical for preventing SQL injection? A. Enabling SSL B. Using parameterized queries (question marks) instead of string concatenation C. Setting the connection timeout to 0 D. Storing credentials in a constant variable Correct Answer: B. Using parameterized queries (question marks) instead of string concatenation Rationale: Parameterized queries separate code from data, ensuring user input cannot alter the SQL command structure. SSL (A) encrypts data in transit. Connection timeout (C) affects performance, not security. Storing
credentials as constants (D) is a security risk. Preventing SQL injection is a critical security concern when querying external databases. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 29: How do you ensure that your log node name is available after application startup? A. It is available by default B. Add a log activity to a microflow that you call in the After Startup microflow C. Configure it in the project settings D. Create a Java action to register the log node Correct Answer: B. Add a log activity to a microflow that you call in the After Startup microflow Rationale: To ensure your log node name is available after startup, add a log activity to a microflow that you call in the After Startup microflow. This registers the log node at application start. It is not available by default (A). Project settings (C) and Java actions (D) are not the correct way to register log nodes. Proper log node registration is essential for consistent application logging. Source: Mendix Advanced Certification Exam Practice Questions (Docsity) Question 30: What logging level should you use when adding a log event to an error flow on a REST call to indicate the API call failed but you can still continue processing? A. Debug B. Info C. Warning D. Critical Correct Answer: C. Warning Rationale: Warning level is appropriate when you can still continue processing but someone should investigate the failure and determine
Question 32: Which metric in the Mendix Cloud Portal indicates a possible database bottleneck? A. CPU usage of the runtime container B. Number of active sessions C. "Database query time" (average) D. Number of deployed modules Correct Answer: C. "Database query time" (average) Rationale: High average database query time suggests queries are taking longer, pointing to potential indexing or query-optimization issues. CPU usage (A) indicates compute load. Active sessions (B) measure usage. Deployed modules (D) reflect application complexity. Database query time is a direct indicator of database performance problems. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 33: How should you normally implement memory management and batch processing in Mendix? A. Use "Non-Commit Changes" to temporarily store changes in memory without persisting them to the database B. Always commit changes immediately for data consistency C. Use Java actions for all batch operations D. Use microflow loops for all operations Correct Answer: A. Use "Non-Commit Changes" to temporarily store changes in memory without persisting them to the database Rationale: The "Non-Commit Changes" activity in a microflow allows you to temporarily store changes in memory without persisting them to the database. This is beneficial for batch processing where you want to accumulate changes and commit them as a single transaction. Immediate commits (B) can be inefficient for large batches. Java actions (C) are not always necessary. Microflow loops (D) are fine but "Non-Commit Changes" is the recommended batch pattern. Source: Mendix Advanced Developer Practice Exam Questions (Docsity)
Question 34: In the Mendix Debugger, what does the "Watch" panel allow you to do? A. Modify the source code while debugging B. Observe the current value of variables and object attributes in real time C. Restart the entire application D. Export logs to a file Correct Answer: B. Observe the current value of variables and object attributes in real time Rationale: The Watch panel displays selected variables, letting you monitor their values as the microflow execution progresses. This is essential for debugging complex logic. You cannot modify source code (A), restart the app (C), or export logs (D) from the Watch panel. The Watch panel is a fundamental debugging tool in Mendix Studio Pro. Source: Mendix Advanced Developer Practice Exam Questions (Docsity) Question 35: What is the purpose of the "Non-Commit Changes" activity in a microflow? A. To automatically commit all pending changes at the end of the microflow B. To temporarily store changes in memory without persisting them to the database C. To delete all changes made in the current session D. To create a backup of the current state Correct Answer: B. To temporarily store changes in memory without persisting them to the database Rationale: The "Non-Commit Changes" activity allows you to work with objects in memory without immediately writing changes to the database, enabling more efficient batch processing. This pattern also supports transaction management where multiple changes should be committed as a unit. The changes must be explicitly committed later. Source: Mendix Advanced Developer Practice Exam Questions (Docsity)