PDII認定お試し[2023年11月19日] 最新PDIIのPDF問題集 [Q21-Q39]

Share

PDII認定お試し[2023年11月19日] 最新PDIIのPDF問題集

ベストSalesforce PDII学習ガイドと問題集でof2023年更新

質問 # 21
A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?

  • A. The callouts will be made in an Apex Trigger.
  • B. over 10 callouts will be made in a single transaction.
  • C. The callouts will be made in an Apex Test class.
  • D. The callout could take longer than 60 seconds to complete.

正解:A


質問 # 22
A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
Which modification to the method is necessary?

  • A. The method must be decorated with (cacheable=true).
  • B. The method must return a JSON Object.
  • C. A The method must be decorated with AuraEnabled.
  • D. The method must return a String of a serialized JSON Array.

正解:C


質問 # 23
A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.
Exhibit.

What must be added to get the data?

  • A. Add this, account = getData (this,name); to the loadData ( ) function.
  • B. Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
  • C. Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
  • D. Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.

正解:B


質問 # 24
Choose the correct definition for <apex:pageMessages>

  • A. Standard Salesforce formatting, throws a specific message on a page
  • B. No formatting; displays all errors on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function
  • C. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the
    "ApexPages.addMessage" function
  • D. A single message, without formatting, that can be associated with a specific component on the page

正解:C


質問 # 25
Users report that a button on a custom Lightning Web Component is not working. However, there are no other details provided. What should the developer use to ensure error messages are properly displayed?

  • A. Add a Try/Catch block surrounding the DML statement.
  • B. Add JavaScript and HTML to display an error message.
  • C. Use the Database method with allOrNone set to false.
  • D. Add the <apex:messages/> tag to the component.

正解:D


質問 # 26
A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution.
How should the developer implement error exception handling in their code to handle this?

  • A. Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement.
  • B. Use a Try/Catch statement and handle DML cleanup in the catch statement.
  • C. Use a Try/Catch and use sObject.addError() on any failures.
  • D. Use Database methods to obtain lists of Database.SaveResults.

正解:A


質問 # 27
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

  • A. convertCurrency()
  • B. Custom Labels
  • C. Translation Workbenc
  • D. Global Labels
  • E. getLocalCurrency()

正解:A、B、C

解説:
Explanation


質問 # 28
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library.
Which statement properly loads the static resource within the LWC?

  • A. <lightning-require scripts=N { ! SReaource. j sUtils}''/>
  • B. import {jsUtilities} from '@salesforce/reaourceUrljsUtila';
  • C. const jsUtility = SA.get ('SReaource.jsUtils');
  • D. import jUtilities from '@salesforce/reaourceUrljsUtila';

正解:D


質問 # 29
Which use case can be performed only by using asynchronous Apex?

  • A. Making a call to schedule a batch process to complete in the future
  • B. Querying tens of thousands of records
  • C. Updating a record after the completion of an insert
  • D. Calling a web service from an Apex trigger

正解:D


質問 # 30
To reduce the amount of time needed to write test coverage, a developer wants to use a spreadsheet uploaded as a Static Resource to supply test data in a test method. What code can the developer use to accomplish this?

  • A. List< sObject> testAccounts = (List< Count>) [Select Id, Body from StaticResource Where Name = testAccounts
  • B. List< sObject> testAccounts = Test . loadData( [Select Id,Body from StaticResource Where Name
    =testAccounts
  • C. < meta charset="utf-8" />List< sObject> testAccounts = Test . loadData (Account.sObjectType, ' testAccounts');
  • D. List< sObject> testAccounts = Test . loadData (Account .sObjectType, SResource. testAccounts)

正解:C


質問 # 31
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?
A)

B)

C)

D)

  • A. Option B
  • B. Option C
  • C. Option D
  • D. Option A

正解:C


質問 # 32
The Account object has a field, auais_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Ruditor_c, that is the assigned auditor.
When an Account is initially created, the user specifies the Audit_Code__c. Each User in the org has a unique text field, Rudi.
that is used to automatically assign the correct user to the Account's Auditor__c field.

What should be changed to most optimize the code's effidency?
Choose 2 answers

  • A. Add an initial SOQL query to get all distinct audit codes.
  • B. Build a Mep<String, list<Account>> of audit code to accounts,
  • C. Sulld eMepcie, List<String> of Account Ic to aucit codes.
  • D. Add a WHERE clause to the SOQL query to filter on audit codes.

正解:B、D


質問 # 33
A company has a custom object. Request__c. that has a field, Completed__c. and a Lookup to Opportunity, Opportunity__c.
Which SOQL query will get a unique list of all of the Opportunity records that have a Completed Request?

  • A.
  • B.
  • C.
  • D.

正解:C


質問 # 34
The following code segment is railed from a Trigger handler class from the Opportunity trigger:

Which two changes should improve this code and make it more efficient? Choose 2 answers

  • A. Move the SOQL to fetch the account record outside of the for loop.
  • B. Move business logic inside the Opportunity trigger.
  • C. Move the DML outside of the for loop.
  • D. Use Triginstead.old instead of Trigger.new.

正解:A、C


質問 # 35
Which code statement includes an Apex method named updateAccount in the class AccountController for use in a Lightning web component?

  • A. Import updateAccounts from @salesforceapexAccountControllerupdateAccounts';
  • B. Import updateAccounts from AccountController';
  • C. Import updateAccounts from AccountControllerupdateAccount';
  • D. Import updateAccounts from @salesforceapex AccountController';

正解:A


質問 # 36
Exhibit.

What must be added to get the data?

  • A. Add this, account = getData (this,name); to the loadData ( ) function.
  • B. Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
  • C. Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
  • D. Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.

正解:B


質問 # 37
If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?

  • A. <apex:pageMessages>
  • B. <apex:message>
  • C. <apex:error>
  • D. <apex:outputText>

正解:A


質問 # 38
The Bulk API__________.

  • A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
  • B. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
  • C. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
  • D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment

正解:A


質問 # 39
......


試験は60問の多肢選択問題と5つのコーディング課題から構成され、3時間半以内に完了する必要があります。コーディング課題は、Apex、Visualforce、およびLightning Componentsを使用して複雑な問題を解決する能力を測定するために設計されています。

 

有効なPDII試験 最新問題で2023年最新の学習ガイド:https://jp.fast2test.com/PDII-premium-file.html

トップクラスSalesforce PDII試験最先端学習ガイド!練習問題バージョン:https://drive.google.com/open?id=1QEDRvG94j3DC1q84IEusUtlqOjNwbeqH


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어