試験準備には欠かさない!PDI問題解答でPDI試験問題集 [Q156-Q180]

Rate this post

試験準備には欠かさない!PDI問題解答でPDI試験問題集

リアルSalesforce PDI試験問題 [更新されたのは2022年]

Salesforce PDI 認定試験の出題範囲:

トピック 出題範囲
トピック 1
  • Describe the Salesforce Developer tools such as Salesforce DX, Salesforce CLI
  • Describe the relationship between Apex transactions
トピック 2
  • Describe the types of content that can be contained in a Lightning web component
  • write Apex classes and use Apex interfaces
トピック 3
  • Implement exception handling in Apex, including custom exceptions as needed
  • ncorporate Visualforce pages into Lightning Platform applications
トピック 4
  • Describe the capabilities of the declarative process automation features
  • Describe the considerations when developing in a multi-tenant environment
トピック 5
  • Write and execute tests for triggers, controllers, classes, flows
  • Describe the options for and considerations when importing and exporting data into development environments

 

156、A developer has the following code block:
public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost * XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?

 
 
 
 

157、In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers

 
 
 
 

158、A developer must write an Apex method that will be called from a Lightning component. The method may delete an account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can succesfully perform deletions?

 
 
 
 

159、A developer receives an error when trying to call a global server-side method using the @remoteAction decorator.
How can the developer resolve the error?

 
 
 
 

160、When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

 
 
 
 

161、A recursive transaction is limited by a DML statement creating records for these two objects:
1. Accounts
2. Contacts
The Account trigger hits a stack depth of 16.
Which statement is true regarding the outcome of the transaction?

 
 
 
 

162、Which three web technologies can be integrated into a Visualforce page? Choose 3 answares

 
 
 
 
 

163、How should a developer create a new custom exception class?

 
 
 
 

164、A developer uses a loop to check each Contact in a list. When a Contact with the Title of
“Boss” is found, the Apex method should jump to the first line of code outside of the for loop.
Which Apex solution will let the developer implement this requirement?

 
 
 
 

165、A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?

 
 
 
 

166、What are three considerations when using the @InvocableMethod annotation in Apex?
Choose 3 answers

 
 
 
 
 

167、Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers

 
 
 
 

168、A developer uses a Test Setup method to create an Account named ‘Test’. The first test method deletes the Account record. What must be done in the second test method to use the Account?

 
 
 
 

169、A developer needs to implement a custom SOAP Web Service that is used by an external Web Application.
The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?
A)

B)

C)

D)

 
 
 
 

170、A developer wants to retrieve the Contacts and Users with the email address ‘[email protected]’.
Which SOSL statement should the developer use?

 
 
 
 

171、A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.
Which tool should the developer use to troubleshoot?

 
 
 
 

172、An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.
What is the correct definition of a Lightning Web component property that uses the getAccounts method?

 
 
 
 

173、Which process automation should be used to send an outbound message without using Apex code?

 
 
 
 

174、A developer needs to create a custom Interface in Apex.
Which three considerations must the developer keep in mind while developing the Apex Interface?
Choose 3 answers

 
 
 
 
 

175、A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?

 
 
 
 

176、Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page.
If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system.
Which three factors should a developer keep Hi mind when implementing the Apex method?
Choose 3 answers

 
 
 
 
 

177、A developer needs to confirm that an Account trigger is working correctly without changing the organization’s data.What would the developer do to test the Account trigger?

 
 
 
 

178、Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.
Which two strategies can a developer use to accomplish this?
Choose 2 answers

 
 
 
 

179、A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:

Which type of exception will this trigger cause?

 
 
 
 

180、

Which two examples above use the system. debug statements to correctly display the results from the SOQL aggregate queries? Choose 2 answers

 
 
 
 

PDI合格させる試験問題集には更新されたのは2022年:https://www.passtest.jp/Salesforce/PDI-shiken.html

         

Related Links: justpaste.me portfolium.com scalar.usc.edu maryam6409708.blogspot.com www.slideshare.net scalar.usc.edu

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Enter the text from the image below