Latest PDII-JPN Study Guides 2026 - With Test Engine PDF [Q35-Q52]

Share

Latest PDII-JPN Study Guides 2026 - With Test Engine PDF

Get New PDII-JPN Practice Test Questions Answers

NEW QUESTION # 35
リアルタイム通知が必要ない場合に、開発者がユーザが最後に Salesforce にログインした時期を確認できる Salesforce 機能はどれですか?

  • A. 開発者ログ
  • B. カレンダーイベント
  • C. 非同期データキャプチャイベント
  • D. イベント監視ログ

Answer: D

Explanation:
Event Monitoring Log provides the ability to track different types of events in Salesforce, including user logins. These logs can be used to determine the last login time of a user without the need for real-time notification.
References: Salesforce Help - Event Monitoring


NEW QUESTION # 36
以下のテスト方法を参照してください。

このテストメソッドは、多くの取引先が同時に顧客に更新されるときに、開発者が多くのクエリを実行することがわかっている Apex トリガをテストします。
SOQL クエリが多すぎるため、テストメソッドは 20 行目で失敗します。
これを修正する正しい方法は何ですか?

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

Answer: B

Explanation:
The correct way to fix this is to add Test.startTest() before and add Test.stopTest() after Line 18 of the code.
This will reset the governor limits for the code that executes between these two methods, and allow the test to run without hitting the SOQL query limit. The Test.startTest() and Test.stopTest() methods are used to test code that makes a lot of queries or calls asynchronous methods12. By using these methods, the developer can isolate the code that needs more resources and verify that it does not exceed the governor limits.
:
Using Limits, startTest, and stopTest | Apex Developer Guide | Salesforce Developers Test.StartTest & Test.StopTest - Salesforce Developer Community Why would a developer use test startTest and test stopTest in Salesforce? | ForceTalks


NEW QUESTION # 37
Universal Containers は、未処理の例外が発生した場合に、Apex を使用してカスタムイベントを公開することで外部システムに通知したいと考えています。
この要件を満たす適切なパブリッシュ/サブスクライブ ロジックは何ですか?

  • A. 外部システムにイベント チャネルをサブスクライブさせます。出版する必要はありません。
  • B. Eventtrus.publish() メソッドを使用してエラー イベントを発行し、CometD を使用して外部システムにイベントをサブスクライブさせます。
  • C. addError() メソッドを使用してエラー イベントを発行し、イベントをサブスクライブして外部システムに通知するトリガーを作成します。
  • D. addError() メソッドを使用してエラー イベントを発行し、CometD を使用して外部システムにイベントをサブスクライブさせます。

Answer: B

Explanation:
The appropriate publish/subscribe logic to meet this requirement is to publish the error event using the EventBus.publish() method and have the external system subscribe to the event using CometD. The EventBus.publish() method allows the developer to publish a custom event using Apex, and specify the event type, payload, and channel. The external system can use CometD, which is a scalable HTTP-based event routing bus, to subscribe to the event channel and receive the event notifications. The addError() method is not a valid answer, as it is used to display a custom error message on a record or a field, but it does not publish an event. The without keyword is not a valid answer, as it is used to ignore the sharing rules and permissions of the current user when accessing the records, but it does not affect the event publishing or subscribing. The event channel is not a valid answer, as it is the name of the channel that the event is published to or subscribed from, but it does not initiate the publish/subscribe logic by itself. Reference: [Publish and Subscribe to Platform Events Using Apex], [Subscribe to Platform Events Using CometD], [Apex Developer Guide]


NEW QUESTION # 38
次のクエリを検討してください。これらのクエリでは、200,000 を超える取引先レコードがあると想定しています。これらのレコードには、論理的に削除されたレコードが含まれます。つまり、まだごみ箱にある削除済みレコードです。アカウントには、外部 ID としてマークされている 2 つのフィールドがあることに注意してください。これらのフィールドは Customer_Number__c と ERP_Key__c です。
大量のデータに対して最適化されている 2 つのクエリはどれですか? 2つの答えを選択してください

  • A. SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA'
  • B. SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false
  • C. SELECT Id FROM Account WHERE Id IN : aListVariable
  • D. SELECT Id FROM Account WHERE Name != NULL

Answer: A,C


NEW QUESTION # 39
"PageReference.setRedirect" Apex 関数が True に設定されている場合、どのタイプのリクエストが行われますか?

  • A. 取得リクエスト
  • B. PageReference が同じコントローラーと拡張機能のサブセットを指している場合、ポストバック要求、そうでない場合は要求を取得
  • C. ポストバック リクエスト

Answer: A


NEW QUESTION # 40
組織には、アカウントにプライマリとしてリストされる連絡先が常に 1 つだけ存在する必要があるという要件があります。したがって、1 つの連絡先を選択すると、他の連絡先の選択が解除されます。クライアントは、この機能を制御するために、連絡先に「Is Primary」というチェックボックスを追加したいと考えています。
また、クライアントは、すべての連絡先の姓が完全に大文字で保存されていることを確認したいと考えています。
これらの要件を実装する最適な方法は何でしょうか?

  • A. 更新後と更新前の両方に対して単一のトリガーを Contact に書き込み、各ロジック セットを処理するヘルパー クラスへのコールアウトを作成します。
  • B. Is Primary ロジックの Account に更新後トリガーを書き込み、姓ロジックの Contact に before update トリガーを書き込みます。
  • C. Is Primary ロジックの場合は Contact に更新後トリガーを記述し、姓ロジックの場合は Contact に別の更新前トリガーを記述します。
  • D. Is Primary ロジックの場合は Contact に検証ルールを記述し、姓ロジックの場合は Contact に更新前トリガーを記述します。

Answer: A


NEW QUESTION # 41
ある開発者が、トリガ、ワークフロー ルール、Apex クラス、および
プロセス。開発者は、アプリケーションの開発時に実行順序を慎重に検討する必要があります。
1.トリガー前
2.トリガー後
3. 電子メールの送信などのポスト コミット ロジック
4. データベースにコミットされた DML
5. ワークフローのルール
6. 積み上げ集計計算
次の操作はどのような順序で実行されますか?

  • A. 1,6,5,2,4,3
  • B. 1,5,6,2,4,3
  • C. 1,2,5,6,4,3
  • D. 1,2,4,5,6,3

Answer: C


NEW QUESTION # 42
Visualforce ページは、連絡先の null オブジェクトを逆参照しようとするエラーをスローします。コントローラーのどの変更でエラーが修正されますか?

  • A. getter で条件を使用して、null の場合に新しい連絡先を返します。
  • B. getter の署名を static Contact に変更します。
  • C. セッターの署名を変更して連絡先を返します。
  • D. コントローラの上部で static final Contact を宣言します。

Answer: A


NEW QUESTION # 43
開発者は、「監査人」という名前のカスタム プロファイルに割り当てられたユーザーが、アカウント オブジェクトに関連するタスクに対して検索を実行できるようにする、履歴タスク レポート機能を実装する必要があります。
開発者は、検索で 12 ~ 24 か月前のタスクを返すことができることを確認する必要があります。削除されたタスクは除外し、アーカイブされているかどうかに関係なくタスクを含める必要があります。
次のコードの場合、L2 から 24 か月までの範囲のタスクを取得する有効な方法として、プレースホルダーにどの select ステートメントを挿入する必要がありますか?

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

Answer: A

Explanation:
To retrieve Tasks that are between 12 and 24 months old, we need to use a SOQL query that filters based on the CreatedDate. The query must exclude deleted records and include both active and archived tasks. Since Tasks can be archived after a certain period (typically 12 months), we must ensure the query includes these as well.
Option C is correct because it uses ALL ROWS in the SOQL query, which includes both active and archived (soft-deleted) records. The query also correctly uses a range for CreatedDate to ensure it selects Tasks created between 12 to 24 months ago.
Option A is incorrect because it does not include the ALL ROWS keyword, which is necessary to include archived Tasks in the results.
Option B is incorrect because it only retrieves Tasks created in the last 12 months, not between 12 to 24 months ago.
Option D is incorrect because it does not filter Tasks based on their creation date correctly to include only those that are between 12 and 24 months old.
References:
Salesforce Developer Documentation on SOQL and SOSL Reference: SOQL and SOSL Reference Salesforce Developer Documentation on Working with Archived Records: Working with Archived Records


NEW QUESTION # 44
組織は、配送先住所のフィールドを持つカスタムオブジェクト ordar__c に顧客の注文情報を記録します。開発者は、配送先住所の地域に関連付けられた一律の割合に基づいて、注文の配送料を計算するコードを追加するという任務を負っています。
変更を運用環境にデプロイするときに、計算が機能するために追加の手順が必要ないように、開発者はリージョンごとの料金を保存するために何を使用する必要がありますか?

  • A. カスタムオブジェクト
  • B. カスタムリスト設定
  • C. カスタム階層設定
  • D. カスタムメタデータタイプ

Answer: D

Explanation:
Custom metadata types are ideal for storing configuration data such as shipping rates by region. These rates can be deployed to production without additional steps and can be queried in Apex, allowing the calculations to work immediately post-deployment.
References: Salesforce Help - Custom Metadata Types Overview


NEW QUESTION # 45
開発者は、Salesforce からデータを取得してレコード プロパティに割り当てる Lightning Web コンポーネントを構築しています。

Salesforce からデータを取得するには、コンポーネントで何をする必要がありますか?
A)

B)

C)

D)

  • A. オプション D
  • B. オプション B
  • C. オプション C
  • D. オプション A

Answer: B


NEW QUESTION # 46
エンドユーザーが情報にアクセスして更新できるアプリケーション中心の機能を作成する任務を負った開発者 15。この機能は、デスクトップ、電話、タブレットなどの複数のデバイス フォーム ファクタでシームレスに動作しながら、lightning Experience で使用できる必要があります。さらに、機能はアドレス指定可能な URL タブをサポートし、Salesforce コンソール API と対話する必要があります。
アプリケーションを構築し、ビジネス要件をサポートするために、開発者が取ることができるアーム 2 アプローチはどれですか?
2つの答えを選択してください

  • A. Lightning Experience Builder を使用してアプリケーションを作成します。
  • B. Aura コンポーネントを使用してアプリケーションを作成します。
  • C. Aura コンポーネントにラップされた Lightning Web コンポーネントを使用してアプリケーションを作成します。
  • D. Lightning Web コンポーネントにラップされた Aura コンポーネントを使用してアプリケーションを作成します。

Answer: B,C


NEW QUESTION # 47
ユニバーサル コンテナ (UC) に関する次の情報を考慮します。
* UC は顧客を Salesforce のアカウントとして表します。
* すべての顧客は、UC のシステム全体で一意の Customer__Number_c を持っています。
* UC には、外部システムから送信される請求書を表す、アカウントへのルックアップを備えたカスタムの Invoice c オブジェクトもあります。
UC は、請求書データを Salesforce に統合して、営業担当者が顧客がいつ期日通りに請求書を支払うかを確認できるようにしたいと考えています。
これを実装する最適な方法は何ですか?

  • A. 各顧客の Salesforce アカウント ID を使用してカスタム請求システムに相互参照テーブルを作成し、毎晩請求書データを挿入します。
  • B. 顧客番号が外部 ID であり、カスタム フィールドの請求書番号が外部 ID であることを確認し、請求書データを毎晩更新/挿入します。
  • C. 呼び出しごとに Account オブジェクトをクエリして請求書データを挿入し、請求書の顧客番号に対応する Salesforce ID を取得します。
  • D. Salesforce Connect と外部データ オブジェクトを使用して、カスタム コードを使用せずに請求書データを Salesforce にシームレスにインポートします。

Answer: A


NEW QUESTION # 48
開発者はビジネス ロジック コードが機能していますが、テスト クラスで次のエラーが発生します。
コミットされていない保留中の作業があります。コミットしてください
または、コールする前にロールバックします。
考えられる解決策は何でしょうか?

  • A. コールアウトに @Testvisible を設定してビジネス ロジックとテスト クラスを書き換えます。
  • B. コードは実際には当てはまらないため、テスト クラスの先頭で seeAllData を true に設定します。
  • C. 外部コード エラーである可能性が高いため、ターゲット エンドポイントについてサポートに問い合わせてください。
  • D. マストを使用します。テスト実行でコールアウトをバイパスする前に、T=RunningTes={}、

Answer: B

Explanation:
The error "You have uncommitted work pending. Please commit or rollback before calling out" usually indicates that DML operations (like insert, update, delete) are being performed before a callout in a test context. This is not allowed because Salesforce does not support this sequence of operations in a single transaction. However, the use of seeAllData=true is generally not a recommended practice and does not address the core issue of mixed DML and callouts in tests. The correct solution is to use a mocking framework to simulate the callout response. By using Test.setMock(), developers can avoid performing actual callouts in test methods, thus bypassing the uncommitted work error.
References:
Apex Developer Guide - Testing HTTP Callouts
Apex Developer Guide - Isolation of Test Data from Organization Data in Unit Tests


NEW QUESTION # 49
実行概要パネルでさまざまなタイプのトランザクションのタイムラインを分析する際に関連するプラクティスはどれですか? (2つ選んでください。)

  • A. 実行ツリーを実行ログと共に使用して、イベントに関する特定の情報をフィルタリングおよび取得できます。
  • B. 実行ログ パネルのログ行を分析して、特定のイベントの詳細を確認できます。
  • C. パフォーマンス ツリーを使用して、時間がかからないイベントから順に分析する必要があります。
  • D. Apex イベントの複数の短いバーストを分析する必要があります。それらを合計するとかなりの時間がかかる可能性があるためです。

Answer: B,D


NEW QUESTION # 50
次のコード スニペットを考えてみましょう。

デプロイメント サイクルの一環として、開発者は次のテスト クラスを作成します。

テスト クラスが実行されると、アサーションは失敗します。
テストメソッドが正常に実行されることを確認するには、開発者は Apex テストメソッドにどの変更を実装する必要がありますか?

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

Answer: B

Explanation:
To ensure that test methods execute successfully and are able to verify the behavior of the code, it is important to set up the proper context and to make sure that the test covers the expected outcomes accurately.
Option B is correct because enclosing the method call within Test.startTest() and Test.stopTest() ensures that any asynchronous operations are completed before the assertions are made. This is crucial when the code being tested is expected to perform operations that may run after the initial transaction, such as future methods, queueable jobs, or batch operations.
Options A, C, and D are incorrect because they do not address the issue of ensuring that all operations are completed before the assertion is made. Option A incorrectly suggests modifying the test setup code, while Options C and D suggest changes that are not related to the test execution flow.
References:
Salesforce Developer Documentation on Testing Best Practices: Apex Testing Best Practices


NEW QUESTION # 51
以下のオプションのクエリと次の情報を考慮してください。
* これらのクエリでは、アカウント レコードが 200,000 件以上あると想定します。
* これらのレコードには、ソフト削除されたレコード、つまり、まだごみ箱に残っている削除済みレコードが含まれます。
* 外部IDとしてマークされているフィールドが2つあります。
アカウント。これらのフィールドは customer_Number_c と ERR_Key_ です。
大容量データ向けに最適化されているクエリは 2 つあります。
2つの回答を選択してください

  • A. SELECT ID FROM Account WHRE id IN :aListVariable
  • B. SELECT 1d FROM Accounts WHERE Name != '
    AND Customer_Number_c- "ValueA'
  • C. SELECT Id FROM Account WHERE Name != ' 'AND IsDeleted = false
  • D. SELECT Id FROM Account WHERE Name !- NULL

Answer: B,C

Explanation:
For optimizing queries, especially on large data volumes, it's recommended to use indexed fields such as External ID fields, which will make the queries selective. Among the options given:
* B) is optimized because it is using the Customer_Number__c field, which is an External ID and hence indexed.
* D) is also optimized because it filters out deleted records with IsDeleted = false and uses Name != ' ', which is likely to be selective.
Using indexed fields and filtering out unnecessary records helps in faster query execution on large data volumes.
References:
Make SOQL Query Selective
Working with Very Large SOQL Queries


NEW QUESTION # 52
......

PDII-JPN Dumps and Exam Test Engine: https://exam-hub.prepawayexam.com/Salesforce/braindumps.PDII-JPN.ete.file.html