









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!










What is a Persistable entity? Correct Answer An Entity that can be saved in the database. What is a Non-Persistable entity? Correct Answer An entity that can only be saved in runtime memory. What is a Generalized entity? Correct Answer An entity that lends its attributes, associations, event handlers, validation rules and any other properties to another entity. What is a Specialized entity? Correct Answer An entity that inherits all or part of its attributes, associations, event handlers, validation rules and any other properties from another entity. what are the system member properties? Correct Answer CreatedDate, ChangedDate, Owner, ChangedBy How do you show multiple specialized entities in the same list view? Correct Answer By adding a template for every specialized entity while using the default for the generalized entity. What do you need to do after an Object type decision? Correct Answer Cast to entity to the correct specialization. What should you do if the Object type decision is empty? Correct Answer Create a log message, since this is unexpected behavior. Why should you use inheritence? Correct Answer It allows you to make reusable microflow, which increases the consistency and maintainability of your app.
when should you use a 1-1 association over inheritance? Correct Answer when the entity in question isn't a true specialization of the generalized entity and/or the generalized entity's properties are not required when dealing with the entity in question. Why is creating a new entity and making it a specialization of the FileDocument or Image entity preferred over using original entities? Correct Answer The original entities are part of the System module, which makes them ineditable. What indicates ownership over an association. Correct Answer A dot on that entity's side of the association. Why is the main downside of a - association Correct Answer It uses a lot more memory that other associations. What is an index? Correct Answer An extra table for a given entity in the database with ID's and a specified attribute(s) in a sorted order which allows for faster queries. When do you use an index? Correct Answer On entities with a lot of objects that are read more than written and on the most searched attributes, that also have many possibilities. What is the downside of an index? Correct Answer every time an object is added, the entire index table needs to be updated, which can potentially cause performance issues. What are the 4 stages of a domain model restructering? Correct Answer 1. extend your domain model
How do you analyze SQL Queries in Mendix. Correct Answer By setting the log level on ConnectionBus_Retrieve to Trace and checking the console logs. What is the difference between an association and database retrieve? Correct Answer A association retrieve will first check in memory which can contain uncommited changes, while a database retrieve directly checks the database, skipping uncommited changes. When is an association retrieve preferable over a database retrieve? Correct Answer When performing actions that are not data-intensive and/or the required data is already available in memory. What should be kept in mind while retrieving data from the database? Correct Answer Do not query the database more than necessary? While using batches, when should you use a changing offset? Correct Answer when the changes you are making do not impact the size of the retrieved list. while using batches, why should you sort your retrieved list? Correct Answer The ensure that the order of the list is the same everytime you retrieve and no objects get skipped. what should be done instead of commiting in a loop?` Correct Answer Create a list_ToCommit, add all object that need to be commited to that list and commit the list after the loop. What is a potential downside of before and after commit microflows? Correct Answer They can cause performance issues
When should an object be refreshed in client? Correct Answer only when data needs to be shown to a user directly after the microflow is complete. What does a retrieve followed by an aggregated list do? Correct Answer It returns an optimized query from the database with the result of the aggregated list. where can Xpaths be used? Correct Answer in microflows, security and on pages. When an Xpath has multiple constrains, what is important to remember? Correct Answer the order in which the constrains are set, this can impact the result. When using an Xpath multiple times, why should you keep the order the same? Correct Answer this optimizes data queries, since they already exist in memory but the database can only recognize that if the xpath is the same. What is a favourable alternative to using the 'Or' operator in a Xpath? Correct Answer Doing two separate retrieves and merging them into one list. While building xpaths, what should generally not be put inside a not() statement? Correct Answer Associations while building xpaths, when should two constrains be combined? Correct Answer when they consume the same path. while building xpaths, what should be kept in mind while using associations? Correct Answer longer paths over associations include more entities that need to be checked, which exponentially increase the amount of resources consumed.
When defining entity access, what should default rights for new users be? Correct Answer None, this forces you to consider access rights every time you add a rule. what does 'User management' do? Correct Answer It gives the user role in question rights to manages user from all or selected user roles. When using the User or Account entities in Mendix, what is considered best practice? Correct Answer create a 1- 1 association with the entity you want to link, instead of using inheritence. When using anonymous users, what is important to keep in mind. Correct Answer Limit their access to entities, modules, pages and microflows to the absolute necessities and try to make use of non- persistent entities to protect your database. When assigning user roles, what is in important to keep in mind? Correct Answer Giving users more than one user role will increase complexity. When selecting data, what is a Selection? Correct Answer An operation that allows you to select a subset of rows from an entity. when selecting data, what is a Projection? Correct Answer An operation that allows you to select a subset of columns from an entity. when selecting data, what is a Cartesian Product? Correct Answer an operation that combines the information of two entities into one.
when selecting data, what is a Set Union? Correct Answer an operation that combines the information of two sets of objects of the same entity, while filtering duplicates out. when selecting data, what is a Set difference? Correct Answer an operation that shows the differences between two sets of objects of the same entity, showing only objects that exist in one set but not the other. When can the use of the 'contains()' function cause performance issues? Correct Answer when using it on a string that is set to 'unlimited' when writing Xpaths, having multiple sets of square brackets equates too... Correct Answer having one set of square brackets with an 'and' operator. when is a not() function appropriate? Correct Answer when checking booleans or if a association exists. what is a better alternative for the not() function? Correct Answer retrieving the full list and retrieving a list of the object you don't want and then subtracting that list from the full list. how can you find large Xpaths effectively. Correct Answer using find advanced When building a domain model, what is normalization? Correct Answer the removal of duplicate places of data storage. when building a domain model, what is denormalization? Correct Answer the intentional duplication of places of data storage What is a insertion anomaly? Correct Answer the unintended duplication of data.
which methods are considered nether safe nor idempotent? Correct Answer POST, PATCH which methods are considered safe and idempotent? Correct Answer GET, HEAD, OPTIONS what does the GET method do? Correct Answer it retrieves information from on a resource or a group of resources based on specified identifiers. what does the POST method do? Correct Answer It creates an object from the information in its body based on specified identifiers. What does the PUT method do? Correct Answer It updates a single object in its entirety with the information in its body, empty values included. What does the PATCH method do? Correct Answer It updates specific values or initiates actions on a single object based on the information in its body, if these changes do not changes the object identifier. What does the DELETE method do? Correct Answer it deletes a single object based on specified identifiers. What does the HEAD method do? Correct Answer The same as the GET method, but without the response body. What does the OPTIONS method do? Correct Answer it retrieves which methods are implemented on a resource collection. What should you use when retrieving a single resource based on a unique identifier. Correct Answer A path parameter.
when calling an REST API, what does the status code 200 stand for? Correct Answer Succesfull operation, reponse has content. when calling an REST API, what does the status code 201 stand for? Correct Answer Succesfull creation of new object. when calling an REST API, what does the status code 204 stand for? Correct Answer Succesfull operation, response has no content. when calling an REST API, what does the status code 400 stand for? Correct Answer Error, failed validation. when calling an REST API, what does the status code 401 stand for? Correct Answer Error, custom authentication failed. when calling an REST API, what does the status code 403 stand for? Correct Answer Error, authentication succesfull, but not authorized when calling an REST API, what does the status code 404 stand for? Correct Answer Error, object defined in a path parameter is not found. when calling an REST API, what does the status code 409 stand for? Correct Answer Error, object cannot be updated because of an earlier update. when calling an REST API, what does the status code 500 stand for? Correct Answer Internal server error, an error occurred when processing the request. What is important for the User message of API error handling. Correct Answer The message should not contain any technical information while information then of what steps to take next.
when working with logs, where should the error log level be used for? Correct Answer to document errors that prevent some functions from running when working with logs, where should the error log level be used for? Correct Answer to document occurrences that will prevent the app from running in the future when working with logs, where should the info log level be used for? Correct Answer to document noteworthy events during normal operation. when working with logs, where should the debug log level be used for? Correct Answer to document a certain process step by step to diagnose a problem. when working with logs, where should the trace log level be used for? Correct Answer to document a process step by step to diagnose a problem, while providing even more information and details than debug. what does a log node stand for? Correct Answer It indicates the part of the app that the log message came from what are two of the most used log nodes? Correct Answer Microflow engine and ConnectionBus how can you gain additional information about a log message? Correct Answer by double clicking on it. what is a mendix error message? Correct Answer a error message written by developers of the platform what is a module error message? Correct Answer a error message written by a module developer
what is a library error message? Correct Answer a error message written by the developers of the libraries used by modules or java actions, these are very rare. what is a stack trace? Correct Answer a list of functions that were in memory when the error occurred where should you focus on in a stack trace? Correct Answer the first 10 to 20 lines what is the error called when a function misses a piece of data it needs to function. Correct Answer a null or null pointer error what is the error called when a user tries to access a flow or entity it isn't supposed to access Correct Answer a security error what is the error called when data calculation or comparison gives a unexpected result. Correct Answer a mathematical error what is the error called when your memory garbage collection cannot keep up with object generation Correct Answer a Java Out of Memory error What is considered a best practice around log nodes Correct Answer using Enumerations to store the log node names to ensure consistency Why should you register your log nodes in a after startup flow. Correct Answer to make sure that they are visible from the start, because they are dynamically generated what happens when an error occurs during an action and error handling is not implemented? Correct Answer The action is stopped and an error message is shown to the user
when working with expressions, what are considered relational expressions? Correct Answer < > = != when working with expressions, what are considered arithmetic expressions? Correct Answer * div + - when working with expressions, what is formatting and parsing used for? Correct Answer it is used to change data from one value type to another. When working with a lot of decisions in one flow, what is considered best practice. Correct Answer Use sub-flows to keep the parent flow manageable What origins can a list have? Correct Answer a retrieve, input parameter or list creation action. when is a list aggregation optimized? Correct Answer when its put directly after a retrieve containing a list. when does a list operation take a similar function as an xpath? Correct Answer when dealing with lists that only exist in memory what is the difference between a loop and list functions? Correct Answer list functions target the entire list, while loops target individual objects inside a list. when using list operations, what does Union do? Correct Answer it combines two lists while avoiding duplicates when using list operations, what does Intersect do? Correct Answer creates a list that contains all the elements present in both parameters given.
when using list operations, what does Subtract do? Correct Answer creates a list that contains all elements in the first parameter, without the elements that were also present in the second parameter. when using list operations, what does contains do? Correct Answer checks if every element in the first parameter is also present in the second parameter. when using list operations, what does Equals do? Correct Answer checks if both parameters have the same elements. when using list operations, what does Find do? Correct Answer Returns the first object which matches a given value when using list operations, what does Filter do? Correct Answer returns a list of all the objects that match a given value when using list operations, what does Sort do? Correct Answer sorts a list based on a given value when using list operations, what does Head do? Correct Answer returns the first element of a given list when using list operations, what does Tail do? Correct Answer Return a list of all the elements of a given list, except the first one. what is a rule? Correct Answer a microflow that cannot manipulate data, call web services, import xml or generate documents an always returns a boolean. Rules can be used in Decisions. What is a conditional debugger? Correct Answer a breakpoint that only triggers if certain conditions are met.