PDII試験無料問題集「Salesforce Platform Developer II 認定」

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?

解説: (GoShiken メンバーにのみ表示されます)
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users encounter "View State" errors when using it in production. What should the developer ensure to correct these errors?

解説: (GoShiken メンバーにのみ表示されます)
Consider the Apex controller below, that is called from an Aura component:
Line 5 @AuraEnabled
Line 6 public List<String> getStringArray() {
Line 7 String[] arrayltems = new String[]{ 'red', 'green', 'blue' };
Line 8 return arrayltems;
Line 9 }
Line 10}
What is wrong with this code?

解説: (GoShiken メンバーにのみ表示されます)
Which use case can be performed only by using asynchronous Apex?

解説: (GoShiken メンバーにのみ表示されます)
Which statement is true regarding savepoints?

解説: (GoShiken メンバーにのみ表示されます)
MyOpportunities.js
JavaScript
import { LightningElement, api, wire } from 'lwc';
import getOpportunities from '@salesforce/apex/OpportunityController.findMyOpportunities'; export default class MyOpportunities extends LightningElement {
@api userId;
@wire(getOpportunities, {oppOwner: '$userId'})
opportunities;
}
OpportunityController.cls
Java
public with sharing class OpportunityController {
@AuraEnabled
public static List<Opportunity> findMyOpportunities(Id oppOwner) {
return [
SELECT Id, Name, StageName, Amount
FROM Opportunity
WHERE OwnerId = :oppOwner
];
}
}
A developer is experiencing issues with a Lightning web component. The co12mponent must surface information about Opportunities owned by the currently logged-in user. When the component is rendered, the following message is displayed: "Error retrieving data". Which action must be completed in the Apex method to make it wireable?13

解説: (GoShiken メンバーにのみ表示されます)
Which code snippet represents the optimal Apex trigger logic for assigning a Lead's Region based on its PostalCode, using a custom Region__c object?

解説: (GoShiken メンバーにのみ表示されます)
After a platform event is defined in a Salesforce org, events can be published via which mechanism?

解説: (GoShiken メンバーにのみ表示されます)
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account.
How can a developer fix this error?

解説: (GoShiken メンバーにのみ表示されます)
A developer implemented a custom data table in a Lightning web component with filter functionality.
However, users are submitting support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records based on the selected filters. What should the developer do to improve performance of the component?

解説: (GoShiken メンバーにのみ表示されます)