2023年最新のお手軽に合格させるPDII試験にはこちらが提供する問題集PDFテストエンジン
PDIIのPDFで合格させるスゴ問題集でPDII最新のリアル試験問題
Salesforce PDII 認定試験の出題範囲:
トピック | 出題範囲 |
---|---|
トピック 1 |
|
トピック 2 |
|
トピック 3 |
|
トピック 4 |
|
トピック 5 |
|
トピック 6 |
|
トピック 7 |
|
トピック 8 |
|
トピック 9 |
|
トピック 10 |
|
トピック 11 |
|
質問 55
A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the- box AppExchange app needs to come with a set of best practice settings that apply to most customers.
What should the developer use to store and package the custom configuration settings for the app?
- A. Custom Metadata
- B. Custom Settings
- C. Custom Objects
- D. Process Builder
正解: A
質問 56
Which of the following annotations is the right way jto invoke a single apex method?
- A. @lnvokableAction()
- B. @lnvokableApex()
- C. @lnvokableMethod()
正解: C
質問 57
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly. What will improve performance? Choose 3 answers
- A. Using selective queries.
- B. Reducing the view state.
- C. Using actionRegion and rerender.
- D. Turning off the standard stylesheet.
- E. Setting the Apex Page attribute cache=true.
正解: A,B,E
質問 58
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class.
How can the developer generate the code coverage?
- A. Call the Apex class method from a testMethod instead of the testSetup method.
- B. Add @testVisible to the method in the class the developer is testing.
- C. Use system.assert() in testSetup to verify the values are being returned.
- D. Verify the user has permissions passing a user into System.runAs().
正解: D
質問 59
A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.
What should the developer use to store and package the custom configuration settings for the app?
- A. Custom Metadata
- B. Custom Settings
- C. Custom Objects
- D. Process Builder
正解: A
質問 60
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.
How can this be accomplished? (Choose two.)
- A. Use the ApexPages.addMessage() method to add the error message
- B. Use the account.addError() method to add the error message
- C. Use the (apex: information) tag to display the error message
- D. Use the <apex:pageMessages> tag to display the error message
正解: A,D
解説:
Explanation/Reference:
質問 61
A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints,
SP1, SP2, and SP3 (created in order), before the final execution of the process.
During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is called, a runtime error occurs.
Why does the developer receive a runtime error?
- A. The developer has too many DML statements between the savepoints.
- B. The developer should have called SP2 before calling SP3.
- C. The developer used too many savepoints in one trigger session.
- D. SP3 became invalid when SP1 was rolled back.
正解: D
質問 62
In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.
What is the most effective approach to ensure values displayed respect the users locale settings?
- A. Use the FORMAT() function in the SOQL query.
- B. Use a wrapper class to format the values retrieved via SOQL.
- C. Use the FOR VIEW clause in the SOQL Query.
- D. Use REGEX expressions to format the values retrieved via SOQL.
正解: C
質問 63
An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this?
- A. Set up debug logging for every Sales Rep, then monitor the logs for errors and exceptions.
- B. Turn off all Workflow Rules, then turn them on one at at time to see which one causes the error.
- C. add system.debug() statements to the code and use the Developer Console logs to trace the code.
- D. Run the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code coverage.
正解: B
質問 64
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
- A. string"
il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false - B. <bl>false</bl> </request>
sl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second - C. <b1>false</bl> </request>
<request> <sl>"my first string"</sl> <il>123</il> <sZ>"my second string"</32> - D. <request> <sl>my first string</sl> <11>123</il> <32>my second string</32>
正解: A,C
質問 65
What is a valid request for the following REST method: @HttpPost global static void myPostMethod(String sl,Integer il, Boolean bl, String b2) Choose 2 answers
- A. Sl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second string"
- B. < request> < sl>my first string < 11>123 < 32>my second string < b1>false < /request>
- C. < request> < sl>"my first string" < il>123 < sZ>"my second string" < bl>false < /request>
- D. "il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false
正解: C,D
質問 66
How can Apex class functionality be exposed for invocation from a Lightning process? Choose 2 answers
- A. Implement the Process.Plugin interface.
- B. Expose the class as a custom REST API.
- C. Extend the ProcessInvocable base class.
- D. Use the @InvocableMethod annotation.
正解: A,D
質問 67
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?
- A. Use a List Custom Setting to disable the Trigger for the user who does the data loading.
- B. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.
- C. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
- D. add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user.
正解: C
質問 68
Which of the following about Dynamic Apex is incorrect?
- A. getDescribe() can get you a variety of info on a particular object/field
- B. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
- C. Schema.getGlobalDescribeQ gives you a map of all sObject
- D. In dynamic SOQL, you can use bind variables and bind variable fields
正解: D
解説:
Explanation
Explanation/Reference:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields
(e.g. :myVariable.field1_c)
Use escapeSingleQuotes to prevent SOQL injection
質問 69
A developer has a Debug method within a class, which is invoked hundreds of times.
What is the optimal functionality in the Developer Console to count the number of calls made to the method?
- A. The "Execution Stack" Panel
- B. The "Execution Log" Panel
- C. The "Executed Units" tab under the Execution Overview Panel
- D. The "Execution Tree" tab under the Stack Tree Panel
正解: C
質問 70
A Lightning Component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the Description field output on their mobile devices and tablets.
Which option has the changes to make the component responsive for mobile and tablet devices?
- A.
- B.
- C.
- D.
正解: B
質問 71
Refer to the code below:
A developer is building this Aura component to display information about top Opportunities in the org.
Which three code changes must be made for the component to work?
Choose 3 answers
- A. Get the controller action with cmp.get(''oppController.getTopOpps").
- B. Set the controller in the component markup.
- C. Add the RemoteAction annotation to the Apex method.
- D. Add the AuraEnabled annotation to the Apex method.
- E. Add the static keyword to the Apex method.
正解: B,D,E
質問 72
......
PDII問題集はあなたの合格を必ず保証します:https://www.goshiken.com/Salesforce/PDII-mondaishu.html
有効なPDIIテスト解答PDII試験PDF:https://drive.google.com/open?id=13_CnaUQ4Ukv87qUqAnJpEDs47zUQAEBH