LearnFrenzy
Sign in Take a free test

Salesforce Admin interview · Set 1 of 6

Objects, Fields and Relationships (Data Model)

  • 6 follow-up questions
  • 4 key points
  • Code examples
Test yourself

Model the business correctly first

Objects, fields and relationships decide what you can report on, how security flows and what automation can do. Interviewers look for the right relationship choice and its consequences.

  • ObjectsStandard, custom and junction objects.
  • RelationshipsLookup vs master-detail and their effects.
  • FieldsFormulas, roll-ups, record types and external ids.

Every admin interview starts with the data model: how Salesforce stores information and how records relate to each other. Get relationships right and reporting, security and automation all become easier.

1. What are standard and custom objects?

Objects are like database tables. Standard objects come with Salesforce — Account, Contact, Lead, Opportunity, Case. Custom objects (API names end in __c) store data specific to your business, such as Course__c or Placement_Drive__c. Each object has fields, page layouts, record types, validation rules and its own security settings.


2. Explain lookup vs master-detail relationships.

Choosing a relationship

Can the child exist without the parent?

  • Yes → LookupLoose link, optional, child keeps its own owner and sharing (Contact → Account)
  • No → Master-detailChild is deleted with the parent and inherits its sharing; enables roll-up summary fields (Invoice Line → Invoice)
  • Many-to-many → Junction objectA custom object with two master-detail fields (Student ↔ Course via Enrolment)

A master-detail child has no owner — it inherits ownership and sharing from its master. Each object can have up to two master-detail relationships and up to 40 total relationship fields.


3. What is a junction object?

A custom object with two master-detail relationships that models a many-to-many relationship. Example: Student and Course joined by Enrolment__c, which can also hold its own data such as grade and enrolment date. The first master-detail you create becomes the primary master (controlling look and feel and sharing defaults).


4. Which field types should you know?

Text, Text Area (Long/Rich), Number, Currency, Percent, Date, Date/Time, Checkbox, Picklist and Multi-select Picklist, Email, Phone, URL, Geolocation, Lookup and Master-Detail, Formula (calculated, read-only), Roll-Up Summary (COUNT, SUM, MIN, MAX of master-detail children) and Auto Number. Choose the most specific type — it gives validation and better reporting for free.


5. What are record types and why use them?

Record types let one object serve different business processes: different page layouts, picklist values and (for some objects) sales or support processes per record type. Example: Opportunity record types “New Business” and “Renewal” with different stages and fields. Assign record types to users through profiles or permission sets.


6. Formula field vs roll-up summary field?

A formula calculates a value from fields on the same record or its parents (via relationships) every time it is read — for example days since last contact. A roll-up summary aggregates child records in a master-detail relationship — for example total invoice amount. For lookups, roll-ups need Flow or Apex.

/* Formula: days a Case has been open */
IF(IsClosed, ClosedDate - CreatedDate, NOW() - CreatedDate)

/* Formula: full address on Contact using the parent Account */
Account.BillingCity & ", " & Account.BillingState

7. What tools help you design and view the data model?

Schema Builder shows objects, fields and relationships visually and lets you create them by drag and drop. Object Manager is where you configure each object. Field history tracking, field dependencies (controlling and dependent picklists) and external ids are also part of good data design.


8. What is an external ID field?

A unique identifier from another system (an ERP customer number) marked as External ID. It is indexed for fast search and lets you upsert records and link relationships during data loads without knowing Salesforce record Ids.


Remember

Key points

  • Master-detail = owned child

    Cascade delete, inherited sharing, roll-ups.

  • Lookup = independent child

    Optional and own sharing.

  • Junction = many-to-many

    Two master-detail fields.

  • Record types = processes

    Layouts and picklists per type.

Interview drill

Follow-up questions

What the interviewer asks after your first answer. Turn on practice mode, answer each one aloud, then reveal.

  1. 1 Can you convert a lookup to master-detail? Intermediate

    Yes, if every existing child record has a value in the lookup field. Converting back is allowed if no roll-up summary fields depend on it.

  2. 2 What is a hierarchical relationship? Basic

    A special lookup available only on the User object, for example to set a user's manager.

  3. 3 How many roll-up summary fields can an object have? Intermediate

    By default 25 per object (can be raised by Salesforce support up to a limit).

  4. 4 What is a controlling and dependent picklist? Basic

    The dependent picklist shows values filtered by the controlling field's value — for example State values filtered by Country.

  5. 5 What happens to child records when a lookup parent is deleted? Basic

    By default the lookup field is cleared; you can instead block deletion or (for some cases) cascade delete via the lookup options.

  6. 6 What is the difference between a page layout and a Lightning record page? Intermediate

    Page layouts control fields, related lists and buttons; Lightning record pages (built in App Builder) control the overall page with components, tabs and dynamic forms.

Preparing with friends?

Share this page with your study group or placement batch.

Search LearnFrenzy

Esc

Quick links