Docsity

GMetrix Data Modeling Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
GMetrix Data Modeling Ultimate Exam
**Question 1.** Which notation uses “crow’s foot” symbols to represent relationship cardinality?
A) IDEF1X
B) UML
C) Information Engineering (IE)
D) ERwin
Answer: C
Explanation: The Information Engineering (IE) methodology, often called Crow’s Foot notation, uses
three-pronged symbols to denote “many” in relationships.
**Question 2.** In a conceptual data model, which of the following is typically omitted?
A) Business entities
B) Primary keys
C) High‑level relationships
D) Business rules
Answer: B
Explanation: Conceptual models focus on business concepts and relationships; they do not define
technical details such as primary keys.
**Question 3.** Which abstraction level is concerned with datatype selection, indexes, and storage
parameters?
A) Conceptual model
B) Logical model
C) Physical model
D) Business model
Answer: C
Explanation: The physical model translates logical definitions into database‑specific
implementations, including datatypes, indexes, and storage options.
**Question 4.** Which naming convention uses capitalized words without separators?
A) snake_case
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c

Partial preview of the text

Download GMetrix Data Modeling Ultimate Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which notation uses “crow’s foot” symbols to represent relationship cardinality? A) IDEF1X B) UML C) Information Engineering (IE) D) ERwin Answer: C Explanation: The Information Engineering (IE) methodology, often called Crow’s Foot notation, uses three-pronged symbols to denote “many” in relationships. Question 2. In a conceptual data model, which of the following is typically omitted? A) Business entities B) Primary keys C) High‑level relationships D) Business rules Answer: B Explanation: Conceptual models focus on business concepts and relationships; they do not define technical details such as primary keys. Question 3. Which abstraction level is concerned with datatype selection, indexes, and storage parameters? A) Conceptual model B) Logical model C) Physical model D) Business model Answer: C Explanation: The physical model translates logical definitions into database‑specific implementations, including datatypes, indexes, and storage options. Question 4. Which naming convention uses capitalized words without separators? A) snake_case

B) kebab-case C) PascalCase D) camelCase Answer: C Explanation: PascalCase capitalizes the first letter of each word and concatenates them (e.g., CustomerOrder). Question 5. A table that cannot exist without a parent table is called a ____ entity. A) Strong B) Weak C) Independent D) Composite Answer: B Explanation: Weak entities depend on a parent (owner) entity for their existence and primary key composition. Question 6. An attribute that must always contain a value is described as: A) Nullable B) Optional C) Required D) Defaulted Answer: C Explanation: Required attributes cannot be null; they must have a value for every record. Question 7. Which key type is generated by the DBMS and has no business meaning? A) Natural key B) Candidate key C) Surrogate key D) Alternate key

Question 11. A table that references itself to represent a manager‑employee hierarchy uses a ____ relationship. A) Recursive B) Many‑to‑many C) One‑to‑one D) Weak Answer: A Explanation: A recursive relationship allows rows in the same table to be related to other rows in that table. Question 12. In a supertype/subtype design, which of the following is true? A) Subtype tables must contain all attributes of the supertype. B) The supertype key is never propagated to subtypes. C) Subtypes inherit the primary key of the supertype. D) Only one subtype can exist for a given supertype row. Answer: C Explanation: Subtype tables usually share the supertype’s primary key, ensuring a one‑to‑one relationship. Question 13. Which normal form eliminates repeating groups and ensures atomic values? A) 1NF B) 2NF C) 3NF D) BCNF Answer: A Explanation: First Normal Form (1NF) requires each column to hold indivisible (atomic) values and eliminates repeating groups. Question 14. A table that contains a non‑key attribute dependent on another non‑key attribute violates which normal form?

A) 1NF

B) 2NF

C) 3NF

D) 4NF

Answer: C Explanation: Transitive dependencies (non‑key → non‑key) are disallowed in Third Normal Form. Question 15. Which form of denormalization is commonly used to improve query performance in a data warehouse? A) Adding redundant columns B) Removing primary keys C) Splitting tables into many small tables D) Enforcing strict 3NF Answer: A Explanation: Denormalization often adds redundant data (e.g., pre‑aggregated columns) to reduce join complexity for read‑heavy workloads. Question 16. A cascading delete is configured on a foreign key to: A) Prevent deletion of parent rows B) Automatically delete related child rows C) Set child foreign keys to NULL D) Raise an error if child rows exist Answer: B Explanation: Cascading delete propagates the delete action from the parent to all dependent child rows. Question 17. In a star schema, the central table that stores measurable events is called a: A) Dimension table B) Fact table C) Bridge table

Question 21. Forward engineering in data modeling primarily produces: A) ER diagrams from source code B) DDL scripts from a visual model C) Data dictionaries from existing tables D) Business requirement documents Answer: B Explanation: Forward engineering generates database creation scripts (DDL) based on the designed model. Question 22. Reverse engineering a database results in: A) A set of stored procedures B) A physical data model only C) A visual model representing the existing schema D) Automatic data migration scripts Answer: C Explanation: Reverse engineering reads a live database and produces a diagrammatic model of its structure. Question 23. Which SQL datatype is best suited for storing monetary values with two decimal places? A) FLOAT B) INT C) DECIMAL(10,2) D) VARCHAR Answer: C Explanation: DECIMAL with scale 2 stores exact numeric values, ideal for currency. Question 24. A CHECK constraint that enforces a column’s values to be either ‘M’, ‘F’, or ‘U’ is an example of:

A) Domain constraint B) Referential constraint C) Unique constraint D) Primary key constraint Answer: A Explanation: Domain constraints limit permissible values for a column, which is what a CHECK does. Question 25. When mapping source data to a target model, the process of aligning source fields with target attributes is called: A) Data profiling B) Data cleansing C) Data mapping D) Data archiving Answer: C Explanation: Data mapping defines how each source element corresponds to a target element during integration. Question 26. Which of the following best describes a weak entity’s primary key? A) A single surrogate column B) A composite key that includes the parent’s primary key C) An automatically generated GUID D) No primary key is required Answer: B Explanation: Weak entities use a composite key that combines their own partial key with the parent’s primary key. Question 27. In IDEF1X notation, a dashed line between two entities indicates: A) Identifying relationship B) Non‑identifying relationship C) Many‑to‑many relationship

Explanation: Junk dimensions store miscellaneous, often binary, attributes together. Question 31. Which normal form addresses multi‑valued dependencies? A) 1NF B) 2NF C) 3NF D) 4NF Answer: D Explanation: Fourth Normal Form (4NF) eliminates multi‑valued dependencies that can cause redundancy. Question 32. In a logical data model, which of the following is typically defined? A) Index fill factor B) Table partitions C) Attribute domains and keys D) Physical storage locations Answer: C Explanation: Logical models capture business‑level definitions such as attributes, domains, and keys, independent of physical storage. Question 33. Which of the following best describes a one‑to‑one (1:1) relationship? A) Each parent can have many children, but each child has only one parent. B) Both sides can have multiple related rows. C) Each row in both tables relates to at most one row in the other table. D) One side is optional, the other mandatory. Answer: C Explanation: In a 1:1 relationship, a row in Table A can be linked to at most one row in Table B, and vice versa.

Question 34. When converting a many‑to‑many relationship to two one‑to‑many relationships, the associative entity’s primary key is typically: A) A single surrogate key only B) The composite of the two foreign keys C) The same as the primary key of one parent table D) An auto‑incrementing integer unrelated to the parents Answer: B Explanation: The associative (junction) table usually uses a composite primary key consisting of the two foreign keys. Question 35. Which of the following is an advantage of using snake_case for column names? A) Compatibility with Java class naming conventions B) Easier readability in SQL statements without quoting C) Enforces case‑sensitivity on all platforms D) Guarantees uniqueness across schemas Answer: B Explanation: Snake_case (e.g., order_total) avoids the need for quoting identifiers that contain capitals in many DBMSs. Question 36. In a dimensional model, a “role‑playing” dimension is used when: A) The same dimension serves multiple fact tables with different contexts. B) A dimension contains only surrogate keys. C) The dimension is slowly changing. D) The dimension stores aggregated data. Answer: A Explanation: Role‑playing dimensions, like a Date dimension used for OrderDate, ShipDate, etc., are reused in different roles. Question 37. Which constraint ensures that a column’s values are unique across the entire table, but allows NULLs?

D) Cascade the delete to grand‑child tables. Answer: C Explanation: RESTRICT blocks the parent delete operation when related child rows exist. Question 41. In a normalized logical model, which of the following is true about repeating groups? A) They are stored as arrays. B) They are removed by moving them to a separate table. C) They are represented with a JSON column. D) They are allowed in 2NF. Answer: B Explanation: Normalization eliminates repeating groups by creating a related table, ensuring atomicity. Question 42. Which of the following best describes a “composite attribute” in an ER diagram? A) An attribute that can be derived from other attributes. B) An attribute that consists of multiple sub‑attributes. C) An attribute that is a foreign key. D) An attribute that serves as a primary key. Answer: B Explanation: Composite attributes are made up of smaller, simpler attributes (e.g., Address → Street, City, Zip). Question 43. In a physical model, which of the following is NOT typically specified? A) Index type (B‑tree, hash) B) Column default values C) Business process flow D) Storage engine (e.g., InnoDB) Answer: C Explanation: Business process flow belongs to higher‑level analysis, not the physical data model.

Question 44. Which of the following is a characteristic of a “full outer join” in SQL? A) Returns only rows with matching keys in both tables. B) Returns rows from the left table only. C) Returns rows from the right table only. D) Returns all rows from both tables, matching where possible and padding with NULLs otherwise. Answer: D Explanation: A full outer join includes every row from both sides, using NULLs for non‑matching columns. Question 45. A “role‑playing” dimension is often implemented by: A) Creating multiple physical tables with identical structures. B) Using a single dimension table and aliasing it in queries. C) Adding a surrogate key for each role. D) Merging all roles into one massive fact table. Answer: B Explanation: The same dimension table can be referenced multiple times in a star schema, each with a different role name. Question 46. Which of the following is true about a many‑to‑one relationship? A) It is the same as a one‑to‑many relationship, just viewed from the opposite side. B) It requires a junction table. C) It cannot be expressed in relational databases. D) It always uses a composite primary key. Answer: A Explanation: A many‑to‑one relationship from Table A to Table B is equivalent to a one‑to‑many from Table B to Table A. Question 47. In IDEF1X, a solid line with a “crow’s foot” at the child end indicates: A) Optional relationship

D) Replace a fact table. Answer: B Explanation: Junk dimensions consolidate multiple miscellaneous attributes (often Boolean) into a single dimension. Question 51. Which of the following is a primary purpose of data profiling before modeling? A) Generating DDL scripts automatically. B) Identifying data quality issues such as null rates and value distributions. C) Creating a star schema layout. D) Defining primary keys for all tables. Answer: B Explanation: Data profiling examines source data to uncover quality problems, guiding modeling decisions. Question 52. In a logical model, an attribute with a domain of “‘Y’, ‘N’” is best implemented as: A) CHAR(1) with a CHECK constraint B) BOOLEAN data type (if supported) C) VARCHAR(5) without constraints D) INTEGER with default 0 Answer: A Explanation: CHAR(1) with a CHECK constraint (CHECK (col IN ('Y','N'))) explicitly enforces the allowed values. Question 53. Which of the following statements about “partial dependency” is correct? A) It occurs when a non‑key attribute depends on part of a composite primary key. B) It occurs when a non‑key attribute depends on another non‑key attribute. C) It is allowed in 2NF but not in 3NF. D) It is the same as a transitive dependency. Answer: A

Explanation: Partial dependencies violate 2NF because the attribute depends only on a subset of a composite key. Question 54. When a fact table contains a measure that is only additive across time but not across products, it is classified as: A) Additive B) Semi‑additive C) Non‑additive D) Derived Answer: B Explanation: Semi‑additive measures can be summed over some dimensions (e.g., time) but not others (e.g., product). Question 55. Which of the following is a reason to choose a surrogate key over a natural key? A) To make the key meaningful to end users. B) To avoid key changes when business attributes are updated. C) To reduce storage space compared to integer keys. D) To enforce referential integrity automatically. Answer: B Explanation: Surrogate keys remain stable even if the business attribute (natural key) changes, simplifying maintenance. Question 56. In a physical model, which index type is most appropriate for columns used in equality searches and joins? A) Bitmap index B) B‑tree index C) Full‑text index D) Spatial index Answer: B Explanation: B‑tree indexes are optimized for equality and range queries, making them ideal for join columns.

A) Recursive self‑referencing foreign key B) Many‑to‑many junction table C) Composite primary key on level columns D) Separate tables for each level Answer: A Explanation: A self‑referencing foreign key enables each row to point to its parent, representing hierarchical relationships. Question 61. Which of the following is true about a “candidate key”? A) It must be the primary key. B) It can be used as a foreign key in other tables. C) It can contain null values. D) It is never unique. Answer: B Explanation: Any candidate key is unique and can serve as a primary key or be referenced as a foreign key. Question 62. In a normalized logical model, which form eliminates multi‑valued attributes? A) 1NF B) 2NF C) 3NF D) 4NF Answer: D Explanation: Fourth Normal Form removes multi‑valued dependencies, ensuring that no attribute set repeats independently. Question 63. Which of the following best describes a “role‑playing” dimension’s implementation in a star schema? A) Multiple physical tables with identical structures. B) One physical table referenced multiple times with different foreign keys.

C) A view that unions several dimension tables. D) A dimension that contains both keys and measures. Answer: B Explanation: The same dimension table can be joined to a fact table multiple times, each join representing a different role. Question 64. Which SQL clause would you use to prevent duplicate rows from being returned in a query? A) GROUP BY B) DISTINCT C) HAVING D) ORDER BY Answer: B Explanation: DISTINCT removes duplicate result rows. Question 65. In a dimensional model, which type of slowly changing dimension tracks changes by adding new rows and preserving previous rows? A) Type 0 B) Type 1 C) Type 2 D) Type 3 Answer: C Explanation: Type 2 SCD creates a new row for each change, preserving historical data. Question 66. Which of the following is a primary benefit of using a surrogate key in a bridge table? A) It makes the bridge table readable for end users. B) It reduces the number of foreign key columns needed. C) It allows the bridge table to have its own attributes without affecting the relationship. D) It eliminates the need for primary keys.