PDI日本語練習Salesforce高合格率回答あなたを試験は高確率で合格させます![2025]
最高の方法からパスSalesforce PDIのPDI日本語試験合格させます
質問 # 31
Salesforceの開発者は、コードの変更をすぐに確認する必要があり、自分のコンピューターや組織に何もインストールしたくありません。
どのツールが最適ですか?
- A. Setup Menu
- B. Third-party apps from App Exchange
- C. Salesforce Extension for VSCode
- D. Developer Console
正解:A
質問 # 32
変数のスコープに関する正確な説明は何ですか? (3つ選択)
- A. 並列ブロックは同じ変数名を使用できます。
- B. 静的変数は、その値がnullの現在のブロックにスコープを制限できます。
- C. サブブロックは親ブロックの変数名を再利用できません。
- D. 値がnullの場合、サブブロックは親ブロックの変数名を再利用できます。
- E. 変数はブロック内の任意の場所で定義できます。
正解:A、C、E
質問 # 33
開発者は、システム内に特定の条件が存在する場合に、Request _c レコードの作成を防止する必要があります。条件をチェックする BequestLogic クラスが存在します。
正しい実装は何ですか?
- A.

- B.

- C.

- D.

正解:C
質問 # 34
開発者は、大量のレコードを更新するためにバッチ Apex ジョブを作成し、ジョブがタイムアウトして完了しないというレポートを受け取ります。
問題のトラブルシューティングに向けた最初のステップは何ですか?
- A. バッチ ジョブを無効にして、レコード数を減らして再作成します。
- B. バッチジョブのデバッグログを確認します。
- C. バッチ サイズを小さくして、システムの負荷を軽減します。
- D. ジョブのステータスとログを表示するには、非同期ジョブ監視ページを確認します。
正解:D
解説:
When a batch Apex job is timing out and not completing, the first step in troubleshooting is to check the job's status and logs in the Asynchronous Job Monitoring page. This page provides information about all asynchronous Apex jobs, including batch Apex, scheduled Apex, future methods, and queueable Apex.
Option D: Check the asynchronous job monitoring page to view the job status and logs.
Correct Approach.
The Asynchronous Job Monitoring page (also known as the Apex Jobs page) in Salesforce Setup allows developers to see the status of all asynchronous Apex jobs.
By checking this page, the developer can see whether the batch job is still running, failed, or completed.
If the job has failed, the page provides error messages that can help identify the cause of the failure.
This is the first step to determine what is happening with the batch job.
While checking the debug logs can provide detailed information, it is more efficient to first check the job status on the asynchronous job monitoring page.
Debug logs can be large and may not be generated if the job did not execute properly.
After identifying the job's status and any error messages, the developer can then decide if checking debug logs is necessary.
Option C: Decrease the batch size to reduce the load on the system.
Possible Solution, Not First Step.
Decreasing the batch size may help prevent timeouts by processing fewer records at a time.
However, before making changes to the batch job, the developer should first investigate the cause of the timeout.
Option A: Disable the batch job and recreate it with a smaller number of records.
Not Recommended as First Step.
Disabling and recreating the batch job without understanding the issue may not resolve the problem.
It's important to diagnose the issue before making changes.
Conclusion:
The first step towards troubleshooting a batch Apex job that is timing out is to check the asynchronous job monitoring page to view the job's status and any error messages.
This provides immediate insight into what is happening with the job and guides the next steps in troubleshooting.
Reference:
Monitor Asynchronous Apex
Apex Jobs Page
Option B: Check the debug logs for the batch job.
Next Step, Not First Step.
質問 # 35
次のApexコードを参照してください。
デバッグログに書き込まれるときのxの値は何ですか?
- A. 0
- B. 1
- C. 2
- D. 3
正解:C
質問 # 36
次の Apex ステートメントがあるとします。
SOQL クエリによって複数のアカウントが返された場合、何が起こりますか?
- A. クエリが失敗し、デバッグ ログにエラーが書き込まれます。
- B. 未処理の例外がスローされ、コードが終了します。
- C. 返された最初のアカウントはmyAccountに割り当てられます。
- D. 変数 myaccount は自動的に List データ型にキャストされます。
正解:B
質問 # 37
Universal Containers では、ユーザーが複数のレコードを編集できるようにする Visualforce ページを表示するリスト ボタンが必要です。
この要件をサポートする Visualforce 機能はどれですか?
- A. recordSetvar ページ属性を持つカスタム リスト コントローラ
- B. カスタム リスト コントローラー拡張機能を備えた標準コントローラー
- C. コントローラ拡張と <apex:listButton> タグ
- D. 標準コントローラとrecordsetzvarページ属性
正解:D
解説:
Option C: Standard controller and the recordSetVar page attribute
Correct Answer.
Using the recordSetVar attribute with a standard controller enables the Visualforce page to access a set of records selected from a list view.
This allows users to edit multiple records.
recordSetVar is used with standard list controllers, not custom controllers.
Option A: Controller Extension and <apex:listButton> tag
Incorrect.
There is no <apex:listButton> tag in Visualforce.
Option B: Standard Controller with Custom List Controller extension
Incorrect.
A custom list controller extension is unnecessary when using recordSetVar with a standard controller.
Conclusion:
The Visualforce feature is Standard controller and the recordSetVar page attribute, which is Option C.
Reference:
Using Standard List Controllers
Option D: Custom List Controller with recordSetVar page attribute
Incorrect.
質問 # 38
次の例では、myMethod が呼び出されたときにどの共有コンテキストが実行されますか?
- A. 共有ルールは呼び出しコンテキストから継承されます。
- B. 共有ルールはインスタンス化クラスによって適用されます。
- C. 実行中のユーザーに対して共有ルールが適用されます。
- D. 実行中のユーザーには共有ルールは適用されません。
正解:A
質問 # 39
開発者は、販売記録のリストを表示する Lightning Web コンポーネントを作成しています。
営業担当者ユーザーは、各レコードの手数料フィールドを表示できる必要があります。営業アシスタントユーザーは、手数料フィールドを除くレコードのすべてのフィールドを表示できる必要があります。
コンポーネントが両方のユーザーに対してエラーなしで機能するようにするには、これをどのように強制すればよいでしょうか?
- A. Lightning Locker サービスを使用して、共有ルールと項目レベルのセキュリティを適用します。
- B. Lightning Data Service を使用して、販売レコードのコレクションを取得します。
- C. 現在のユーザーがアクセスできないフィールドを削除するには、security.stripinaccessible を使用します。
- D. コンポーネントのデータを取得する SOQL で 8ECTOITYJ2WFORCED と共に使用します。
正解:C
解説:
To ensure that the component works for both users without showing errors due to field-level security, the developer should handle field accessibility programmatically.
Option D: Use Security.stripInaccessible to remove fields inaccessible to the current user.
Correct Answer.
The Security.stripInaccessible method can be used in Apex to remove fields from SObjects that the current user doesn't have access to.
When data is fetched using SOQL, the method can be applied to ensure that inaccessible fields are not included, preventing any security exceptions when the component tries to display them.
This method enforces field-level security and prevents exposure of inaccessible data.
Usage:
// Apex Controller
public with sharing class SalesRecordsController {
@AuraEnabled(cacheable=true)
public static List<Sales_Record__c> getSalesRecords() {
List<Sales_Record__c> records = [SELECT Id, Name, Commission__c, Other_Field__c FROM Sales_Record__c]; return (List<Sales_Record__c>) Security.stripInaccessible(AccessType.READABLE, records);
}
}
WITH SECURITY_ENFORCED enforces field and object level security in SOQL queries.
If a field is not accessible to the user, the query will throw an exception, which may cause errors in the component.
It does not remove inaccessible fields; it enforces security by failing the query.
Option B: Use Lightning Locker Service to enforce sharing rules and field-level security.
Incorrect.
Lightning Locker Service provides security for components but does not enforce sharing rules or field-level security.
Option C: Use Lightning Data Service to get the collection of sales records.
Not Sufficient Alone.
Lightning Data Service respects field-level security but may still cause errors if the component tries to access fields the user cannot see.
Additional handling is needed to prevent errors.
Conclusion:
To ensure the component works for both users and respects field-level security without causing errors, the developer should use Security.stripInaccessible, which is Option D.
Reference:
stripInaccessible Method
Enforcing CRUD and FLS
Incorrect Options:
Option A: Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
Not Sufficient Alone.
質問 # 40
開発者は、ごみ箱に送信されるレコードの監査証跡を作成する必要があります。どのタイプのトリガーを作成するのが最も適切ですか?
- A. 削除を取り消した後
- B. 削除後
- C. 削除前
- D. 削除を取り消す前
正解:A
質問 # 41
開発者はApexクラスにメソッドを作成し、エラーが適切に処理されるようにする必要があります。開発者は何を使用しますか? (正解は3つあります。)
- A. ApexPages.addErrorMessage()
- B. try / catch構文
- C. .addError()
- D. Database.handleException()
- E. カスタム例外
正解:B、C、E
質問 # 42
次の匿名ブロックがあるとします。
10,000 件を超えるケース レコードがある環境では、開発者は何を考慮すべきでしょうか?
- A. トランザクションは成功し、変更がコミットされます。
- B. try-catch ブロックは、ガバナー制限によってスローされた例外を処理します。
- C. try-catch ブロックは、スローされたすべての DML 例外を処理します。
- D. ガバナー制限を超えたため、トランザクションは失敗します。
正解:D
質問 # 43
Universal Containers には、カスタム オブジェクト「エンジニアリング サポート c」を使用してユーザーがエンジニアリング チームにサポートをリクエストできるサポート プロセスがあります。
ユーザーは、複数のエンジニアリング サポート __c レコードを 1 つの商談レコードに関連付けることができる必要があります。さらに、エンジニアリング サポート __c レコードに関する集計情報が商談レコードに表示される必要があります。
これらの要件をサポートするには、どの関係フィールドを実装する必要がありますか?
- A. 商談からエンジニアリングへの参照フィールド _support__c
- B. エンジニアリング サポート __c から商談への参照フィールド
- C. 商談からエンジニアリング サポートへのマスター詳細フィールド__c
- D. エンジニアリング サポート__c から商談へのマスター詳細フィールド
正解:D
解説:
A master-detail relationship from Engineering_Support__c to Opportunity allows multiple child Engineering_Support__c records to be associated with a single parent Opportunity. It also enables roll-up summary fields to aggregate data from the child records onto the parent Opportunity.
質問 # 44
@remoteActionデコレータを使用してグローバルサーバー側メソッドを呼び出そうとすると、開発者はエラーを受け取ります。
開発者はどのようにしてエラーを解決できますか?
- A. 関数のシグネチャをprivatestaticに変更します。
- B. サーバー側のメソッドを(static = false)で装飾します。
- C. サーバー側のメソッドシグネチャに静的を追加します。
- D. Aサーバー側メソッドを(static = true)で装飾します。
正解:D
質問 # 45
開発者には次の要件があります。
注文の合計金額を計算します。
選択した数量と価格に基づいて、各ラインアイテムのライン量を計算します。
ラインアイテムが在庫でない場合は、ラインアイテムを別の注文に移動します。
これらの要件をサポートする関係の実装はどれですか?
- A. ラインアイテムには、注文するためのマスター/詳細フィールドがあり、マスターの親を変更できます。
- B. オーダーにはラインアイテムへのルックアップフィールドがあり、オーダーごとに多くのラインアイテムが存在する可能性があります。
- C. ラインアイテムには注文するルックアップフィールドがあり、注文ごとに多くのラインアイテムが存在する可能性があります
- D. オーダーにはラインアイテムへのマスター/詳細フィールドがあり、オーダーごとに多くのラインアイテムが存在する可能性があります。
正解:A
質問 # 46
継続的インテグレーションの一環として、開発者はデプロイメントとユニット テストの実行をスクリプト化するために何を使用すればよいでしょうか?
- A. VSコード
- B. Salesforce CLI
- C. 開発者コンソール
- D. 匿名で実行
正解:B
質問 # 47
次のコード ブロックによって挿入されるアカウントの数はいくつですか?
- A. 0
- B. 1
- C. 2
- D. 3
正解:C
解説:
* Execution Flow:
* The loop runs 500 times (i ranges from 0 to 499).
* In each iteration, a new Account record is created and inserted.
* Governor Limits:
* This code violates the governor limit of 150 DML statements per transaction because each insert is executed individually.
* However, the code logically attempts to insert 500 accounts.
* Key Consideration:
* The code demonstrates inefficient handling of DML operations and would fail in a real-world scenario.
* Governor Limits: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode
/apex_gov_limits.htm
References:
質問 # 48
......
Salesforce PDI日本語事前に試験練習テストFast2test: :https://jp.fast2test.com/PDI-JPN-premium-file.html