| Exam Code/Number: | Plat-Dev-301Join the discussion |
| Exam Name: | Salesforce Certified Platform Developer II - Multiple Choice |
| Certification: | Salesforce |
| Question Number: | 204 |
| Publish Date: | Sep 03, 2026 |
|
Rating
100%
|
|
A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:
How can the component"5 controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?
Part of a custom Lightning component displays the total number of Opportunities in the org, which are in the millions. The Lightning component uses an Apex method to get the data it needs.
What is the optimal way for a developer to get the total number of Opportunities for the Lightning component?
A developer is asked to build a solution that will automatically send an email to the customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after certain conditions are met.
What is the optimal way to accomplish this?
Universal Containers wants to use a Customer Community with Customer Community Plus licenses to allow their customers access to track how many containers they have rented and when they are due back. Universal Containers uses a Private sharing model for External users, Many of their customers are multi-national corporations with complex Account hierarchies. Each account on the hierarchy represents a department within the same business, One of the requirements is to allow certain community users within the same Account hierarchy to see several departments' containers, based on a custom junction object that relates the Contact to the various Account records that represent the departments.
Which solution solves these requirements?
Refer to the test method below:
The test method calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number of Times Viewed_c equals 0. What is the optimal way to fix this?