PDI practice question 18 of 30

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers

Full set: 201 questions
Answer options
A: Custom objects and fields Correct answer
B: Triggers
C: Roll-up summaries Correct answer
D: Relationships Correct answer
E: Flows
Correct Answer:
A. Custom objects and fields; C. Roll-up summaries; D. Relationships
Explanation

The database layer of a Salesforce application refers to its data model—the structure that holds the data. In a declarative model, this is built using point-and-click tools. Custom objects and fields are the fundamental building blocks, analogous to tables and columns in a traditional database. Relationships (Master-Detail, Lookup) define how these objects are connected, creating the relational schema. Roll-up summaries are a special type of field that declaratively aggregates data from child records onto a parent record in a master-detail relationship, directly contributing to the data model. These three components are essential for declaratively defining the application's database structure.

Why Incorrect

B. Triggers: Triggers are Apex code, which is a programmatic solution and violates the "exclusively declarative" requirement.
E. Flows: Flows are part of the business logic or automation layer; they act on the data but do not define the core database structure itself.

References

1. Data Modeling Trailhead Module, "Understand Custom & Standard Objects" Unit: This unit establishes that objects and fields are the core components of the data model. It states, "Custom objects are the objects that you create to store information that’s specific to your company or industry... you can also add custom fields to standard objects."

2. Salesforce Help, "Overview of Object Relationships": This document details how relationships are a key part of the data model. "Object relationships are a special type of custom object field that links two objects together." This is a declarative configuration.

3. Salesforce Help, "Create a Roll-Up Summary Field": This guide confirms that a roll-up summary is a field type created declaratively. "A roll-up summary field calculates values from related records... You can create a roll-up summary field to display a value in a master record based on the values of fields in a detail record."

4. Apex Developer Guide, "Triggers" Section: This official guide defines triggers as "Apex code that executes before or after specific data manipulation language (DML) events occur," confirming their programmatic nature.

Scroll to Top