Advance domain Model Flashcards
Inheritance is used to:
Keep your domain model maintainable by inheriting the attributes and associations. Reuse attributes of an entity at other entities, so that you don’t need to add and maintain them multiple times. Inherit the history of an entity Inherit the structure and behavior of an entity, so that all specializations can be used individually and in the same process.
Inherit the structure and behavior of an entity, so that all specializations can be used individually and in the same process.
What is the result of generalizing the Player entity by the Person entity?
A single table containing the Player and Person attributes Two tables, one per entity Three tables, one per entity plus a join table
Two tables, one per entity
What will happen to the ID’s after generalizing the Player and Staff entities by the Person entity?
The ID’s of Player and Staff will keep their own set and sequence and will equal the ID in the Person table. The ID of the Person part of a Player or Staff will differ from the specialization part. There are no changes to the ID’s when inheriting. Same set and sequence for Player and Staff, the ID of person will differ.
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 is an IS and inheritance is an HAS type of relation. A 1-1 association and inheritance are both 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 IS type of relation.
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?
It is visually a better representation of the use case. Otherwise you cannot store a file on an amazon server. It allows for better security and property configuration based on purpose. It is a UML standard.
It allows for better security and property configuration based on purpose.
What is the default value of the attribute DeleteAfterDownload?
false true
False
Where are the file(s) or image(s) stored by default?
As binary in the contents of an attribute On the HD of the user On a dedicated Amazon file server On the file server located on the application server
On the file server located on the application server
When it is better to place Indexes?
If there are more Read than Write actions. If you expect it might improve the performance. If there are more Write than Read actions. If a user starts complaining.
If there are more Read than Write actions.
What happens when you apply an index?
The speed of Read actions will increase. The speed of Update and Inserts will increase. The speed of Write actions will increase. The speed of Read actions will decrease
The speed of Read actions will increase.
What is the result of the association in the image below?
A list of ID’s in the Staff object.
There is no impact on the Team and Staff objects.
A list of ID’s in the Team object.
A list of ID’s in both Team & Staff objects.
A list of ID’s in the Staff object.
The app performance is affected by a reference set both because:
the join table must be queried as well. both entities needs to be joined with the reference table and data transfer increases. you cannot store additional information in a reference set both. there is no impact on performance, this depends only on how the association is queried.
both entities needs to be joined with the reference table and data transfer increases.
https://academy.mendix.com/link/modules/371/lectures/3022/4.11-Knowledge-Check
GOGO
What type of domain model changes can have an impact on the data in the database?
Type changes and Structural changes Structural changes and Project changes Domain model changes and Type changes Module changes and Project changes
Type changes and Structural changes
What are the main stages of data conversion? (multiple answers are correct)
Extend domain model
Skip them all and just do it
Search for good conversion tables
Clean up model
Deploy and convert
Sing a nice song
Model the conversion
Extend domain model
Clean up model
Deploy and convert
Model the conversion
Why is it a best practice to redeploy your app after cleaning up the model?
Obsolete data in the database cannot have security applied and thus creating a security breach. It is not considered a best practice, only junior developers benefit from it. You might be confronted with unexpected and/or complex sync behavior during a next deployment. One of the MVP’s came up with this idea and has been adopted community wide, but nobody really knows why.
You might be confronted with unexpected and/or complex sync behavior during a next deployment.