最新的Salesforce Platform Developer II - PDII免費考試真題

問題1
A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder. Which two settings should the developer configure within the xml resource file?

正確答案: A,C
說明:(僅 VCESoft 成員可見)
問題2
Universal Containers implements a private sharing model for Convention_Attendee__c. A lookup field Event_Reviewer__c was created. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to. What is the best approach?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題3
Refer to the code below:
Lightning Web Component JS file
JavaScript
import {LightningElement} from 'lwc';
import serverEcho from '@salesforce/apex/SimpleServerSideController.serverEcho'; export default class Helloworld extends LightningElement { firstName = 'world'; handleClick() { serverEcho({ firstName: this.firstName
})
.then((result) => {
alert('From server: ' + result);
})
.catch((error) => {
console.error(error);
});
}
}
Apex Controller
Java
public with sharing class SimpleServerSideController {
@AuraEnabled
public static String serverEcho(sObject firstName) {
String firstNameStr = (String)firstName.get('firstName');
return ('Hello from the server, ' + firstNameStr);
}
}
Given the code above, which two changes need to be made in the Apex Controller for the code to work?

正確答案: B,D
說明:(僅 VCESoft 成員可見)
問題4
A company has a Lightning page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning page?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題5
Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates?

正確答案: A,B,E
說明:(僅 VCESoft 成員可見)
問題6
The Account after-update trigger fires whenever an Account's address is updated, and it updates every associated Contact with that address. The Contact after-update trigger fires on every edit, and it updates every Campaign Member record related to the Contact with the Contact's state. Consider the following: A mass update of 200 Account records' addresses, where each Account has 50 Contacts. Each Contact has one Campaign Member. This means there are 10,000 Contact records across th23e Accounts and 10,000 Campaign Member records across the contacts. What will happen when the mass update occurs?24252627

正確答案: C
說明:(僅 VCESoft 成員可見)
問題7
Refer to the following code snippet:
Java
public class LeadController {
public static List<Lead> getFetchLeadList(String searchTerm, Decimal aRevenue) { String safeTerm = '%'+searchTerm.escapeSingleQuotes()+ '%'; return [ SELECT Name, Company, AnnualRevenue FROM Lead WHERE AnnualRevenue >= :aRevenue AND Company LIKE :safeTerm LIMIT 20
];
}
}
A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling getFetchLeadList when certain criteria are met. Which three changes should the developer implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?1

正確答案: A,B,C
說明:(僅 VCESoft 成員可見)
問題8
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?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題9
A company wants to track revenue through a related object. They need to perform a one-time seeding of data for roughly 100,000 Opportunities, creating Revenue records based on complex logic. What is the optimal way to automate this?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題10
An org records customer order information in a custom object, Order__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charges on an order, based on a flat percentage rate associated with the region of the shipping address. What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?3132

正確答案: A
說明:(僅 VCESoft 成員可見)
問題11
A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which consideration should be checked to resolve the issue?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題12
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?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題13
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題14
After a platform event is defined in a Salesforce org, events can be published via which mechanism?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題15
A developer is writing a Jest test for a Lightning web component that conditionally displays child components based on a user's checkbox selections. What should the developer do to properly test that the correct components display and hide for each scenario?

正確答案: D
說明:(僅 VCESoft 成員可見)