
リアルなPDIは100%カバー試験問題をゲット [2022年03月]
問題集まとめ概要はPDI試験問題集はここ
質問 121
How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)
- A. By using a helper class that can be invoked from multiple triggers
- B. By using the Database class to handle DML transactions
- C. By performing DML transactions on a list of sObjects.
- D. By using Maps to hold data from query results
正解: C,D
質問 122
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
- A. Limits
- B. OrgLimits
- C. Messaging
- D. Exception
正解: A
質問 123
The following Apex method is part of the ContactService class that is called from a trigger: public static void setBusinessUnitToEMEA(Contact thisContact){ thisContact.Business_Unit__c = "EMEA" ; update thisContact; } How should the developer modify the code to ensure best practice are met?
- A. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
for(ContactthisContact : contacts) {
thisContact.Business_Unit__c = 'EMEA' ;
}
update contacts;
} - B. Public void setBusinessUnitToEMEA(List<Contact> contatcs){
contacts[0].Business_Unit__c = 'EMEA' ;
update contacts[0];
} - C. Public static void setBusinessUnitToEMEA(Contact thisContact){
List<Contact> contacts = new List<Contact>();
contacts.add(thisContact.Business_Unit__c ='EMEA');
update contacts;
} - D. Publicstatic void setBusinessUnitToEMEA(List<Contact> contacts){
for(Contact thisContact : contacts){
thisContact.Business_Unit__c = 'EMEA' ;
update contacts[0];
}
}
正解: C
質問 124
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
- A. Performance Tree tab under Stack Tree panel
- B. Timeline tab under Execution Overview panel
- C. Save Order tab under Execution Overview panel
- D. Execution Tree tab under Stack Tree panel
正解: B
質問 125
A developer is asked to create a Visualforce page that displays some Account fields as well as fields configured on the page layout for related Contacts.
How should the developer implement this request?
- A. Use the <apex:relatedList> tag.
- B. Create a controller extension.
- C. Use the <apex:include> tag.
- D. Add a method to the standard controller.
正解: A
質問 126
A sales manager wants to make sure that whenever an opportunity stage is changed to 'Closed Won', a new case will be of created for the support team to collect necessary information from the customer. How should a developer accomplish this?
- A. Create a workflow rule to create the new case.
- B. Create a Process Builder to create the new case.
- C. Set up a validation rule on the Opportunity Stage.
- D. Create a lookup field to the Case object on the opportunity object.
正解: B
質問 127
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
質問 128
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
- A. A visualforce page that calculates the total number of hours for a timecard and displays it on the page.
- B. A Process Builder process that updates a field on the timecard entry is created.
- C. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.
- D. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.
正解: D
質問 129
Which statement would a developer use when creating test data for products and pricebooks?
- A. IsTest(SeeAllData = false);
- B. Pricebook pb = new Pricebook();
- C. List objList = Test.loadData(Account.sObjectType, 'myResource');
- D. Id pricebookId = Test.getStandardPricebookId();
正解: D
質問 130
Which action can a developer perform in a before update trigger? (Choose 2)
- A. Delete the original object using a delete DML operation.
- B. Change field values using the Trigger.new context variable.
- C. Update the original object using an update DML operation.
- D. Display a custom error message in the application interface.
正解: B,D
質問 131
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
質問 132
What are two characteristics related to formulas? Choose 2 answers.
- A. Formulas can reference values in related objects.
- B. Formulas are calculated at runtime and are not stored in the database.
- C. Formula can reference themselves.
- D. Fields that are used in a formula field can be deleted or edited without the formula.
正解: A,B
質問 133
A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?
- A. Mark the field as Required on the field definition.
- B. Set "Use the first value in the list as the default value" as True.
- C. Set a validation rule to enforce a value is selected.
- D. Mark the field as Required on the object's page layout.
正解: D
質問 134
A company has a custom object named Region. Each account in salesforce can only be related to one region at a time, but this relationship is optional. Which type of relantionship should a developer use to relate an account to a region?
- A. Hierarchical
- B. Master-detail
- C. Lookup
- D. Parent-child
正解: B
質問 135
A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers
- A. Throw new RecordNotFoundException();
- B. throw RecordNotFoundException("problem occured");
- C. Throw new RecordNotFoundException("problem occured");
- D. Throw RecordNotFoundException();
正解: A,C
質問 136
How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?
- A. Reference the Set in the WHERE clause of the query
- B. Pass the query results as an argument in a reference to the Set.containsAll() method.
- C. Reference the Set in the LIMIT clause of the query
- D. Pass the Set as an argument in a reference to the Database.query() method
正解: A
質問 137
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers
- A. Test.setCurrentPage(pageRef);
- B. String nextPage - controller.save().getUrl();
- C. insert pageRef.
- D. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');
- E. public ExtendedController(ApexPages StandardController cntrl) { }
正解: A,B,D
質問 138
A Salesforce developer wants to review their code changes immediately and does not want to install anything on their computer or on the org.
Which tool is best suited?
- A. Setup Menu
- B. Third-party apps from App Exchange
- C. Developer Console
- D. Salesforce Extension for VSCode
正解: C
質問 139
A developer needs to import customer subscription records into salesforce and attach them to existing account records. Which 2 actions should the developer take to ensure the subscription records are related to the correct account records? Choose 2 answers
- A. Match the id field to a column in the imported file
- B. Match an auto-number field to a column in the imported file
- C. Match the name field to a column in the imported file
- D. Match an external ID text field to a column in the imported file
正解: A,D
質問 140
Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages?
- A. A list of Account records returned from a Controller Extension method
- B. A Controller Extension method that saves a list of Account records
- C. A Controller Extension method that uses SOQL to query for a list of Account records
- D. Custom JavaScript that processes a list of Account records
正解: A
質問 141
For which example task should a developer use a trigger rather than a workflow rule?
- A. To set the primary Contact on an Account record when it is saved
- B. To send an email to hiring manager when a candidate accepts a job offer.
- C. To set the Name field of an expense report record to Expense and the Date when it is saved.
- D. To notify an external system that a record has been modified.
正解: A
質問 142
A developer needs to implement the functionality for a service agent to gather multiple pieces of information from a customer in order to send a replacement credit card.
Which automation tool meets these requirements?
- A. Flow Builder
正解: A
質問 143
Universal Container use a simple order Management app. On the Order Lines, the order line total is calculated by multiplying the item price with the quantity ordered. There is a Master-Detail relationship between the Order and the Order Lines object.
What is the practice to get the sum of all order line totals on the order header?
- A. Process Builder
- B. Declarative Roll-Up Summaries App
- C. Apex Trigger
- D. Roll-Up Summary Field
正解: D
質問 144
......
認定トレーニングはPDI試験問題集テストエンジン:https://jp.fast2test.com/PDI-premium-file.html
PDIトレーニングと認定最新のSalesforce PDI問題をゲットせよ:https://drive.google.com/open?id=157kcR1LNrObqpD_n5BoeqKdXBabLQEs1