[2023年10月11日]PDII試験問題集でSalesforce練習テスト問題 [Q54-Q79]

Share

[2023年10月11日]PDII試験問題集でSalesforce練習テスト問題

最新でリアルなPDII試験問題集解答


PDII試験に合格した開発者には、多くの利点があります。彼らは、Salesforce開発の専門知識を実証し、より良い雇用機会とより高い給与につながる可能性があります。また、Salesforceプラットフォームに複雑なソリューションを設計および実装するための設備が整っており、組織が成長し成功するのに役立ちます。


PDII試験は、60の複数選択の質問と、Salesforceプラットフォームにカスタムアプリケーションを設計、開発、展開する能力をテストする5つのプログラミング割り当てで構成されています。試験に合格するには、複数選択セクションで少なくとも65%を獲得し、指定された時間枠内のすべてのプログラミング割り当てを完了する必要があります。

 

質問 # 54
Which of the following about Dynamic Apex is incorrect?

  • A. In dynamic SOQL, you can use bind variables and bind variable fields
  • B. getDescribe() can get you a variety of info on a particular object/field
  • C. Schema.getGlobalDescribeQ gives you a map of all sObject
  • D. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ

正解:A

解説:
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


質問 # 55
A developer gets an error saying 'Maximum Trigger Depth Exceeded.' What is a possible reason to get this error message?

  • A. A Process Builder is running that sends mass emails.
  • B. The SOQL governor limits are being hit.
  • C. There are numerous DML operations in the trigger logic.
  • D. Trigger is recursively invoked more than 16 times.

正解:D


質問 # 56
Which API can be used to execute unit tests? (Choose three.)

  • A. Streaming API
  • B. Metadata API
  • C. Tooling API
  • D. Test API
  • E. SOAP API

正解:B、C、E


質問 # 57
How long is field history retained?

  • A. 6 months
  • B. 12 months
  • C. 24 months
  • D. 18 months
  • E. 36 months

正解:D


質問 # 58
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 into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID
  • B. Instantiate the page reference in the test class, insert the Account 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 seeAllData=true to view the Account
  • D. 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

解説:
Explanation/Reference: https://salesforce.stackexchange.com/questions/48336/test-class-apex-page-parameters


質問 # 59
trigger AssignOwnerByRegion on Account ( before insert, before update )
{
List<Account> accountList = new List<Account>();
for( Account anAccount : trigger.new )
{
Region__c theRegion = [
SELECT Id, Name, Region_Manager__c
FROM Region__c
WHERE Name = :anAccount.Region_Name__c
];
anAccount.OwnerId = theRegion.Region_Manager__c;
accountList.add( anAccount );
}
update accountList;
}
Consider the above trigger intended to assign the Account to the manager of the Account's region.
Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.)

  • A. Remove the last line updating accountList as it is not needed.
  • B. Use a Map accountMap instead of List accountList.
  • C. Use a Map to cache the results of the Region__c query by Id.
  • D. Move the Region__c query to outside the loop.

正解:B、C


質問 # 60
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 DML outside of the for loop.
  • B. Use Triginstead.old instead of Trigger.new.
  • C. Move business logic inside the Opportunity trigger.
  • D. Move the SOQL to fetch the account record outside of the for loop.

正解:A、D


質問 # 61
What is the correct order of execution for Visualforce Page "get" requests (initial page visit)?

  • A. Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
    2) Evaluate constructors on controller and extensions
    3) Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
    4) If there's a <apex:form> element, create the view state
    5) Send HTML to Browser
  • B. Evaluate constructors on controller and extensions
    2) If there's a <apex:form> element, create the view state
    3) Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
    4) Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
    5) Send HTML to Browser
  • C. Evaluate constructors on controller and extensions
    2) Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
    3) Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
    4) If there's a <apex:form> element, create the view state
    5) Send HTML to Browser

正解:C


質問 # 62
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?
A)

B)

C)

D)

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

正解:A


質問 # 63
The maximum view state size of a visualforce page is______________.

  • A. 1mb
  • B. 135kb
  • C. 65kb
  • D. 165kb
  • E. 256kb

正解:B


質問 # 64
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. Sulld eMepcie, List<String> of Account Ic to aucit codes.
  • B. Add a WHERE clause to the SOQL query to filter on audit codes.
  • C. Add an initial SOQL query to get all distinct audit codes.
  • D. Build a Mep<String, list<Account>> of audit code to accounts,

正解:B、D


質問 # 65
A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time.
What is the optimal way to implement this?

  • A. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
  • B. Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly.
  • C. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.
  • D. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.

正解:B

解説:
Explanation/Reference:


質問 # 66
Given the following code:

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

  • A. System. QueryException: List has more than one row after Assignment on Account.
  • B. System. QueryException: To many DML Statement errors on Contact
  • C. System. LimitException: Too many SOQL Queries on Contract
  • D. System. LimitException: To many SOQL Queries on Account.

正解:A


質問 # 67
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.

When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.
What is the optimal way to implement this?

  • A. Add an <apex: actionSupport> within the <apex:selectList>.
  • B. Add an <apex: actionFunction> within the <apex : selectOptions>.
  • C. Add an <apex: actionFunction> within the <apex: select List >.
  • D. Add an <apex: actionSupport> within the <apex: selectOptions>.

正解:C


質問 # 68
Where in Apex execution can a callout be made? Choose 2 answers

  • A. Trigger context.
  • B. After SOQL queries.
  • C. After DML operations
  • D. In @future context.

正解:B、D


質問 # 69
What are three benefits of using declarative customizations over code? (Choose three.)

  • A. Declarative customizations cannot generate run time errors.
  • B. Declarative customizations are not subject to governor limits.
  • C. Declarative customizations generally require less maintenance.
  • D. Declarative customizations do not require user testing.
  • E. Declarative customizations will automatically update with each Salesforce release.

正解:B、C、E


質問 # 70
A developer is building a Visualforce page that interacts with external services. Which interface should the developer implement to test this functionality? Choose 2 answers

  • A. HTTPRequestMock
  • B. HTTPCalloutMock
  • C. HTTPResponseMock
  • D. StaticResourceCalloutMock

正解:B、D


質問 # 71
An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.

A new process on the case object was just created in production for when a Case is created or updated< since the process was created, they are reports that the Count is being incremented by more than one on Case edit.
Which change in the Apex code will fix the problem?
A)

B)

C)

D)

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

正解:A


質問 # 72
Exhibit.

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information... about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?
Choose 3 answers

  • A. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
  • B. Annotate the Apex method with gAuraEnabled-
  • C. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
  • D. Implement the without sharing keyword in the class declaration.
  • E. Implement the with sharing keyword in the class declaration.

正解:A、C、E


質問 # 73
A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.

Which two lines must change in the above ode to make the Apex method able to be wired?
Choose 2 answers

  • A. Add @AuraEnabled (cacheabletrue) to line 03.
  • B. Remove private from line 09.
  • C. Add AuraEnanled(cacheabletrue) to the line 08
  • D. Add public to line 04.

正解:A、D


質問 # 74
A Lightning Component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the Description field output on their mobile devices and tablets.

Which option has the changes to make the component responsive for mobile and tablet devices?

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

正解:D


質問 # 75
What is the top-level namespace that provides the ability to use Chatter in Apex?

  • A. ChatterApi
  • B. RestApi
  • C. ConnectApi
  • D. FeedApi

正解:C


質問 # 76
Exhibit.

What must be added to get the data?

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

正解:D


質問 # 77
A developer has created a Lightning web component that uses the getRecord wire adapter.
Which three things should the developer do in a Jest test to validate the wire method is working as expected?
Choose 3 answers

  • A. Use an assert statement to validate results.
  • B. Import mrf from iwe.
  • C. Import getRecord from lightning/uiRecordAp1
  • D. Create a JSON file with mode data.
  • E. Use the API.

正解:A、B、C


質問 # 78
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
A)

B)

C)

D)

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

正解:A


質問 # 79
......


PDII認定試験では、Apexプログラミング、稲妻コンポーネント、アプリケーション設計など、Salesforce開発に関連する幅広いトピックをカバーしています。成功した候補者は、Salesforce開発プラットフォームを強く理解し、ビジネス要件を満たす複雑なアプリケーションを設計および開発できるようになります。 PDII認定は、Salesforce開発者コミュニティで高く評価されており、この分野でのキャリアを前進させようとする開発者にとって貴重な資産です。

 

PDII認証試験問題集解答を提供しています:https://drive.google.com/open?id=13_CnaUQ4Ukv87qUqAnJpEDs47zUQAEBH

あなたを簡単に合格させるPDII試験正確なPDF問題:https://www.goshiken.com/Salesforce/PDII-mondaishu.html