Advance domain Model Flashcards

1
Q

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.
A

Inherit the structure and behavior of an entity, so that all specializations can be used individually and in the same process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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
A

Two tables, one per entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.
A

The ID’s of Player and Staff will keep their own set and sequence and will equal the ID in the Person table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A 1-1 association is a HAS and inheritance is an IS type of relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.
A

It allows for better security and property configuration based on purpose.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the default value of the attribute DeleteAfterDownload?

false

true
A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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
A

On the file server located on the application server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.
A

If there are more Read than Write actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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
A

The speed of Read actions will increase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A list of ID’s in the Staff object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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.
A

both entities needs to be joined with the reference table and data transfer increases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

https://academy.mendix.com/link/modules/371/lectures/3022/4.11-Knowledge-Check

A

GOGO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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
A

Type changes and Structural changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

Extend domain model
Clean up model
Deploy and convert
Model the conversion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.
A

You might be confronted with unexpected and/or complex sync behavior during a next deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When localize is set to No, the date displayed in the client is based on the:

UTC value

Client time zone

User time zone

Project time zone
A

UTC value

17
Q

Localizing a DateTime attribute has effect on:

No effect in both client and application server

Both in client and application server

Application server handling

Client representation
A

Client representation

18
Q

If both the Project and User time zone are set, the value of the localized DateTime attribute displayed in the client is according to:

The User timezone

The Client timezone

The Project timezone

The UTC value
A

The Client timezone

19
Q

Jane in the Amsterdam time zone [UTC +2] selects 07/11/2020 in a date picker for a non-localized attribute. What will be the value stored in the database?

07/10/2020 10:00 PM

07/11/2020 02:00 AM

07/11/2020 12:00 PM

07/11/2020 12:00 AM
A

07/11/2020 12:00 AM

20
Q

Nick in the Amsterdam time zone [UTC +2] selects 07/11/2020 in a date picker for a non-localized attribute. What will be the date value if Nick would convert it into a string in a microflow using formatDateTime?

07/11/2020 12:00 PM

07/11/2020 02:00 AM

07/10/2020 10:00 PM

07/11/2020 12:00 AM
A

07/11/2020 02:00 AM