最新 [2025年06月] 効果的な学習法でFast2testの問題集でPDIIテストを合格せよ
実績のある受験者のシミュレーションされたPDII試験PDF問題を試そう
質問 # 59
A developer has a Visual force page that automatically assign ownership of an Account to a queue save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.
What can cause this problem?
- A. The test class does not use the seeAllData=true annotation,
- B. The test class does not use the Bulk API for loading test data.
- C. The test class does not implement the Queueabfe interface.
- D. The test class does not retrieve the updated value- from the database.
正解:D
質問 # 60
A developer has created a Batchable class that inserts Accounts. The Batchable class is running with batch size of 200, and is getting an error. The developer identifies the following code as problematic. trigger AccountTrigger on Account(after insert) { for( Account a : Trigger.new) { AccountHandler.insertPartnerAccount(a); } } public Class AccountHandler{ @future public static void insertPartnerAccount(Account a){ //perform processing if( a.Is_Partner__c) { Account partnerAccount = new Account(); //set values insert partnerAccount; } } } What governor limit or system limitation is the developer most likely violating?
- A. Future method cannot be called from a batch method.
- B. Too many future calls in the batch execution context.
- C. Too many DML statements in the batch execution context.
- D. Maximum trigger depth exceeded on the Account insert.
正解:A
質問 # 61
A developer wants to use an Aura component with a custom action.
What should be considered in order to do this?
- A. The component must implement the flexipage:availableForRecordHome interface
- B. The component's JavaScript controller must handle a method on initialization
- C. A default value must be provided for each component attribute marked as required
- D. The class "slds-modal_ _container" must be added to the top-level element of the component
正解:A
質問 # 62
A company has reference data stored in multiple Custom Metadata records that represent default information for certain.
When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information.
What is the optimal way to automate this?
- A. Visual Flow
- B. Apex Trigger
- C. Workflow Rule
- D. Process Builder
正解:D
質問 # 63
A developer is working on an integration between Salestorce and an external system. The integration requires sending a large amount of data to the external systern, which can cause long response times and timeouts.
To optimize the performance and avoid timeouts, which technique should be used?
- A. Use the @future annotation to make the callout asynchronous.
- B. Implement an asynchronous callout using the Continuation class,
- C. Use a chained batch Apex to split the data into smaller batches.
- D. Increase the timeout limit in the callout options,
正解:A
質問 # 64
Universal containers needs to integrate with several external systems. The process is initiated when a record is created in Salesforce. The remote systems do not require Salesforce to wait for a response before continuing.
What is the recommended best solution to accomplish this?
- A. Platform event
- B. Outbound message
- C. PushTopic event
- D. Trigger with callout
正解:B
質問 # 65
A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes.
What should the developer do to implement the communication?
- A. Publish an event on an event channel.
- B. Publish a message on a message channel.
- C. Fire an application event.
- D. Fire a custom component event.
正解:B
質問 # 66
Refer to the code snippet below:
When a Lightning web component is rendered, a list of opportunity that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the fetchOpps method available within the Lightning web component?
- A. The fetchOpps method must specify the (continustion-true) attribute
- B. The fetchOpps method must be annotated with the %InvocableMethod annotation.
- C. The fetchOpps method must specify the (cacheable =true) attribute
- D. The fetchOpps method cannot mutate the result set retrieved from the database.
- E. The fecthOpps method must be annotated with the @ AuraEnabled annotation.
正解:C、D、E
質問 # 67
How should a developer assert that a trigger with an asynchronous process has successfully run?
- A. Insert records into Salesforce, use seeAllData-true, then perform assertions.
- B. Create at test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.
- C. Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,
- D. Create all test data, use @future In the test class, then perform assertions.
正解:C
質問 # 68
Choose the correct definition for <apex:actionSupport>.
- A. Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code
- B. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
- C. Signifies which components should be processed by the server when an AJAX request is generated
- D. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
- E. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
正解:E
質問 # 69
Just prior to a new deployment the Salesforce administrator, who configured a new order fulfillment process feature in a developer sandbox, suddenly left the company.
Ag part of the UAT cycle, the users had fully tested all of the changes in the sandbox and signed off on them; making the Order fulfillment feature ready for its go-live in the production environment.
Unfortunately, although a Change Set was started, it was not completed by the former administrator.
A developer is brought in to finish the deployment.
What should the developer do to identify the configuration changes that need to be moved into production?
- A. Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost.
- B. Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata.
- C. In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set.
- D. Leverage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set.
正解:D
質問 # 70
What is the best practice to initialize a Vizualforce page in a test class?
- A. Use controller. currentPage. setPage (MyTastfage) ;
- B. Use Test. currantPage .getParamatars put (MyTaestPaga) ;
- C. Use Test. setCurrentPage MyTestPags;
- D. Use Test. setCurrentPage (Page. MyTeatPage);
正解:D
解説:
The best practice to initialize a Visualforce page in a test class is to use Test.setCurrentPage(Page.MyTestPage). This method sets the current page context for the test class and allows the developer to access the page parameters, controller variables, and standard controller methods. This way, the developer can test the functionality and behavior of the Visualforce page and its controller in different scenarios. The other options are either invalid syntax or do not set the current page context. Reference: [Test.setCurrentPage Method], [Testing Custom Controllers and Controller Extensions], [Testing Visualforce Controllers]
質問 # 71
Refer to the code snippet below:
When a Lightning web component is rendered, a list of opportunity that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the fetchOpps method available within the Lightning web component?
- A. The fetchOpps method must specify the (continustion-true) attribute
- B. The fetchOpps method must be annotated with the %InvocableMethod annotation.
- C. The fetchOpps method must specify the (cacheable =true) attribute
- D. The fetchOpps method cannot mutate the result set retrieved from the database.
- E. The fecthOpps method must be annotated with the @ AuraEnabled annotation.
正解:C、D、E
質問 # 72
How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?
- A. Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account ID.
- B. Insert the Account into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID.
- C. Instantiate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
- D. Instantiate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordld().get() to set the Account ID.
正解:A
質問 # 73
Which statement is true regarding savepoints?
- A. Savepoints are not limited by DML statement governor limits
- B. Static variables are not reverted during a rollback.
- C. Reference to savepoints can cross trigger invocations.
- D. You can roll back to any savepoint variable created In any order
正解:B
質問 # 74
A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component.
What should the developer do to ensure a more meaningful message?
- A. Use an AuraHandledException in a try/catch block.
- B. Add an onerror event handler to the tag.
- C. Add an error-view component to the markup.
- D. Use ProcessBuilder to catch the error.
正解:A
解説:
Explanation
質問 # 75
An org records customer order information In a custom object, Orcer__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 fiat 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?
- A. Custom list setting
- B. Custom hierarchy setting
- C. Custom object
- D. Custom metadata type
正解:D
質問 # 76
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. Add the Profile ID of the user who loads the data to the trigger, so the trigger will not fire for this user.
- B. Use a hierarchy custom setting to skip executing the logic inside the trigger for the user who loads the data.
- C. Use a list custom setting ta disable the trigger for the user who loads the data.
- D. Add a validation rule to the Contract to prevent Contract creation by the user who loads the data.
正解:B
解説:
A hierarchy custom setting is a type of custom setting that can be used to store configuration data that can vary for different users or profiles. A hierarchy custom setting can be accessed from Apex code, and can be used to control the behavior of the code based on the user's context. By using a hierarchy custom setting, the developer can create a custom setting that can store a Boolean value that indicates whether to skip executing the logic inside the trigger for the user who loads the data. The developer can then check this value in the trigger, and bypass the trigger logic if the value is true. This way, the developer can prevent the Contract records from being created when mass loading the Opportunities, but still allow the daily users to have the Contract records created. Reference: [Hierarchy Custom Settings], [Access Custom Settings]
質問 # 77
......
Salesforce PDII(Salesforce Certified Platform Developer II)は、Salesforceプラットフォームでカスタムアプリケーションの設計と開発において高度な知識とスキルを実証したいSalesforce開発者向けに設計された認定試験です。 PDII認定開発者として、あなたはSalesforce開発の専門家として認識され、より挑戦的なプロジェクトを引き受けることができます。
シミュレーションされた材料でPDIIテストエンジンで学習:https://jp.fast2test.com/PDII-premium-file.html
合格には必要なるPDII試験問題集:https://drive.google.com/open?id=1QEDRvG94j3DC1q84IEusUtlqOjNwbeqH