Share Latest May-2026 PDII-JPNTest Practice Test Questions, Exam Dumps
Positive Aspects of Valid Dumps PDII-JPN Exam Dumps!
NEW QUESTION # 65
組織には、取引先責任者と取引先の住所が保存されるたびに、Apex コードによって会社の標準に正規化する必要があるという要件があります。
これを実装する最適な方法は何ですか?
- A. Account トリガーを呼び出して住所を正規化する Contact の Apex トリガー
- B. 住所を正規化するためにヘルパー クラスを呼び出す Account および Account の Apex トリガー
- C. アドレスを正規化した取引先と取引先に対する Apex トリガー
- D. 連絡先トリガーを呼び出してアドレスを正規化する取引先の Apex トリガー
Answer: B
NEW QUESTION # 66
展示を参照してください
この Visualforce ページのユーザは、[検索] ボタンが押されるたびにページが完全に更新されると不満を抱いています。
開発者は、機会リストで識別されたセクションのみが画面上に再描画されるように部分更新を確実に行うには何をすべきでしょうか?
- A. DATA テーブルを <apex:actionRegion> タグで囲みます。
- B. <apex:actionfunction> タグをimmediate = trueで実装します。
- C. <apex:ccxmandButton> タグに render 属性を実装します。
- D. アクション メソッドの検索で null が返されることを確認します。
Answer: C
Explanation:
To ensure that only a part of the Visualforce page is refreshed, developers can use the reRender attribute of the <apex:commandButton> tag. This attribute specifies the IDs of the components that should be re-rendered as a result of the action method being completed. In this case, setting the reRender attribute to the ID of the <apex:pageBlockSection> that contains the opportunity list will cause only that section to be updated on the page, resulting in a partial page refresh.
The correct answer is B because it uses the reRender attribute correctly to update only the specific part of the page (opportunityList) without a full page refresh.
References:
Salesforce Developer Documentation on Visualforce AJAX Components: Visualforce Developer Guide
- CommandButton
NEW QUESTION # 67
Universal Containers は、Customer Community Plus ライセンスを持つ Customer Community を使用して、顧客がレンタルしたコンテナの数と返却期限を追跡できるようにしたいと考えています。Universal Containers は、外部ユーザー向けにプライベート共有モデルを使用しています。
顧客の多くは、複雑なアカウント階層を持つ多国籍企業です。階層上の各アカウントは、同じビジネス内の部門を表します。
要件の 1 つは、同じ取引先階層内の特定のコミュニティ ユーザーが、部門を表すさまざまな取引先レコードに取引先責任者を関連付けるカスタム ジャンクション オブジェクトに基づいて、複数の部門のコンテナを表示できるようにすることです。
これらの要件を解決するソリューションはどれですか?
- A. Lightning Data Services を使用するコミュニティホームページ上の Lightning Web コンポーネント。
- B. ジャンクションオブジェクトの関係に基づいて Apex 管理共有レコードを作成する Apex トリガ
- C. 共有せずにレコードを公開することを指定するカスタムコントローラを使用する Visualforce ページ
- D. 所有者に基づいて適切なレコードを表示するフィルターを備えたジャンクション オブジェクトのカスタム リスト ビュー
Answer: B
NEW QUESTION # 68
Universal Containers は、Convention_Attendence_c カスタム オブジェクトのプライベート共有モデルを実装します。新しい品質保証の取り組みの一環として、同社はオブジェクトに Event___Reviewer__c ユーザー ルックアップ フィールドを作成しました。管理者は、イベントレビュー担当者が自動的に
割り当てられているすべてのレコードへの読み取り/書き込みアクセスを取得します。
割り当てられたレビュー担当者がレコードへの読み取り/書き込みアクセスを確実に取得するための最良の方法は何ですか?
- A. Convention Attendee カスタムオブジェクトで挿入前トリガを作成し、Apex 共有理由と Apex 管理共有を使用します。
- B. イベント レビュー担当者とレコードを共有するために、コンベンション出席者カスタム オブジェクトで基準ベースの共有ルールを作成します。
- C. Convention Attendee カスタム オブジェクトで After Insert トリガを作成し、Apex 共有理由と Apex 管理共有を使用します。
- D. イベント レビュー担当者のグループでレコードを共有するために、コンベンション出席者カスタム オブジェクトで基準ベースの共有ルールを作成します。
Answer: A
NEW QUESTION # 69
アカウント オブジェクトにはフィールド Audit_Code__ があり、アカウントに必要な監査の種類を指定するために使用され、ユーザーへのルックアップ、割り当てられた監査人である Auditor__ があります。
アカウントが最初に作成されるとき、ユーザーは Audit_Code__ を指定します。組織内の各ユーザーには固有のテキスト フィールドがあり、これを使用して正しいユーザーが Account Auditor__ フィールドに自動的に割り当てられます。
コードの効率を最大限に最適化するには、何を変更する必要がありますか?
2つの答えを選択してください
- A. 最初の SOQL クエリを追加して、個別の監査コードをすべて取得します。
- B. 監査コードからアカウントへの Map<String, List<Account>> を作成します。
- C. SOQL クエリに WHERE 句を追加して、監査コードでフィルタリングします。
- D. 監査コードへのアカウント ID のマップ <Id, List<String>> を作成します。
Answer: B,C
NEW QUESTION # 70
開発者は、次のように Queueable インターフェースを実装するクラスを作成しました。
展開プロセスの一環として、開発者は対応するテスト クラスを作成するよう求められます。
テスト クラスを正常に実行するために開発者が実行する必要がある 2 つのアクションはどれですか?
2つの答えを選択してください
- A. テスト クラスの実行ユーザーが、少なくとも Order オブジェクトに対するすべて表示権限を持っていることを確認します。
- B. seeAllData-true を実装して、Queueable )ob が一括モードで実行できるようにします。
- C. System.enqueueJob (新しい orderQueueable Job ( }) を Test. starttest と Test, stoptest () 内に囲みます。
- D. Test.isRunningtest ( ) を実装して、テスト実行中にジョブが連鎖しないようにします。
Answer: B,D
NEW QUESTION # 71
メソッド「doStuff(List<sObject> records)」がある場合、有効な呼び出しはどれですか?
- A. doStuff(List<Account> records);
- B. doStuff(sObject obj);
- C. doStuff([アカウントからIDを選択]);
- D. doStuff(アカウントアカウント);
Answer: C
NEW QUESTION # 72
開発者は、連絡先用および調査応答 c と呼ばれるカスタム オブジェクト用にシステムに入力された電子メール アドレスが、ブロックされたドメインのリストに属していないことを確認する任務を負っています。
ブロックされたドメインのリストは、ユーザーによるメンテナンスを容易にするためにカスタム オブジェクトに保存されます。アンケートの応答 c オブジェクトは、カスタム Visualforce ページを介して設定されます。
これを実装する最適な方法は何ですか?
- A. Contact オブジェクトと Burvey Response_c オブジェクトの検証ルールにロジックを実装します。
- B. Contact の Apex トリガおよびカスタム Visualforce ページコントローラから呼び出されるヘルパークラスにロジックを実装します。
- C. Contact の Apex トリガにロジックを実装し、カスタム Visualforce ページコントローラ内にもロジックを実装します。
- D. カスタム Visualforce ページコントローラにロジックを実装し、Contact の Apex トリガからそのメソッドを呼び出します。
Answer: B
Explanation:
The optimal way to enforce the exclusion of blocked domains for email addresses entered into Contacts and a custom object is to use a helper class. The class can be called by an Apex trigger on the Contact object and from the controller of the custom Visualforce page used for the Survey Response. This centralizes the logic for maintainability and reusability.References: Apex Developer Guide - Apex Triggers
NEW QUESTION # 73
開発者はビジネス ロジック コードを動作させていますが、テスト クラスに次のエラーが表示されます。
コミットされていない保留中の作業があります。呼び出す前にコミットまたはロールバックしてください。可能な解決策は何ですか?
- A. コードは実際には失敗しないため、テスト クラスの先頭で seeAIIData を "true" に設定します。
- B. コールアウトを行う前に test.IsRunningTest() を使用して、テスト実行でそれをバイパスします。
- C. コールアウトに @TestVisible を設定して、ビジネス ロジックとテスト クラスを書き直します。
- D. 外部コードのエラーである可能性が高いため、ターゲット エンドポイントについてサポートに連絡してください。
Answer: B
NEW QUESTION # 74
ある企業は、関連オブジェクトを通じて収益を追跡したいと考えています。約10万件の商談について、複雑なロジックに基づいて収益レコードを作成し、一度だけデータをシードする必要があります。これを自動化する最適な方法は何でしょうか?
- A. Database.executeBatch() を使用して Queueable クラスを呼び出します。
- B. System.enqueueJob() を使用して Queueable クラスを呼び出します。
- C. System.scheduleJob() を使用して、Database.Scheduleable クラスをスケジュールします。
- D. Database.executeBatch() を使用して、Database.Batchable クラスを呼び出します。
Answer: D
Explanation:
For high-volume data processing (such as seeding 100,000 records) involving complex logic, Batch Apex (Option A) is the standard and most robust solution. Batch Apex is designed to handle up to 50 million records by breaking the total set into smaller, manageable chunks (defaulting to 200 records per batch).
Each batch execution gets its own set of governor limits. This is crucial for "complex logic," as it prevents the transaction from hitting CPU time or heap size limits that would occur if one tried to process all 100,000 records in a single synchronous transaction. Batch Apex also provides built-in state management and error handling (via Database.RaisesPlatformEvents or the finish method).
Option B (Queueable) is better suited for smaller, chained tasks; while it can handle some volume, it is not optimized for 100,000 records in the same way the QueryLocator in Batch Apex is. Option C is a syntactical impossibility as executeBatch only accepts Batchable classes. Option D (Schedulable) is used for timing, but the actual heavy lifting for 100,000 records would still need to be handed off to a Batch class to avoid timeout errors. Therefore, Database.Batchable is the optimal tool for large-scale data seeding.
NEW QUESTION # 75
Universal Containers には、取引先が顧客としてマークされたときにアカウントプランレコードを作成する取引先に対する Apex トリガーがあります。
最近、レコードによってトリガーされるフローが追加され、アカウントが顧客としてマークされるたびに、「以降の顧客」日付フィールドが今日の日付で更新されるようになりました。フローの追加以来、アカウントがマークされるたびに 2 つのアカウント プラン レコードが作成されます。顧客として。
これが起こる原因は何でしょうか?
- A. フローは「レコードの更新」要素を使用するように構成されています。
- B. Apex トリガは一括安全ではなく、for ループ内で insert を呼び出します。
- C. Apex トリガは、確実に 1 回だけ起動するために静的変数を使用しません。
- D. フローは、レコードの作成時と編集のたびに評価するように構成されています。
Answer: D
Explanation:
The reason why two Account Plan records are created whenever the Account is marked as a Customer is that the flow is configured to evaluate when a record is created and every time it is edited. This means that the flow will run both when the Account is inserted and when the Account is updated by the Apex trigger. Since the flow and the trigger both create an Account Plan record, this results in two Account Plan records being created for the same Account. To avoid this, the flow should be configured to evaluate only when a record is created or only when specified changes are made to the record. This way, the flow and the trigger will not conflict with each other and only one Account Plan record will be created . Reference: [Record-Triggered Flows], [Configure When a Record-Triggered Flow Runs]
NEW QUESTION # 76
開発者は、単一のトランザクションでレコードの複数のリストを挿入、更新、削除しており、エラーによってすべての実行が妨げられることを確認したいと考えています。
これを処理するには、開発者はコードにエラー例外処理をどのように実装する必要がありますか?
- A. try-catch ステートメントで Database.setSavepoint {} と Database.rollBack を使用します。
- B. try-catch を使用し、失敗した場合は sObject.addError() を使用します。
- C. try-catch ステートメントを使用し、catch ステートメントで DML クリーンアップを処理します。
- D. Database メソッドを使用して、Database.SaveResults のリストを取得します。
Answer: A
NEW QUESTION # 77
開発者は、Salesforce からデータを取得してレコード プロパティに割り当てる Lightning Web コンポーネントを構築しています。
Salesforce からデータを取得するには、コンポーネントで何をする必要がありますか?
A)
B)
C)
D)
- A. オプション C
- B. オプション D
- C. オプション B
- D. オプション A
Answer: C
NEW QUESTION # 78 
上記のコードセグメントを参照してください。
Apex トリガを作成するためのベストプラクティスに従う場合、間違っている、または懸念を引き起こす 2 行はどれですか?
2 つの答えを選択してください
- A. 20行目
- B. 6行目
- C. 11行目
- D. 16行目
Answer: A,B
NEW QUESTION # 79
ある企業には、いくつかの異なるオブジェクトといくつかの共通オブジェクトを含むさまざまな Salesforce 組織があり、すべての異なる組織で共通のオブジェクト レコードを作成、取得、更新できる単一の Java アプリケーションを構築したいと考えています。
アプリケーションはどの統合方法を使用する必要がありますか?
- A. パートナー WSDL を使用した SOAP API
- B. Enterprise WSDL を使用した SOAP API
- C. Apex REST Web サービス
- D. メタデータ APT
Answer: A
NEW QUESTION # 80
......
Practice LATEST PDII-JPN Exam Updated 163 Questions: https://examboost.latestcram.com/PDII-JPN-exam-cram-questions.html
