Docsity

Mendix Advanced Questions with Complete Solutions, Exams of Advanced Calculus

Toggle sidebar
bg1
Mendix Advanced Questions with Complete
Solutions
Inheritance is used to: - Correct answer Inherit the structure and behavior
of an entity, so that all specializations can be used individually within the
same process.
What is the result of generalizing the Player entity by the Person entity? -
Correct answer Two tables, one per entity
What will happen to the ID's after generalizing the Player and Staff entities
by the Person entity? - Correct answer The ID's of Player and Staff will
keep their own set and sequence and will equal the ID in the Person table.
Which statement is correct?:
- A 1-1 association and inheritance are both an IS type of relation.
- A 1-1 association is an IS and inheritance is an HAS type of relation.
- A 1-1 association is a HAS and inheritance is an IS type of relation.
- A 1-1 association and inheritance are both an HAS type of relation. -
Correct answer - A 1-1 association is a HAS and inheritance is an IS type
of relation.
Why is it a best practice to create a specialization of the FileDocument and
Image entities? - Correct answer It allows for better security and property
configuration based on purpose.
What is the default value of the attribute DeleteAfterDownload? - Correct
answer false
Where are the file(s) or image(s) stored by default? - Correct answer On
the file server located on the application server
When it is better to place Indexes? - Correct answer If there are more Read
than Write actions.
What happens when you apply an index? - Correct answer The speed of
Read actions will increase.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Mendix Advanced Questions with Complete Solutions and more Exams Advanced Calculus in PDF only on Docsity!

Mendix Advanced Questions with Complete

Solutions

Inheritance is used to: - Correct answer Inherit the structure and behavior of an entity, so that all specializations can be used individually within the same process. What is the result of generalizing the Player entity by the Person entity? - Correct answer Two tables, one per entity What will happen to the ID's after generalizing the Player and Staff entities by the Person entity? - Correct answer The ID's of Player and Staff will keep their own set and sequence and will equal the ID in the Person table. Which statement is correct?:

  • A 1-1 association and inheritance are both an IS type of relation.
  • A 1-1 association is an IS and inheritance is an HAS type of relation.
  • A 1-1 association is a HAS and inheritance is an IS type of relation.
  • A 1-1 association and inheritance are both an HAS type of relation. - Correct answer - A 1-1 association is a HAS and inheritance is an IS type of relation. Why is it a best practice to create a specialization of the FileDocument and Image entities? - Correct answer It allows for better security and property configuration based on purpose. What is the default value of the attribute DeleteAfterDownload? - Correct answer false Where are the file(s) or image(s) stored by default? - Correct answer On the file server located on the application server When it is better to place Indexes? - Correct answer If there are more Read than Write actions. What happens when you apply an index? - Correct answer The speed of Read actions will increase.

What is the result of the association in the image below? - Correct answer A list of ID's in the Staff object. The app performance is affected by a reference set (both) because: - Correct answer Both entities needs to be joined with the reference table and data transfer increases. Adrian wants to select a staff member for a team. Which domain model would be suitable? A: Staff * -> * Team B: Staff * <- * Team - Correct answer B What type of domain model changes can have an impact on the data in the database? - Correct answer Type changes and Structural changes What are the four stages of data conversion? (multiple answers are correct)

  • Correct answer - Deploy and convert
  • Clean up model
  • Model the conversion
  • Extend domain model Why is it a best practice to redeploy your app after cleaning up the model?
  • Correct answer You might be confronted with unexpected and/or complex sync behavior during a next deployment. What does the function reverse() do? - Correct answer It changes the direction in which the association is queried. What is the best naming for a self-reference where the buddy is referenced by an apprentice? - Correct answer Apprentice_Buddy What is the correct XPath to retrieve the goals of the buddy of an apprentice? - Correct answer [SoccerSquad.Goal_Player/SoccerSquad.Player/SoccerSquad.Apprentice_ Buddy [reversed()] = '[%CurrentObject%]'] When localize is set to No, the date displayed in the client is based on the:
  • Correct answer UTC value

memory, a retrieve by association will automatically result in a database retrieve. Is there ever a reason to retrieve an object from database instead of over association? - Correct answer Yes, in cases where constraints other than a single association are applicable or where stored database values are required. In which microflow will the combination retrieve and aggregation be optimized? - Correct answer A (aggregated list not used later in flow) What is an important rule to keep in mind when creating effective indexes?

  • Correct answer The index should have the same order of attributes defined as in search and retrieve queries in order to be available for queries. Which of the following is NOT a benefit that XPath provides to the Mendix Platform? - Correct answer XPath can be used to automatically generate pages and widgets to show data on. What does the following XPath query return? //Product [OrderManagement.OrderLine_Product/OrderManagement.OrderLine /OrderManagement.OrderLine_Order != $Order] - Correct answer All the products that are ordered at least once, but not on the affected order. This XPath query can be optimized as follows: [OrderManagement.OrderLine_Product /OrderManagement.Product/MinimalStock > 50] [OrderManagement.OrderLine_Product /OrderManagement.Product/Status = 'Active']] - Correct answer [OrderManagement.OrderLine_Product/OrderManagement.Product [MinimalStock > 50 and Status = 'Active'] ] The request as result of this XPath can be optimized as follows: [OrderManagement.Stock_Product /OrderManagement.Product/Status = 'Deactivated' or OrderManagement.Stock_Supplier /OrderManagement.Supplier/Active = false()] - Correct answer The request can be optimized by splitting it into different requests and joining the results.

Which of the following statements is NOT an XPath best practice with regards to optimal performance? - Correct answer Do not use XPath when you can use SQL instead. Consider a situation in which there is an entity called Request with an attribute status that has three values: Draft, Submitted, and Approved. There are three user roles: Administrator, Customer, and Employee. The Customer user role is granted the Customer module role. The only access rule configured is read/write access for the Customer with the XPath [Status = Draft] applied. What would a user with the Customer user role see on a page with a data grid without any additional XPath constraints? - Correct answer All the requests in the Draft status. Consider the exact same situation as above. What would Admin users see? - Correct answer No results would be returned. Consider the same situation again. What would happen if you granted Admin users access to a page with the Request entity in Studio Pro? - Correct answer Studio Pro would detect an error and prevent a deployment. How does the platform use entity access XPaths to enforce security? - Correct answer The XPaths are added to all the relevant database retrieves. Where are entity access restrictions applied? - Correct answer On relevant database retrieves. Which of the following best describes how the Mendix platform applies entity access? - Correct answer The platform only grants the access explicitly defined in the entity access rules. In this domain model, assume that House is a specialization of Building: - Correct answer Admin users will be able to read the SquareFoot attribute in data views for Buildings and read and write in data views for Houses. Referring to the same domain model as was used in question #2, if we create a page with a data grid containing Houses and autogenerate a House_NewEdit page, which of the following statements is FALSE for an

One of your XPath queries that use the contains() function is not performing very well. What is the most likely root cause? - Correct answer You are using the function on a string that is set to 'unlimited'. When using the 'and' operator: - Correct answer The 'and' operator will give a different result based on how you write the XPath query. The not() function: - Correct answer Generates a slow query. Which statement best describes how you would retrieve all related objects in the most optimal way? - Correct answer When comparing to a related entity, it is enough to stop at the association to get the most optimal query. When should you apply an index? - Correct answer You should apply indexes on attributes that are used in searches when the performance of your app is not up to par. What is normalization? - Correct answer The removal of duplicate data from your domain model. Why would you want to do normalization? - Correct answer To remove duplicate data from your app so you can avoid insertion, update, and deletion anomalies. What is denormalization? - Correct answer The duplication of information in several entities to increase performance. What set-up items do you need to have in place before creating your REST methods? Choose one of the below. - Correct answer An entity with attributes, a Published REST service and a resource in the Published REST service What does a GET method do? Choose one of the below - Correct answer Allows information sharing between my app and other apps, where the other system can determine when to retrieve that shared information. How can I test my POST method? Choose one of the below. - Correct answer Find the Location property of my published REST service, open

that URL in your browser, go to the POST button of your collection and add a message. How can you get a response that shows if the POST method was executed correctly including the provided data? Choose one of the below. - Correct answer 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. What type of input parameter do you need for the delete microflow belonging to the delete method? - Correct answer A unique ID to be able to retrieve the object to delete. Which of the following is a field of a Mendix log message? - Correct answer Log node

  • Correct answer In the console What is the difference between log messages in Studio Pro and log messages in the Developer portal? - Correct answer The log messages in the Developer Portal have a Source field. Where do log messages come from? - Correct answer Log messages are written by the person who created the functionality. When the log level is set to Error, messages from which other log level will also show up in your logs? - Correct answer Critical Which log level is used to warn about unexpected behavior that doesn't need immediate action? - Correct answer Warning Which statement about log nodes is true? - Correct answer Log nodes are dynamically registered on application startup. Which of the following statements about log levels is true? - Correct answer Messages at the Info level occur during normal operation of your app. Who is responsible for writing the error messages that your application generates? - Correct answer The developer.

You have to determine how many customers are in the database and find that there are at least a couple thousand. How do you handle this? - Correct answer Retrieve all the customers at once and use an aggregate list activity to count them. Because this is an optimized query on the database, it will be very light and safe to use, even for big lists. What does the List Operation tail do? - Correct answer It grabs all elements in the list except the first element. When would you typically use a List Operation? - Correct answer - To avoid complex XPaths.

  • When you are working with objects that only exist in memory.
  • When creating report data to view in chart widgets. You've created a microflow that contains a loop. This loop uses the same logic as a microflow you have already built, so you decide to call this microflow as a sub-microflow inside the loop so that you can reuse the functionality. What do you check before doing this? - Correct answer - If there are retrieve activities in the sub-microflow for data you already have available in the main microflow, check whether it can be passed along as an input parameter instead.
  • You make sure that there are no commits in the sub-microflow, since it is not good for your application to commit inside of a loop.
  • If the sub-microflow uses a return value, you check whether it is really needed. Your application contains a microflow that calls three sub-microflows. Each of these sub-microflows does a retrieve from the database on the same entity. Should you change this? - Correct answer Yes, you should do the retrieve in the main microflow and then pass it along to the three sub- microflows as an input parameter. Which statement about rules is true? - Correct answer A rule can only be called from within a decision. What is a good reason to use a sub microflow? - Correct answer - To use it as a 'get or create' microflow.
  • To reuse the same bit of logic in multiple microflows.
  • To increase readability of large microflows.

To which of the following errors types does the built-in consistency checker in the Modeler alert you? - Correct answer Technical issues in your model. Which of the following statements is true? - Correct answer The output of log nodes can be used to isolate problems and place breakpoints in a smarter way. When will this microflow break? - Correct answer Each time the breakpoint is passed. Can you pause a microflow only when certain conditions are met? - Correct answer Yes, by adding a conditional breakpoint. When you're creating a new microflow and you have to create the logic, what is the recommended place to start? - Correct answer At the end of the microflow Why are we creating sub-microflows? - Correct answer To be able to reuse the functionality and have a microflow with dedicated functionality What happens when Mendix is not able to finish the transaction successfully and there is no Error Handling implemented? - Correct answer The transaction is stopped and Mendix will show an error message in the user interface. You need to create error handling for JAVA actions because: - Correct answer Mendix is not able to catch errors that occur in a JAVA action by default. Error handling can occur in microflows that are triggered by: - Correct answer Both, a user and the system It is necessary to create a log message and a user message because: - Correct answer The log message will not appear in the frontend. Which of the following options needs to be selected to fix an error indicating that the there is no object type selected for the Courseplanning import template? - Correct answer Select the missing object in the properties of the template.

  • Simple Menu Bar - Correct answer Tab Container The Menu Bar is limited to how many levels deep? - Correct answer Two The Navigation Tree is limited to how many levels deep? - Correct answer Three The Simple Menu Bar is limited to how many levels deep? - Correct answer One Which is not a way we can create a typographic hierarchy?
  • Color
  • Weight
  • Size
  • Images - Correct answer Images Which of the following is NOT a benefit of good typography hierarchy?
  • Ease of navigation
  • Keeps cost low
  • Improves usability
  • Enhances readability - Correct answer Keeps cost low If you wanted to provide feedback to your users that they had entered their date of birth in the wrong format, which visual cue would be best suitable? - Correct answer We're sorry, but you need to enter your date of birth in mm/dd/yyyy format Why should you use familiar UI patterns? - Correct answer To help your users feel more at home If you wanted your users to enter a multi-lined delivery note to go with their order, what widget would you use? - Correct answer Textarea Which one of the following is a way to help make your pages smarter? - Correct answer Conditional visibility What does the helper class ".hidden-xs" do? - Correct answer Hides content on the phone.

What are the three triggers options of widget events? - Correct answer On- enter, on-change and on-leave By using conditional editability you can change elements to be either? - Correct answer Editable or read-only If I had a device with a screen width of 800px which column class prefix would be used? - Correct answer col-sm-* The pre-processor Sass helps with what? - Correct answer Maintaining your CSS stylesheets Which of the following are AtlasUI components? - Correct answer Page Templates, Navigation Layouts and Building Blocks What do you need to take into account when using Sass? - Correct answer You need a compilation tool Which of the following does the Mendix AtlasUI Framework NOT enable? - Correct answer Documentation for your microflows To start customizing your Mendix application you should: - Correct answer Start with using and customizing Mendix AtlasUI Submit Answers