0% found this document useful (0 votes)
2 views9 pages

Salesforce Developer Scenario-Based Questions

The document provides a series of scenario-based questions and answers for Salesforce developers, covering topics such as notifications, data management, API protection, feature releases, and handling concurrent updates. It also highlights common struggles faced by developers in these areas. Additionally, it promotes interview preparation services offered by Prominent Academy for those seeking Salesforce roles.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views9 pages

Salesforce Developer Scenario-Based Questions

The document provides a series of scenario-based questions and answers for Salesforce developers, covering topics such as notifications, data management, API protection, feature releases, and handling concurrent updates. It also highlights common struggles faced by developers in these areas. Additionally, it promotes interview preparation services offered by Prominent Academy for those seeking Salesforce roles.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

SALESFORCE

DEVELOPER
SCENARIO-
BASED
QUESTIONS

www.prominentacademy.in

+91 98604 38743


🧪Question:You want to notify a user when a record
is approved — both in the app and mobile. How do
you implement it?

✅Answer:
Use Custom Notification API
Trigger via Flow or Apex
Users receive it in Bell Icon in Lightning UI and
Mobile app
apex

git add <file>


git commitMessaging.CustomNotification notification = new
Messaging.CustomNotification();
notification.setTitle('Approval Complete');
notification.setBody('Your expense report was approved.');
notification.send([UserId]);

⚠️Common Struggle:
Letting external vendors hit Salesforce directly
No sandbox gateway test before production
Poor error messaging on throttled APIs.

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: Your enterprise wants to offload
historical data (10+ years) from Salesforce but still
allow access via reports. What’s your solution?

✅Answer:
Use Salesforce Data Cloud (formerly CDP) or
integrate with Data Lakehouse (e.g., Snowflake)
Archive using Big Objects, or stream data into
Amazon S3/Azure via MuleSoft or Heroku Connect
Use External Objects (OData) in Salesforce for
reporting

⚠️Common Struggle:
Storing historical data in standard objects (blows
up storage)
No strategy for external object reporting latency
Poor SOQL selectivity for archived records.

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: How do you protect your Salesforce
APIs from overuse by 3rd parties?

✅Answer:
Deploy API Gateway (e.g., MuleSoft Anypoint, AWS
API Gateway)
Define rate limiting, IP whitelisting, and OAuth 2.0
policies
Use Named Credentials and JWT Bearer Flow
from the gateway
Monitor via Event Monitoring → API Event Logs

⚠️Common Struggle:
Letting external vendors hit Salesforce directly
No sandbox gateway test before production
Poor error messaging on throttled APIs.

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: How do you manage feature releases
when some teams use clicks (Flows) and others code
(Apex)?

✅Answer:
Use DevOps Center with Work Items linked to
Feature Branches
Track declarative changes via Source Tracking
Use Merge Requests with pre-approval workflows
Group deployable metadata into logical units
(not massive change sets)

⚠️Common Struggle:
Committing entire org metadata (no change
tracking)
Not splitting declarative vs programmatic
ownership
Ignoring merge conflicts between admins and
devs

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: Two users try to update the same
Opportunity at once. How do you prevent lost
updates?

✅Answer:
Use FOR UPDATE locking in SOQL (pessimistic lock)
Handle UNABLE_TO_LOCK_ROW error with retry
logic
For optimistic lock, store and check
LastModifiedDate

apex

Opportunity opp = [SELECT Name FROM Opportunity WHERE Id =


:oppId FOR UPDATE];

⚠️Common Struggle:
Committing entire org metadata (no change
tracking)
Not splitting declarative vs programmatic
ownership
Ignoring merge conflicts between admins and
devs

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: How can you insert an Account, related
Contacts, and Cases in a single API call?

✅Answer:
Use Composite Tree API
Structure JSON with referenceIds and
relationships.
json

{
"records": [{
"attributes": { "type": "Account", "referenceId": "ref1" },
"Name": "Acme Inc.",
"Contacts": {
"records": [{
"attributes": { "type": "Contact", "referenceId": "ref2" },
"LastName": "Smith"
}]
}
}]
}

⚠️Common Struggle:
Incorrect JSON structure
Using regular REST POST for multi-object insert
Not handling partial failures.

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
🧪Question: You want to automatically run unit tests
and notify Slack when a deployment is done. How?

✅Answer:
Use SFDX deploy hooks with Shell scripts or
Node.js
Hook 1: Run sfdx force:apex:test:run before deploy
Hook 2: On deploy success, call Slack Webhook
API with formatted message.

⚠️Common Struggle:
Hardcoding Slack credentials (instead of using
secrets manager)
Running tests after deploy (should be pre-check)
Not validating test code coverage thresholds

Your next opportunity is closer than you think. Let’s get you there!
📞 Don’t wait—call us at +91 98604 38743 today
Think your skills are enough?
Think again—these salesforce
questions could cost you your
Salesforce job.
Looking to crack your Salesforce interviews and land
your dream job? 💼 We've got you covered! At
Prominent Academy, we specialize in providing end-to-
end interview preparation that ensures you're not just
ready—but confident! 💪
💡 What We Cover:
✅ Mock Interviews tailored to Salesforce roles
✅ Real-world scenario-based questions for Admin,
Developer, CPQ, and Architect tracks
✅ Guidance on resume building and LinkedIn
optimization
✅ In-depth coverage of Salesforce core concepts,
integrations, and projects
✅ Latest Salesforce certification tips and tricks
✅ Unlimited interview calls with top companies
🎯 Whether you're a fresher or an experienced
professional transitioning to Salesforce, we provide
personalized guidance to help you shine in interviews and
stand out in the competitive market

📞call us at +91 98604 38743 to learn more.

You might also like