更新されたPDF(2025年最新)実際にあるSalesforce PDI試験問題 [Q33-Q48]

Share

更新されたPDF(2025年最新)実際にあるSalesforce PDI試験問題

検証済みのPDI試験問題集PDF[2025年最新] 成功の秘訣はFast2test

質問 # 33
Which two statements are accurate regarding Apex classes and interfaces?
Choose 2 answers

  • A. A top-level class can only have one inner class level.
  • B. Inner classes are public by default.
  • C. Classes are final by default.
  • D. Interface methods are public by default.

正解:A、D


質問 # 34
A developer created a trigger on a custom object. This custom object also has some dependent pick lists.
According to the order of execution rules, which step happens first?

  • A. Old values are overwritten with the new record values.
  • B. System validation is run for maximum field lengths.
  • C. JavaScript validation is run in the browser,
  • D. The original record is loaded from the database.

正解:D

解説:
Order of Execution Rules:
Step 1: Original record is loaded from the database.
Step 2: Field-level validations are performed, including maximum field lengths.
Step 3: Old values are overwritten with new record values.
Step 4: JavaScript validation runs in the browser.
References:Order of Execution Rules:https://developer.salesforce.com/docs/atlas.en-us.238.0.
salesforce_appdevelopment.meta/salesforce_appdevelopment/apex_triggers_order_of_execution.htm


質問 # 35
A developer creates a custom exception as shown below:
public class ParityException extends Exception { }
What are two ways the developer can fire the exception in Apex?

  • A. throw new parityException ('parity does not match');
  • B. new ParityException('parity does not match');
  • C. throw new ParityException ();
  • D. new ParityException ();

正解:A、C


質問 # 36
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.
When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?

  • A. @RemoteAction
  • B. @InvocableMethod
  • C. @future
  • D. @AuraEnaled

正解:B


質問 # 37
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

  • A. ernit()
  • B. fireEvent()
  • C. registerEvent()
  • D. fire()

正解:D


質問 # 38
What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.)

  • A. Use the SOAP API to make a call to execute anonymous code.
  • B. Run code using the Anonymous Apex feature of the Developer's IDE.
  • C. Create and execute a test method that does not specify a runAs() call.
  • D. Type code into the Developer Console and execute it directly.
  • E. Create a Visualforce page that uses a controller class that is declared without sharing.

正解:A、B、D


質問 # 39
A developer wrote Apex code that calls out to an external system using REST API.
How should a developer write the test to prove the code is working as intended?

  • A. Write a class that extends HTTPcalloutMock.
  • B. Write a class that implements webservicemock.
  • C. Write a class that extends webserviceloo.
  • D. Write a class that implements HTTPcalloutMock.

正解:D


質問 # 40
While writing an Apex class, a developer wants to make sure that all functionality being developed is handled as specified by the requirements.
Which approach should the developer use to be sure that the Apex class is working according to specifications?

  • A. Create a test class to execute the business logic and run the test in the Developer Console.
  • B. Include a try/catch block to the Apex class.
  • C. Include a savepoint and pacabase.rollback().
  • D. Run the code in an Execute Anonymous block in the Developer Console.

正解:A

解説:
Creating test classes ensures that the Apex class works according to specifications by validating the functionality under various scenarios and edge cases. Running tests in the Developer Console provides detailed feedback on whether the class meets requirements.
Reference:Testing Apex
Incorrect Options:
A:Savepoints and rollbacks are used to manage transactions, not for validation.
B:Try/catch blocks handle exceptions but do not ensure the code adheres to specifications.
C:Execute Anonymous only tests small portions of code interactively, not comprehensive functionality.


質問 # 41
Which two characteristics are true for Lightning Web Component custom events?
Choose 2 answers

  • A. By default a custom event only propagates to it's immediate container.
  • B. Data may be passed in the payload of a custom event using @wire decorated properties.
  • C. By default a custom event only propagates to its immediate container and to its immediate child component.
  • D. Data may be passed In the payload of a custom event using a property called detail.

正解:C、D

解説:
Option B:Custom events in LWC allow data to be passed using thedetailproperty of theCustomEventobject.
This is the recommended way to pass data in a custom event.
Reference:Custom Events in LWC
Option C:By default, custom events propagate to their immediate parent and child components. Additional propagation can be managed using thecomposedandbubblesproperties.
Reference:Event Propagation in LWC


質問 # 42
Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. which Visualforce feature supports this requirement?

  • A. Controller extension
  • B. Custom controller
  • C. RecordSetVar page attribute
  • D. <apex:listButton> tag

正解:C


質問 # 43
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?

  • A. Declare maxattempts as a private static variable on a helper class
  • B. Declare maxattempts as a member variable on the trigger definition.
  • C. Declare maxattempts as a variable on a helper class
  • D. Declare maxattempts as a constant using the static and final keywords

正解:D


質問 # 44
Which SOQL query successfully returns the Accounts grouped by name?

  • A. SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name
  • B. SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5
  • C. SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name
  • D. SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name

正解:C


質問 # 45
Which two components are available to deploy using the METADATA API? Choose 2 answers

  • A. Web-to-Lead
  • B. Case Settings
  • C. Lead Conversion Settings
  • D. Web-to-Case

正解:B、C


質問 # 46
A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.
The following code is executed in the Developer Console using the Execute Anonymous window:

How many total accounts will be in the org after this code Is executed?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解:B


質問 # 47
A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to include helper methods that are not used by the Web Application in the implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?

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

正解:C


質問 # 48
......

ベストを体験せよ!PDI試験問題トレーニングを提供しています:https://jp.fast2test.com/PDI-premium-file.html

練習サンプルと問題集と秘訣には2025年最新のPDI有効なテスト問題集:https://drive.google.com/open?id=1GgO7OZlLWRuVvhYqaTVGXd5RJiZUHnH8


弊社を連絡する

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

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

サポート: 現在連絡 

English Deutsch 繁体中文 한국어