PDII試験問題集を試そう!ベストPDII試験問題トレーニングを提供しています
実践サンプルと問題集指導には2024年最新のPDII有効なテスト問題集
質問 # 74
Refer to the Aura component below:
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?
- A. Move the contents of <c: contactInfo into the componant.
- B. Add a change event handler for showContactInfo.
- C. Change the default for showContactInfo to "False.
- D. Change the type of contactInfo to "Map".
正解:C
質問 # 75
<lightning: layout multipleRows="true"> <lightning: layoutItem size="12">{!v.account.Name} </flighting: layoutitem> <lightning:layoutitem 3ize="12">{!v. account .AccountNumber} </lighting: layoutitem> <lightning: layoutitem size="12">{!v.account. Industry} </lighting: layoutitem> </lightning: layout> Refer to the component code above. The information displays as expected (in three rows) on a mobile device. However, the information is not displaying as desired (in a single row) on a desktop or tablet. Which option has the correct component changes to display correctly on desktops and tablets?
- A.

- B.

- C.

- D.

正解:C
質問 # 76
Refer to re code segment above.
When following best practices for writing Apex taggers, which two lots are wrong or cause for concern?
Choose 2 answers
- A. Line 20
- B. Line 16
- C. Line 11
- D. Line 6
正解:A、D
質問 # 77
Which of the following standard fields are indexed? Choose three answers
- A. Name
- B. SystemModStamp
- C. CreatedBy
- D. LastModifedDate
- E. RecordType
正解:A、B、E
質問 # 78
Which of the following about Dynamic Apex is incorrect?
- A. Schema.getGlobalDescribeQ gives you a map of all sObject
- B. getDescribe() can get you a variety of info on a particular object/field
- C. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
- D. In dynamic SOQL, you can use bind variables and bind variable fields
正解:D
解説:
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
質問 # 79
Universal Containers has an existing automation where a custom record called Account Plan is created upon an Account being marked as a Customer. Recently, a Workflow Rule was added so that whenever an Account is marked as a Customer, a 'Customer Since' date field is updated with today's date.
Now, since the addition of the Workflow Rule, two Account Plan records are created whenever the Account is marked as a Customer.
What might cause this to happen?
- A. The Apex Trigger responsible for the record creation is not bulk sate and calls insert inside of a for loop.
- B. The Workflow Rule responsible for the record creation fires twice because the 'Customer Since' field Update Is marked as 'Re-evaluate Workflow Rules After Field Change
- C. The Process Builder responsible for the record creation fires before and after the Workflow rule.
- D. The Apex Trigger responsible for the record creation does not use a static variable to ensure It only fires once.
正解:B
質問 # 80
Consider the following code snippet:
A developer created the following test class to provide the proper code coverage for the snippet above:
However, when the test runs, no data is returned and the assertion fails.
However, when the test runs, no data is returned and the assertion fails.
Which edit should the developer make to ensure the test class runs successfully?
- A. Implement the setFixedSearchResults method in the test class.
- B. Enclose the method call within Test. startTest () and Test , stop Test ()
- C. Implement the without sharing keyword in the searchfeature Apex class.
- D. Implement the seeAllData=true attribute in the @isTest annotation.
正解:A
質問 # 81
A company has a Request__c object that has a lookup to the Opportunity object and a custom field. Status__c, with values of Open,' Closed,
and Invalid.' An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value
of Open or 'Closed.'
what is the optimal way to enforce the requirement to prevent deletion?
- A. A Process on Opportunity
- B. An Apex Trigger on Request__c
- C. An Apex Trigger on Opportunity
- D. A Process on Request__c
正解:C
質問 # 82
A developer has working business logic code, but sees the following error in the test class:
You have uncommitted work pending. Please commit or rollback before calling out. What is a possible solution?
- A. Use test.IsRunningTest() before making the callout to bypass it in test execution.
- B. Rewrite the business logic and test classes with ©TestVisible set on the callout.
- C. Set seeAIIData to "true" at the top of the test class, since the code does not fail in practice.
- D. Call support for help with the target endpoint, as it is likely an external code error.
正解:A
質問 # 83
A software company uses a custom object, Defact__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect_ c has a related list of Reviewer < records, each with a lookup field to User that is used to indicate that the User will review the defect__c.
What should be used to give the User on the Reviewer_c record read only access to the Defect__c record on the Reviewer_c record?
- A. View All on Defect__c
- B. Lightning web component
- C. Criteria-based sharing
- D. Apex managed sharing
正解:D
質問 # 84
How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?
- A. 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.
- 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. 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.
- D. Instantiate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
正解:C
質問 # 85
A Salesforce Platform Developer is leading a team that is tasked with deploying a new application to production. The team has used source-driven development, and they want to ensure that the application is deployed successfully.
What tool or mechanism should be used to verify that the deployment is successful?
- A. Apex Test Execution
- B. Salesforce DX CLI
- C. Salesforce Inspector
- D. Force.com Migration Tool
正解:B
質問 # 86
What tool in the Developer Console contains information on SOQL query Cardinality?
- A. View State Tab
- B. Query Plan Tool
- C. Checkpoints tab
- D. Log Inspector
- E. Query Editor
正解:B
解説:
Explanation/Reference:
質問 # 87
A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object. What is the recommended mechanism the developer should use to accomplish this?
- A. Metadata API
- B. Apex API
- C. Schema Builder
- D. Schema class
正解:D
質問 # 88
A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce.
This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts.
Which two recommendations should make this process more efficient?
Choose 2 answers
- A. Identify unique fields on Order and Account and set them as External IDs.
- B. Use the insert wizard in the Data Loader to import the data.
- C. Use the upsert wizard in the Data Loader to import the data.
- D. Ensure the data in the file is sorted by the order ID.
正解:A、C
解説:
The two recommendations that should make this process more efficient are to identify unique fields on Order and Account and set them as External IDs, and to use the upsert wizard in the Data Loader to import the data. External IDs are custom fields that have the External ID attribute enabled, which allows the developer to use them as a unique identifier for the records. By setting the unique fields on Order and Account as External IDs, the developer can avoid the need to export and update the Account IDs, and instead use the External IDs to relate the Orders to the Accounts. The upsert wizard in the Data Loader is a tool that allows the developer to insert or update records based on the External ID or the Salesforce ID. By using the upsert wizard, the developer can import the data in one operation, and avoid creating duplicate records. Using the insert wizard in the Data Loader to import the data will not make the process more efficient, as it will require the developer to export and update the Account IDs, and also handle the duplicate records. Ensuring the data in the file is sorted by the order ID will not make the process more efficient, as it will not affect the relationship between the Orders and the Accounts, or the insertion or update of the records. Reference: [External ID Field], [Data Loader Guide], [Trailhead: Data Import and Export Basics]
質問 # 89
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account. How can a developer fix this error?
- A. Split the trigger logic into two separate triggers.
- B. Modify the trigger to use the L=MultiThread=true annotation,
- C. Use a helper class to set a Boolean to TRUE the first time a trigger 1s fired, and then modify the trigger ta only fire when the Boolean is FALSE.
- D. Convert the trigger to use the 3suzure annotation, and chain any subsequent trigger invocations to the Account object.
正解:C
質問 # 90
......
最新100%合格率保証付きの素晴らしいPDII試験問題PDF:https://jp.fast2test.com/PDII-premium-file.html
PDII有効な認定試験問題集解答学習ガイド:https://drive.google.com/open?id=1QEDRvG94j3DC1q84IEusUtlqOjNwbeqH