Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job object that represents a job. Each applicant may apply for more than one job.
What should a developer implement to represent that an applicant has applied for a job?
A . Master-detail field from Applicant to Job
B . Junction object between Applicant and Job
C . Formula field on Applicant that references Job
D . Lookup field from Applicant to Job
Answer: B
Explanation:
To represent that an applicant has applied for a job when each applicant can apply to multiple jobs:
Option B: Junction object between Applicant and Job
A many-to-many relationship in Salesforce is modeled using a junction object. The junction object would have two master-detail relationships, one to Applicant and one to Job. Implementation:
Create a custom object, e.g., JobApplication.
Add master-detail relationships to both Applicant and Job.
Reference: "Use a junction object to model a many-to-many relationship between two objects."
― Salesforce Help: Many-to-Many Relationships Why Other Options Are Incorrect:
Option A: A master-detail from Applicant to Job implies that each Applicant is associated with only one Job.
Option C: A formula field cannot represent a many-to-many relationship.
Option D: A lookup field from Applicant to Job represents a one-to-many relationship, not many-to-many.
Latest DEX-450 Dumps Valid Version with 456 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund