Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 21 discussion

Actual exam question from Microsoft's PL-300
Question #: 21
Topic #: 2
[All PL-300 Questions]

HOTSPOT -
You plan to create Power BI dataset to analyze attendance at a school. Data will come from two separate views named View1 and View2 in an Azure SQL database.
View1 contains the columns shown in the following table.

View2 contains the columns shown in the following table.

The views can be related based on the Class ID column.
Class ID is the unique identifier for the specified class, period, teacher, and school year. For example, the same class can be taught by the same teacher during two different periods, but the class will have a different class ID.
You need to design a star schema data model by using the data in both views. The solution must facilitate the following analysis:
✑ The count of classes that occur by period
✑ The count of students in attendance by period by day
✑ The average number of students attending a class each month
In which table should you include the Teacher First Name and Period Number fields? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Teacher fact -
Fact tables store observations or events, and can be sales orders, stock balances, exchange rates, temperatures, etc. A fact table contains dimension key columns that relate to dimension tables, and numeric measure columns.
Note: Star schema is a mature modeling approach widely adopted by relational data warehouses. It requires modelers to classify their model tables as either dimension or fact.

Box 2: Attendance fact -
Incorrect:
ג€"
Dimension tables describe business entities
the things you model. Entities can include products, people, places, and concepts including time itself. The most consistent table you'll find in a star schema is a date dimension table. A dimension table contains a key column (or columns) that acts as a unique identifier, and descriptive columns.
Reference:
https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Jukibabu
Highly Voted 2 years, 2 months ago
I'd say: Teacher's dim Class dim
upvoted 209 times
Hoeishetmogelijk
2 years ago
I agree completely. Period is an attribute of Class: "Class ID is the unique identifier for the specified class, period, teacher, and school year. For example, the same class can be taught by the same teacher during two different periods, but the class will have a different class ID."
upvoted 13 times
Regina18
11 months ago
The mean is an aggregate measure that can be calculated on the fact table. However, the dimension table can contain attributes that help you split or filter the average based on certain criteria. "You need to design a star schema data model using the data in both views. Your solution should facilitate the following analysis: ✑ The count of lessons that occur per period ✑ The count of students attending per period per day ✑ The average number of students attending a class each month" so I believe the model must have a fact table. but I see that your model only has dimension tables and it is not correct
upvoted 2 times
...
Hoeishetmogelijk
1 year, 11 months ago
I changed my mind. If there would be a Teacher Dimension, then this Teacher Dimension should have a relationship with the Class Dimension (not directly with the Attendence Fact). That is possible, but that would make it a Snowflake Schema. And what is asked for is a Star Schema. So both TeacherName and Period should be attributes of the Class Dimension.
upvoted 28 times
Ridderxxl
1 year, 8 months ago
But the teacher dim can just use the class id to link to the fact table. No need to have it go through the class dim
upvoted 6 times
semauni
1 year, 7 months ago
You could even add the teacher id to the class table, I don't see why that's not possible
upvoted 1 times
...
...
...
...
Ana_L
8 months, 2 weeks ago
Adding period number to Class dim will fill the dim with dups, since 1 class can have more than one period. That means that class dim can only be used when period is part of the requirement. In real life, this would not work. Actually, the best option is not even proposed. Class period is its own dimension and would connect to the fact. Dim period includes period number, period start time and period end time. Since this option is no available to us, that makes period number a degenerate dimension and it belongs in the fact table. See below: According to Ralph Kimball,[1] in a data warehouse, a degenerate dimension is a dimension key in the fact table that does not have its own dimension table, because all the interesting attributes have been placed in analytic dimensions. The term "degenerate dimension" was originated by Ralph Kimball.
upvoted 6 times
...
JudT
8 months ago
I will go for: Teacher Dim Attendance Fact
upvoted 23 times
...
GPerez73
2 years, 2 months ago
Agree with you
upvoted 5 times
...
...
olajor
Highly Voted 2 years, 2 months ago
Isn't it teacher dim and attendance fact?
upvoted 106 times
birsne
2 years, 2 months ago
I agree!
upvoted 7 times
...
Turmalino
1 year, 7 months ago
Isn't here an issue with the requirement: "The count of classes that occur by period"? A class can be available without attendance, or am I wrong?
upvoted 3 times
...
...
jaume
Most Recent 3 days, 3 hours ago
I would vote for "Teacher Dimension" and "Attendance Fact" as I would use "Teacher ID" for the fact table (it would be "Attendance fact" with details per period as class Id, teacher Id, Student Id, Period Number...) and I would place "Teacher details" (being Teached First Name and "Teacher Last Name") in a dim table (will label it as "Teacher dimension")
upvoted 1 times
...
TMOTM
2 months ago
Microsoft's questions often stray into areas where ambiguity is induced and thus multiple answers could work. Without the benefit of a test where you can elaborate on that, being limited to multiple choice, I reckon MSFT needs to tighten their questions and remove any ambiguity. It's pretty poor exam writing.
upvoted 8 times
...
FrobeniusHammer
2 months, 1 week ago
Proposed Solution: Class Dim Class Dim Reasoning: The problem particularly states that Class ID is an identifier for the class (name and subject), Period #, Teacher, and School Year. We know that Attendance will represent our fact table and relate to the Class Dimension containing those attributes. Teacher information can be contained in this Class Dimension -- the problem states itself that it is. We cannot create a Teacher dimension since we lack a primary key relating to a fact table (unless we also created a Teacher fact, which just creates additional tables without adding any new information to the model, which is unreasonable when the information can already be represented fully by the class dimension, as stated in the problem). If you tried to create a Teacher dim relating to the Class dim on Teacher ID, then it is no longer Star Schema.
upvoted 1 times
Ayman_Abdul_Kareem_1984
1 day, 12 hours ago
Why don't we create a Teacher dimension table and connect it to the Fact table using the Teacher ID? The teacher ID dimension can also include the teacher's first name and last name.
upvoted 1 times
...
FrobeniusHammer
2 months, 1 week ago
So we can create a model in Star Schema that fulfills all the requirements by creating a Class Dimension containing: Class ID, Class Name, Class Subject, ***Period #***, Teacher ID, ***Teacher First***, Teacher Last, and School Year with this Dimension relating to an Attendance fact table on Class ID as primary key containing: Class ID, Attendance Date, Student ID. Note that this model fulfills the 3 analytic requirements as well: ># Classes by period #: >>Count of classes grouped by Class[PeriodNumber] ># Students by period by day >>Count of rows grouped by AttendanceDate in the Attendance fact table >Avg students by class by month >>Count of rows in Attendance fact grouped by AttDate & ClassID, then averaged over a month period
upvoted 2 times
...
...
rcaliandro
3 months ago
I'd say teacher dim, class dim
upvoted 1 times
...
greenlever
6 months ago
Class dim Class dim
upvoted 1 times
...
bugproof
6 months, 2 weeks ago
I would say: 1. Class DIM 2. Class DIM The question says the "Class ID" column is a unique identifier for the specified class, PERIOD, TEACHER, and school year. So if I connect Class ID to the same column in an Attendance Fact Table and then use the period column from dimension to look at the count of class id from fact - this would give me a break down of period by attending classes.
upvoted 2 times
...
shazzzy
6 months, 3 weeks ago
I was wondering if there should be a dim.period, dim.teacher & dim.class. Then technically you would put Period number in the fact.attendence although I would personally call it Period Id, but there's nothing saying that the star schema uses 'id' and not 'number' as it's key column naming convention. If period is in dim.class it's not normalised properly. SO if that is the correct answer then I'm afraid Microsoft have messed up here.
upvoted 1 times
shazzzy
6 months, 3 weeks ago
The only issue is this: The count of classes that occur by period. We can't do this because we don't know the instances of what classes are assigned to what periods.... we would need another table for that and therefore, the answer must be a really SLOPPY Dim.Class for the Period.
upvoted 1 times
...
...
tarekff
7 months ago
i would choose Teacher Dim and Class dim The teacher's first name and period number are dimensional fields and therefore shouldn't reside in the fact table. Instead, they belong in dimension tables. in star schema, we have a fact table containing attendance data linked to other dimensions such as teacher and class. Consequently, both the teacher's first name and the period number should be included in dimension tables like the Teacher dimension and the Class dimension, respectively.
upvoted 1 times
...
Zach0308
7 months ago
100% confirmed, it's Teacher dim and Class dim. How come so many of these answers are wrong?
upvoted 2 times
...
55884
7 months, 4 weeks ago
I would say it's: Teacher First Name: Teacher Dim Period Name: Attendance Fact In this STAR Schema case, we only need to have 1 fact table. And since the question mentioned our purpose "to analyze ATTENDANCE at school". So, Fact Attendance should be the only fact table in the star schema (not Fact Teacher), since fact table is defined as "stores measures that measure the business". So, in able to analyze ATTENDANCE, we need to collect as much as measures of attendance data, which will be stored in attendance fact!
upvoted 7 times
...
Giuditta
8 months, 1 week ago
i'll say class dim and attendance fact. the question requires a star schema so we cannot have more than one fact and only dimension that relates to fact. our fact is attendance (because is the many side of the raltionship). and we have a class dimension. it will be possible to create a teacher dim, but it will be related to the class dim, and not tthe fact. so it will not be a star schema anymore but a snowflake. so we need to keep the tables as they are in the question. having only a class dimension (first dropdown) and a attendance fact (second one)
upvoted 5 times
AaronBI
4 weeks ago
This was my thought as well. Period dim could be created just like a date dim, relating to the attendance fact table. And teacher would be inside class dim, unless we took extra steps to create surrogate keys inside fact table. Just another example of a poorly written question.....
upvoted 1 times
...
...
rajukg
8 months, 2 weeks ago
Answer is correct. There will be two fact tables : Teacher fact and Attendance Fact in the model. (That is better model than creating the Teacher dimension).
upvoted 1 times
Elektrolite
8 months, 2 weeks ago
Teacher can't be a fact. One class has one teacher, one teacher can teach many classes.
upvoted 1 times
...
...
28485e1
8 months, 3 weeks ago
ChatGPT: Teacher dim, Class dim
upvoted 3 times
...
Ana_L
9 months ago
Class dim should include one record per class. But a given class can multiple periods. For example, class PL-300 can have period 1 and period 2. Having the period in the class dimension would brake the grain, unless we use Kimbal's grouping approach, where we could have 1 column in class dimension called period_group and could have class PL-300, period_group 1,2. But the question does not include this option. Another way to design it is to treat period as a degerate dimension, which means add period to the fact.
upvoted 1 times
Ana_L
9 months ago
It is not degerate dimension, it is degenerate dimension. According to Ralph Kimball, in a data warehouse, a degenerate dimension is a dimension key in the fact table that does not have its own dimension table, because all the interesting attributes have been placed in analytic dimensions. All interesting attributes related to period are in the class dimension.
upvoted 1 times
...
...
yafeci5971
9 months, 2 weeks ago
Agreed
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...