Salesforce certification · Exam Salesforce-Platform-Developer

Salesforce-Platform-Developer Mock Exam

Salesforce Platform Developer - Plat-Dev-201

Free Salesforce-Platform-Developer questions on Data Modeling and Management, each with the answer and an explanation.

20 questions · 35 minutes · free, no sign-up

Data Modeling and Management questions

1–2 of 2 free
Question 1 Choose 1
A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug c. As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able t report multiple bugs and bugs can also be reported by multiple companies. What is needed to allow this reporting?
Show answerHide answer

Correct answer: B Junction object between Bug c and Account

Explanation

Explanation:

- Since each company can report multiple bugs, and each bug can be reported by multiple companies, this is a many-to-many relationship.
- Salesforce does not support direct many-to-many relationships, so a junction object is required to link Bug__c and Account.
- The junction object will have two lookup fields, one to Bug__c and one to Account, allowing flexible reporting on which companies reported which bugs.

❌ Why the other options are incorrect:
A. Roll-up summary field of Bug__c on Account

❌ Only works with master-detail relationships, and only rolls up child data — doesn’t allow many-to-many.
C. Lookup field on Bug__c to Account

❌ This creates a one-to-many relationship: one bug to many accounts is not supported with just one lookup.
D. Master-detail field on Bug__c to Account

❌ Also creates a one-to-many relationship: each bug could belong to only one account.

Key Takeaways:

✅ Junction object (B) is the only way to model many-to-many relationships in Salesforce.
🚫 Other options force one-to-many relationships, violating the requirement.
Question 2 Choose 1
Given the following Anonymous Block:

Which one do you like? What should a developer consider for an environment that has over 10,000 Case records?
Show answerHide answer

Correct answer: A The transaction will fail due to exceeding the governor limit.

Explanation

Explanation:

The anonymous block attempts to query and update 50,000 Case records:

for(Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]){
thisCase.Status = 'Working';
casesToUpdate.add(thisCase);
}

Then it performs a bulk update:

Database.update(casesToUpdate, false);

However, Salesforce enforces a strict governor limit:

❗ Maximum DML rows per transaction: 10,000

This code updates 50,000 records, which exceeds the limit, and will cause the transaction to fail with a "Too many DML rows" exception.

❌ Why the other options are incorrect:

B. The try/catch block will handle any DML exceptions thrown
❌ Partially true — it can catch exceptions, but governor limit exceptions are uncatchable once hit.

C. The transaction will succeed and changes will be committed
❌ False — It will exceed the 10,000 DML rows limit and fail.

D. The try/catch block will handle exceptions thrown by governor limits
❌ False — Governor limit exceptions are not catchable. Once a limit is hit, the transaction is immediately halted.

That's the last free question in Data Modeling and Management

You've seen the free 30% (2 of 9 questions). Full access unlocks every question and full-length Salesforce-Platform-Developer mock exams (60 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the Salesforce-Platform-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Platform-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Platform-Developer mock exam
  • 60questions per mock
  • 105 mintime limit
  • 184questions in the bank
  • Newmock on every attempt