Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free CIW v5 Database Design Specialist 1D0-541 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 13 Total 128 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Introduction to Databases

Skill tested: Selects a database approach that supports shared, consistent application data.

A regional equipment-rental company currently stores customer and reservation details in separate spreadsheet files at each branch. Staff frequently create duplicate customer records, and head office cannot reliably see current availability across locations. Branches need to share data through a web application, and managers require consistent updates without reconciling files manually. The company has limited database administration expertise and wants to avoid designing a specialized storage engine. Which approach best addresses the underlying problem?

Correct Answer: D. Use a DBMS to manage a shared database with controlled access and centralized updates.
Explanation:

A DBMS provides managed, shared data storage and supports controlled concurrent access, consistent updates, and centralized administration. These capabilities directly address duplicate records and the lack of current cross-branch availability. Emailing spreadsheets or reconciling flat files preserves the causes of inconsistency and introduces delays. Splitting data into more spreadsheets does not provide reliable integrity or concurrency controls, and naming conventions are not a substitute for database relationships.

Question 2

New Single answer

Topic: Relational Database Fundamentals

Skill tested: Applies entity relationships and referential integrity to a relational schema.

A training provider is designing a relational database for courses and enrollments. Each course can have many learners, and each learner can enroll in many courses. The system must record the date and status of each enrollment, prevent an enrollment from referring to a nonexistent learner or course, and avoid storing a repeating list of courses in a learner row. Which design best meets these requirements?

Correct Answer: C. Create Learner and Course tables and an Enrollment table with learner and course foreign keys, using their pair as a composite key.
Explanation:

A many-to-many relationship is represented with an associative Enrollment relation. Foreign keys from Enrollment to Learner and Course enforce referential integrity, while enrollment date and status belong to the association itself. A composite key can prevent duplicate enrollment pairs when the business rules permit only one current association per learner and course. Comma-separated identifiers are not atomic values and cannot be protected by ordinary foreign keys. Per-course learner tables proliferate and complicate queries, while combining both entities creates duplication and unreliable keys.

Question 3

New Single answer

Topic: Database Planning

Skill tested: Uses requirements and workload criteria to select a suitable DBMS and interface.

A small subscription business is documenting requirements before choosing database software. Its web application will support simultaneous customer updates, financial reports, and staff queries; account and payment data must remain consistent, and employees need different levels of access. The team can use standard SQL and has a modest operating budget, but it lacks capacity to build and maintain a database engine. Which planning decision should the team make first when evaluating candidate DBMS products?

Correct Answer: C. Compare candidates against documented data, transaction, security, interface, and operational requirements.
Explanation:

DBMS selection should follow documented requirements, including transaction behavior, concurrent access, security, reporting, interfaces, operating needs, and cost. Comparing candidates against those criteria helps establish whether a product can meet the workload and governance needs without overbuying. Choosing by price alone can leave essential requirements unmet. Export convenience does not establish database suitability, and familiarity with one programming language is only one interface consideration, not a substitute for workload and operational evaluation.

Question 4

New Single answer

Topic: Overview of Database Design Methodology

Skill tested: Separates conceptual entities and relationships from implementation details.

A community arts organization is replacing a collection of registration files with a database. At the start of design, staff describe participants, workshops, instructors, and registrations, but they do not yet know which DBMS will be used. They need to review whether the model captures business rules, such as a workshop having one instructor and many registrations, before deciding on table-specific data types or indexes. What should the design team produce at this stage?

Correct Answer: A. A conceptual ER model showing the principal entities, relationships, and applicable business constraints.
Explanation:

Conceptual database design captures the important entities, relationships, and business rules without committing to a specific DBMS or physical storage implementation. An ER model lets stakeholders validate the meaning and scope of the data early. Physical data types and indexes belong to later design decisions. Screens may help elicit requirements but do not provide a complete data model, and SQL queries written against assumed tables prematurely commit to an unvalidated structure.

Question 5

New Single answer

Topic: Normalization

Skill tested: Identifies partial dependencies and decomposes relations to achieve second normal form.

An order-entry table has the composite primary key (OrderID, ProductID) and includes OrderDate, ProductName, Quantity, and UnitPriceAtSale. OrderDate depends only on OrderID, while ProductName depends only on ProductID; Quantity and UnitPriceAtSale describe the particular product on the order. The design team wants to remove update anomalies without losing the recorded sale price. Which change is the most appropriate step toward second normal form?

Correct Answer: C. Move OrderDate to an Order relation and ProductName to a Product relation, retaining order-line attributes with the composite key.
Explanation:

Second normal form requires first normal form and removal of non-key attributes that depend on only part of a composite candidate key. OrderDate belongs with OrderID, and ProductName belongs with ProductID; the order-line relation retains attributes dependent on the full pair. UnitPriceAtSale must remain on the order line because it records the price for that transaction, which may differ from a product's current standard price. Moving it to Product would lose historical sale information. Product names are not reliable keys, and per-order tables are not a sound relational decomposition.

Question 6

New Multiple answers

Topic: Logical Database Design

Skill tested: Defines keys and constraints that preserve entity identity and valid relationships.

A library consortium is reviewing a logical model before implementing it. Each member has a stable MemberID, but two members may share a name and contact address. Each loan must reference one existing member and one existing copy; a copy can have many historical loans but no more than one active loan at a time. The model must also prevent a loan from having an end date earlier than its start date. Which three constraint decisions best represent these rules? Select THREE.

Correct Answer: A. Apply a check constraint requiring the loan end date to be null or not earlier than the start date.; D. Use MemberID as the primary key of Member rather than relying on member name or address.; E. Make Loan.MemberID and Loan.CopyID foreign keys referencing Member and Copy.
Explanation:

MemberID is a stable identifier and avoids treating nonunique descriptive data as an entity key. Foreign keys from Loan ensure that each referenced member and copy exists. A check constraint can enforce the date-order rule while allowing a null end date for an active loan. Making CopyID unique across all loan history would incorrectly prohibit later loans of the same copy; the active-loan restriction must apply to active records, using an implementation-appropriate constraint or other enforcement. Comma-separated values prevent proper relational integrity.

Question 7

New Single answer

Topic: Physical Database Design

Skill tested: Chooses a secondary index based on query predicates and update tradeoffs.

An online catalog stores millions of Book rows. A frequent staff query filters by PublisherID and then sorts the matching titles by Title; PublisherID is not unique, and the primary key is BookID. Insertions and title edits occur throughout the day, so the team wants to improve this query without creating many redundant indexes. Which physical design choice is most appropriate to evaluate first?

Correct Answer: A. Create a secondary index on PublisherID and Title in that order.
Explanation:

A composite secondary index beginning with PublisherID can support equality filtering on that column and can help produce rows ordered by Title within each publisher, subject to DBMS optimizer behavior and the exact query. It is a targeted response to a frequent access path. A unique Title index would impose an unsupported uniqueness rule and does not lead with the filter column. Indexing every column increases storage and write-maintenance costs. PublisherID is not unique and therefore is not suitable as the table's entity identifier.

Question 8

New Multiple answers

Topic: Structured Query Language

Skill tested: Uses SQL joins, predicates, and aggregation to produce grouped results.

A nonprofit tracks donations in Donor(DonorID, Name) and Donation(DonationID, DonorID, Amount, PaidDate). A report must list each donor's name and total paid donations for the current calendar year, include only totals of at least 1,000, and exclude donors with no paid donations during that year. The report should return one row per qualifying donor. Which two SQL design choices satisfy the requirement? Select TWO.

Correct Answer: A. Group by DonorID and Name, sum Amount, and apply the 1,000 threshold to the grouped total.; D. Join Donor to Donation on DonorID and filter PaidDate to the current calendar year in the row-selection predicate.
Explanation:

An inner join naturally excludes donors without matching donation rows. Filtering donations to the current year before aggregation ensures that only in-year records contribute to the total. Grouping by donor identity and name produces one result per donor, while a HAVING condition on the sum applies the minimum to the aggregate. A left join with zero-valued unmatched rows would retain donors the report must exclude. Filtering each donation at 1,000 changes the rule from a donor total threshold to an individual-transaction threshold, and grouping by date gives the wrong granularity.

Question 9

New Single answer

Topic: Relational Algebra

Skill tested: Combines selection and projection to express a restricted relational query.

A parts supplier needs a list of distinct part numbers for inventory items whose quantity is below the reorder threshold. In relational algebra, the inventory relation has attributes PartNo, Quantity, and ReorderPoint. The requested result must contain only PartNo values, and rows must qualify when Quantity is less than ReorderPoint. Which relational algebra expression correctly represents the query?

Correct Answer: B. π PartNo (σ Quantity < ReorderPoint (Inventory))
Explanation:

Selection restricts tuples according to a predicate, so the condition Quantity < ReorderPoint is applied to Inventory first. Projection then retains only PartNo. The expression also follows the relation's available attributes and returns the requested result. The other expressions misuse selection or projection by placing an attribute name where a relation or predicate is required, or attempt an unrelated Cartesian product. In classical relational algebra, projection yields a set of values, so duplicate part numbers are eliminated.

Question 10

New Multiple answers

Topic: Transactions and Database Security

Skill tested: Applies transaction isolation and least-privilege access to protect concurrent updates.

A ticketing service uses a relational DBMS for seat reservations. During a surge, two agents can attempt to reserve the same seat at nearly the same time. The system must prevent both reservations from committing, preserve a reservation's seat and customer changes as one unit, and ensure agents cannot alter account records. The application uses a database account dedicated to reservation operations. Which two measures best address these requirements? Select TWO.

Correct Answer: D. Enforce seat availability with a suitable transaction and integrity constraint or locking strategy so concurrent reservations cannot both succeed.; E. Grant the reservation account only the required reservation-table privileges and deny account-table modification privileges.
Explanation:

Concurrency must be handled by the DBMS through an appropriate transaction strategy and enforceable integrity rules, so competing operations cannot both leave the same seat reserved. Related reservation changes should commit or roll back together to preserve consistency. Least privilege limits the application account to its required operations and prevents it from modifying account data. Independent commits can leave partial state, and post hoc cleanup does not prevent the conflict or guarantee correctness. Administrative privileges are unnecessary and increase the impact of application defects or compromise.

Question 11

New Single answer

Topic: Database Planning

Skill tested: Chooses an application interface appropriate to web access and centralized data management.

A public library plans to replace a local desktop catalog with a web application used by patrons and staff from several sites. The database must remain centrally managed, and users should not need direct database credentials or database software installed on their devices. The library expects to change the user interface over time while preserving the database design. Which application-interface approach best fits these constraints?

Correct Answer: B. Place an application layer between web clients and the DBMS, with the application mediating data requests.
Explanation:

An application layer provides a controlled interface between web clients and the centralized DBMS. It can mediate requests, keep database credentials away from end users, and allow the presentation interface to evolve without requiring users to connect directly to the database. Direct browser access with a shared login exposes credentials and bypasses a suitable application boundary. Local copies create synchronization and consistency problems, while command-line access is impractical for patrons and does not meet the web-application requirement.

Question 12

New Single answer

Topic: Normalization

Skill tested: Recognizes transitive dependencies and decomposes a relation toward third normal form.

A supplier relation uses SupplierID as its primary key and stores SupplierName, PostalCode, and City. Each postal code determines exactly one city in the business's data, but multiple suppliers can share a postal code. The design has already been confirmed to satisfy first and second normal form. The team wants to avoid updating the same city value inconsistently across suppliers while preserving each supplier's postal code. Which redesign is most appropriate for third normal form?

Correct Answer: C. Create Supplier(SupplierID, SupplierName, PostalCode) and PostalArea(PostalCode, City), with PostalCode as a key of PostalArea.
Explanation:

Because PostalCode determines City and SupplierID determines PostalCode, City is transitively dependent on the Supplier key. Separating PostalArea makes the postal-code-to-city dependency explicit and avoids repeated city values among suppliers. Supplier retains the postal code as a reference to the postal-area data. A unique constraint on City would incorrectly prohibit suppliers in the same city, and City is not a unique supplier identifier. Keying supplier identity by city would also merge distinct suppliers and fail to represent the stated data.