究極のガイド準備で無料Salesforce PDI試験問題と解答
合格させるSalesforce PDIテストエンジンPDFで完全版無料問題集
Salesforce PDI 認定試験の出題範囲:
| トピック | 出題範囲 |
|---|---|
| トピック 1 |
|
| トピック 2 |
|
| トピック 3 |
|
| トピック 4 |
|
| トピック 5 |
|
質問 38
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
- A. A constructor that initializes a private Opportunity variable.
- B. A callback constructor to reference the StandardController.
- C. The Opportunity StandardController for pre -built functionality.
- D. The StandardSetController to support related lists for pagination.
正解: C
質問 39
A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? Choose 2 answers.
- A. Use Schema.RecordTypeInfo returned by
RecordType.SObjectType.getDescribe().getRecordTypeInfos(). - B. Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().
- C. Use Schema.RecordTypeInfo returned by
Opportunity.SObjectType.getDescribe().getRecordTypeInfos(). - D. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().
正解: B,C
質問 40
Given the following Anonymous Block:
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
- A. The try/catch block will handle any DML exceptions thrown.
- B. The transaction will fail due to exceeding the governor limit.
- C. The transaction will succeed and changes will be committed.
- D. The try/catch block will handle exceptions thrown by governor limits.
正解: B
質問 41
How can a developer warn users of SOQL governor limit violations in a trigger?
- A. Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.
- B. Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
- C. Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.
- D. Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.
正解: A
質問 42
A developer identifies the following triggers on the Expense_c object:
* DeleteExpense,
* applyDefaultstoexpense
* validateexpenseupdate;
The triggers process before delete, before insert, and before update events respectively.
Which two techniques should the developer implement to ensure trigger best practice are followed?
- A. Unify all three triggers in a single trigger on the Expense__c object that includes all events.
- B. Unify the before insert and before update triggers and use Process Builder for the delete action.
- C. Maintain all three triggers on the Expense__c object, but move the Apex logic out for the trigger definition.
- D. Create helper classes to execute the appropriate logic when a record is saved. (Missed)
正解: A,D
質問 43
When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers.
- A. An Apex trigger on the Account object.
- B. A cross-object formula field on the Account object
- C. A workflow rule on the Account object
- D. A process builder on the Account object
正解: A,D
質問 44
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers
- A. Time-Based Workflow Monitor
- B. Apex Flex Queue
- C. Paused Flow Interviews component
- D. Apex Jobs
正解: B,D
質問 45
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.
The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
- A. Create multiple lists in the controller that represent the relevant accounts for each account type when the page loads, then reference the correct one dynamically on the pageBlockTable.
- B. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
- C. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component
- D. Create a component for each option and use a variable with hide parameter on the element.
正解: B
質問 46
What is the accurate statement about with sharing keyword? choose 2 answers
- A. Both inner and outer class can be declared as with sharing
- B. Inner class inherit the sharing setting from the container class
- C. Inner class do not inherit the sharing setting from the container class
- D. Either inner class or outer classes can be declared as with sharing but not both
正解: A,C
質問 47
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component.
Which technique should be implemented to avoid reaching the governor limit?
- A. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
- B. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
- C. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
- D. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
正解: D
質問 48
Universal Containers (UC) has an integration with its Accounting system that creates tens of thousands of Orders inside of Salesforce in a nightly batch. UC wants to add automaton that can attempt to match Leads and Contacts to these Orders using the Email Address field on the insert. UC is concerned about the performance of the automation with a large data volume. Which tool should UC use to automate this process?
- A. Process Builder
- B. Process Builder with an Autolaunched Flow
- C. Workflow Rules
- D. Apex
正解: D
質問 49
Which three web technologies can be integrated into a Visualforce page? (Choose three.)
- A. HTML
- B. Java
- C. CSS
- D. JavaScript
- E. PHP
正解: A,B,C
質問 50
What should a developer do to check the code coverage of a class after running all tests?
- A. View the Class test Coverage tab on the Apex Class record.
- B. Select and run the class on the Apex Test Execution page
- C. view the overall Code Coverage panel of the tab in the Developer Console.
- D. View the Code Coverage column in the view on the Apex Classes page.
正解: A
質問 51
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URLWhich statement is unnecessary inside the unit test for the custom controller?
- A. ApexPages.currentPage().getParameters().put('input', 'TestValue')
- B. Test.setCurrentPage(pageRef),
- C. Public ExtendedController (ApexPages.StandardController cntrl) { }
- D. String nextPage = controller.save().getUrl();
正解: C,D
質問 52
Which statement is true about a hierarchical relationship as it pertains to user records?
- A. It uses a special lookup relationship to allow one user record to be related to another user record
- B. It uses a junction object and lookup relationships to allow many user records to be related to many other user records
- C. It uses a master-detail relationship to allow one user record to be related to another user record
- D. It uses a junction object and master-detail relationship to allow many user records to be related to many other user records
正解: A
質問 53
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
- A. LastName
- B. Name
- C. FirstName
- D. Accountld
正解: A
質問 54
What can be developed using the Lightning Component framework?
- A. Hosted web applications
- B. Salesforce integrations
- C. Dynamic web sites
- D. Single-page web apps
正解: D
質問 55
Candidates are reviewed by four separate reviewers and their comments and scores which range from 1 (lowest) to 5 (highest) are stored on a review record that is a detail record for a candidate what is the best way to indicate that a combined review score of 15 of better is required to recommend that the candidate come in for an interview?
- A. Use visual workflow to set a recommended field on the candidate whenever the cumulative review score is 15 or better
- B. Use a validation rule on a total score field on the candidate record that prevents a recommended field from being true if the total score is less than 15
- C. Use a rollup summary field to calculates the sum of the review scores, and store this in a total score field on the candidate
- D. Use a workflow rule to calculate the sum of the review scores and send an email to the hiring manager when the total is 15 or better
正解: D
質問 56
For which three items can a trace flag be configured? (Choose three.)
- A. Apex Trigger
- B. Process Builder
- C. User
- D. Visualforce
- E. Apex Class
正解: A,C,E
質問 57
What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
- A. When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted.
- B. A Lookup Relationship is a required field on an object.
- C. When a record of a master object in a Lookup Relationship is deleted, the detail records are also deleted.
- D. A Master-Detail Relationship detail record inherits the sharing and security of its master record.
正解: D
質問 58
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system.
Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers
- A. Use the @Readonly annotation and the with sharing keyword on the class.
- B. Use a regular expression expression on the parameter to remove special characters.
- C. Use the escapeSingleQuote method to sanitize the parameter before its use. (Missed)
- D. Use variable binding and replace the dynamic query with a static SOQL. (Missed)
正解: A,B
質問 59
Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers
- A. [find 'acme*'in all fields returning account,opportunity]
- B. [find 'acme*' in any fields returning account,opportunity]
- C. [find 'acme*' in text fields returning account,opportunity]
- D. [find 'acme*'returning account,opportunity]
正解: A
質問 60
What is the debug output of the following Apex code?
Decimal theValue;
System.debug (theValue);
- A. Undefined
- B. 0
- C. 0.0
- D. null
正解: D
質問 61
What actions types should be configured to display a custom success message?
- A. Post a feed item.
- B. Close a case.
- C. Update a record.
- D. Delete a record.
正解: C
質問 62
An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met?
- A. Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval.
- B. Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met.
- C. Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met.
- D. Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
正解: C
質問 63
......
Platform Developer I (PDI)練習テスト2022年最新のPDIをストレスなしで合格!:https://drive.google.com/open?id=19Ksnnkcrq0zS5Su5bV542eZyS0UdECMY
オンライン試験練習テストと詳細な解説付き!:https://jp.fast2test.com/PDI-premium-file.html