2024年最新のPDII日本語試験解答最新版PassTest PDII日本語のPDF問題集をダウンロードせよ(198問題と解答)
無料2024年最新のSalesforce Developers PDII日本語問題集を提供しております!PassTest
質問 # 20
Universal Containers (LIC) は、顧客がコンテナに関する問題を記録できるようにする顧客コミュニティを開発したいと考えています。コミュニティは、ドイツ語とスペイン語を話す顧客のためにも機能する必要があります。UC は、Salesforce を使用すると国際的なコミュニティを簡単に作成できると聞き、サイトを構築する開発者を雇いました。
開発者はサイトを多言語化するには何を使用する必要がありますか?
- A. カスタム ラベルを使用して、カスタム メッセージが適切に翻訳されていることを確認します。
- B. カスタム オブジェクトを使用してカスタム選択リスト値を変換します。
- C. カスタム設定を使用して、カスタム メッセージが適切に翻訳されるようにします。
- D. カスタム メタデータを使用してカスタム選択リスト値を変換します。
正解:A
解説:
Custom labels are used for translating text strings in Salesforce that need to be presented in multiple languages. They support translations and can be referenced in Aura components, Visualforce pages, and Apex code.References: Salesforce Help - Create and Edit Custom Labels
質問 # 21
フローと Lightning プロセスの両方について正しい文はどれですか? (2つ選んでください。)
- A. Visualforce ページに直接埋め込むことができます
- B. 両方とも実行順序でサーバー側の考慮事項です
- C. Process.Plugin インターフェースを実装する Apex を使用できます
- D. @lnvocableMethod アノテーションで Apex メソッドを使用できます
正解:C、D
質問 # 22
ある開発者は、毎晩 10,000 件の取引先の売上高を更新するバッチ Apex プロセス Batch_Account_Sales を持っています。Batch Apex は Sandbox で設計どおりに機能します。ただし、開発者は Batch Apex クラスのコード カバレッジを取得できません。
テストクラスは次のとおりです。
コード カバレッジの問題の原因は何ですか?
- A. バッチには複数のアカウント レコードを作成する必要があります。
- B. アカウントの作成により、既に sates の金額が 0 に設定されています。
- C. executeBatch はテスト内で失敗する必要があります。startTest ( ) および - テスト。stopTest()。
- D. バッチ プロセスは、同じセッションで作成された新しいアカウントを認識しません。
正解:C
質問 # 23
他のレコードの挿入に失敗した場合に、レコードのリスト内の一部のレコードの挿入を許可するには、どのステートメントを使用する必要がありますか?
- A. Database.insert(records, true)
- B. Database.insert(records, false)
- C. レコードを挿入
- D. 挿入 (レコード、false)
正解:B
質問 # 24
開発者は次のメソッドを作成しました。
static void processList(List<sobject> 入力){
メソッドを呼び出すために使用できるコード ブロックはどれですか?
- A. processList (ace)
- B. for Account ace : [SELECT Id, Name FROM Account])
- C. processList ([FIND 'Acme" 'RETURNING Account])
- D. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])
正解:D
質問 # 25
営業チームが個々の顧客レコードを表示する場合、顧客との最近のやりとりを確認する必要があります。これらのやり取りには、販売注文、電話、またはケースが含まれます。最近のやり取りの日付範囲は、顧客レコードの種類ごとに異なります。
これはどのようにして実現できるのでしょうか?
- A. 顧客ビュー画面が読み込まれたときに、バッチ Apex を使用して最新のインタラクションをクエリします。
- B. Lightning Flow を使用して顧客のレコードタイプを読み取り、最近のインタラクションに対して動的クエリを実行して、[表示] ページに表示します。
- C. Lightning コンポーネントを使用して、Lightning ページから design:attribute を使用して渡されたレコードタイプに基づいてインタラクションをクエリおよび表示します。
- D. 顧客レコード ページで動的フォームを使用して、最近のやり取りを表示します。
正解:C
解説:
The best way to accomplish this requirement is to use a Lightning component to query and display interactions based on record type that is passed in using a design:attribute from the Lightning page. A Lightning component is a reusable unit of an app that can include markup, JavaScript, CSS, and Apex. A Lightning component can use the Lightning Data Service or Apex to query data from Salesforce and display it on a Lightning page. A design:attribute is a way to define attributes for a Lightning component that can be set in Lightning App Builder or Experience Builder. By using a Lightning component, the developer can create a custom UI element that can query and display the recent interactions for the customer based on the record type that is passed in as a design:attribute from the Lightning page. This way, the developer can leverage the Lightning framework and the Lightning Data Service or Apex to create a dynamic and interactive component that meets the requirement. Reference: [Lightning Components Basics], [Lightning Data Service Basics], [Design Attributes in Aura Components], [Design Attributes in Lightning Web Components]
質問 # 26
Universal Containers は、外部 REST API との頻繁な対話を必要とする Salesforce アプリケーションを開発します。
コードの重複を避け、保守性を向上させるには、コードを再利用するために APL 統合をどのように実装する必要がありますか?
- A. API 統合コードを必要とする各 Apex クラスに直接組み込みます。
- B. API エンドポイントごとに個別の Apex クラスを使用して、統合ロジックをカプセル化します。
- C. APT 統合コードを静的リソースとして保存し、各 Apex クラスで参照します。
- D. AFL 統合用の再利用可能な Apex クラスを作成し、関連する Apex クラスから呼び出します。
正解:D
解説:
The best way to implement the API integration for code reuse is to create a reusable Apex class for the API integration and invoke it from the relevant Apex classes. A reusable Apex class is a class that contains methods that can be called by other classes or triggers to perform common tasks or logic. A reusable Apex class can encapsulate the API integration logic, such as setting the endpoint URL, creating the request and response objects, handling the authentication and authorization, parsing the JSON or XML data, and handling the errors and exceptions. By creating a reusable Apex class for the API integration, the developer can avoid duplicating code and improve maintainability, as any changes to the API integration logic can be made in one place and reflected in all the classes that invoke it. Reference: [Apex Classes], [Apex Web Services and Callouts], [JSON Support], [XML Support]
質問 # 27
SOSL のレコード数のトランザクション制限は?
- A. 0
- B. 制限なし
- C. 2,000
- D. 100 (同期)、200 (非同期)
- E. 200 (同期)、100 (非同期)
正解:C
質問 # 28 
上記のテスト方法は、多くの取引先が顧客として同時に更新されるときに開発者が多くのクエリを実行することがわかっている Apex トリガをテストします。
SOQL クエリが多すぎるため、テストメソッドは 20 行目で失敗します。
これを修正する正しい方法は何ですか?
上記のテスト方法は、多くの取引先が同時に顧客に更新されるときに、開発者が多くのクエリを実行することがわかっている Apex トリガをテストします。
SOQL クエリが多すぎるため、テストメソッドは 20 行目で失敗します。
これを修正する正しい方法は何ですか?
- A. コードの 18 行目の前に TeststartTest() を追加し、コードの 18 行目の後に Test.stopTest() を追加します。
- B. DataFactory クラスを変更して作成するアカウントの数を減らし、トリガー内のクエリの数を減らします。
- C. コードの 7 行目とコードの 20 行目の両方の前に TesLstartTest() を追加し、後に Test.stop Test() を追加します。
- D. Apex トリガーの大部分を Process Builder プロセスに置き換えて、トリガー内のクエリの数を減らします。
正解:A
質問 # 29
実行概要パネルでさまざまなタイプのトランザクションのタイムラインを分析する際に関連するプラクティスはどれですか? (2つ選んでください。)
- A. 実行ログ パネルのログ行を分析して、特定のイベントの詳細を確認できます。
- B. パフォーマンス ツリーを使用して、時間がかからないイベントから順に分析する必要があります。
- C. Apex イベントの複数の短いバーストを分析する必要があります。それらを合計するとかなりの時間がかかる可能性があるためです。
- D. 実行ツリーを実行ログと共に使用して、イベントに関する特定の情報をフィルタリングおよび取得できます。
正解:A、C
質問 # 30
開発者は、ゲストがフロントデスクのキオスクに到着したときに自己登録できる Aura コンポーネントを構築しました。ここで開発者は、ゲストがフロント デスクに到着するたびにユーザーに警告するユーティリティ トレイのコンポーネントを作成する必要があります。
何を使えばいいのでしょうか?
- A. アプリケーションイベント
- B. DML 操作
- C. コンポーネントイベント
- D. 変更履歴
正解:A
解説:
Application events are events that are fired from an Aura component and handled by another Aura component. They are used to communicate between components that are not in a direct containment hierarchy, such as components in a utility tray or a header. Component events are events that are fired from an Aura component and handled by a parent or owner component. They are used to communicate between components that are in a direct containment hierarchy, such as a child and a parent component. DML operations are data manipulation language statements that are used to insert, update, delete, or undelete records in Salesforce. Changelog is a record of changes made to a project or a system over time. Reference: [Application Events], [Component Events], [DML Operations], [Changelog]
質問 # 31
大量のデータが表示されるため、Visualforce ページの読み込みが遅くなります。開発者がパフォーマンスを改善するために使用できる戦略はどれですか?
- A. Javascript を使用して、コントローラーの代わりにブラウザーにデータ処理を移動します。
- B. カスタム コントローラで使用される List 変数には、transient キーワードを使用します。
- C. ページで <apex:actionPoller> を使用して、すべてのデータを非同期的にロードします。
- D. コントローラーのコンストラクターではなく、遅延読み込みを使用してオンデマンドでデータを読み込みます。
正解:D
質問 # 32
会社には、Salesforce レコード ID を指定して、ページ上の JavaScript から取引先レコード情報を取得して表示する必要がある Web ページがあります。どの統合方法が最適ですか?
- A. REST API
- B. Apex REST Web サービス
- C. SOAP API
- D. Apex SOAP Web サービス
正解:B
質問 # 33
環境には 2 つの Apex トリガがあります。取引先の更新後トリガと取引先担当者の更新後トリガです。
アカウント更新後トリガーは、アカウントのアドレスが更新されるたびに起動され、そのアドレスに関連付けられたすべての連絡先を更新します。連絡先の更新後トリガーは編集のたびに起動され、連絡先に関連するすべてのキャンペーン メンバー レコードを連絡先の状態で更新します。
次のことを考慮してください。各アカウントに 50 の連絡先があり、200 のアカウント レコードのアドレスを一括更新する場合。各連絡先には 1 人のキャンペーン メンバーがいます。これは、アカウント全体に 10,000 件の連絡先レコードがあり、連絡先全体に 10,000 件のキャンペーン メンバー レコードがあることを意味します。
一括アップデートが行われるとどうなりますか?
- A. 各トリガーは独自のコンテキスト内で起動され、各トリガーは DML ステートメントによって処理されるレコード数の制限を超えないため、エラーは発生しません。
- B. 取引先アドレスの一括更新は成功しますが、DML ステートメントによって処理されるレコード数を超えるため、連絡先アドレスの更新は失敗します。
- C. DML ステートメントによって処理されるレコード数の制限を超えていないため、エラーは発生せず、すべての更新が成功します。
- D. 2 つのトリガーが同じコンテキストで起動され、DML ステートメントによって処理されるレコード数を超えるため、一括更新は失敗します。
正解:A
解説:
The correct answer is that there will be no error, since each trigger fires within its own context and each trigger does not exceed the limit of the number of records processed by DML statements. Each trigger invocation has its own set of governor limits, which are reset for each batch of 200 records processed by the trigger. Therefore, the Account after-update trigger will process 200 records per batch, and update 10,000 Contact records per batch, which is within the limit of 10,000 records processed by DML statements per transaction. Similarly, the Contact after-update trigger will process 10,000 records per batch, and update 10,000 Campaign Member records per batch, which is also within the limit. There will be no error and all updates will succeed, since the limit on the number of records processed by DML statements was not exceeded is incorrect, as the limit is per transaction, not per execution. The mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements is incorrect, as the Contact address updates will not exceed the limit, as explained above. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements is incorrect, as the two triggers do not fire in the same context, but in separate contexts, as explained above. Reference: [Triggers and Order of Execution], [Execution Governors and Limits], [Apex Developer Guide]
質問 # 34
企業は、アカウントが更新されるたびに外部システムに通知する必要があります。
次のコードはどのような LimitException を引き起こす可能性がありますか?
- A. System.LimitException: 将来の呼び出しが多すぎます
- B. System.LimitException: コールアウトが多すぎます
- C. System.CalloutException: トリガーからのコールアウトは現在サポートされていません
- D. System.LimitException: SOQL クエリが多すぎます
正解:A
質問 # 35
Universal Containers は Big Object を使用して、customer_Transaction_ と呼ばれるほぼ 10 億件の顧客トランザクションを保存します。
顧客トランザクション b のフィールドは次のとおりです。
次のフィールドは、Customexr_Transaction__b オブジェクトのインデックス フィールドとして識別されています: Account__g、Program__c、および Transaction Date_ co。
customer_Transaction_b Big Object で有効な SOQL クエリはどれですか?
- A.

- B.

正解:B
解説:
Option A is the valid SOQL query on the customer_Transaction_b Big Object. Option A uses the index fields of the Big Object, which are Account__c, Program__c, and Transaction_Date__c, to filter the records. The query also uses the = operator to match the exact values of the index fields, which is required for Big Object queries. The query also uses the SELECT Id, Account__c, Program__c, Transaction_Date__c clause to return only the index fields of the Big Object, which is more efficient than returning all the fields. The query also uses the LIMIT 1000 clause to limit the number of records returned to 1000, which is the maximum limit for Big Object queries. Reference: [SOQL for Big Objects], [Big Object Indexes]
質問 # 36
開発者はビジネス ロジック コードを動作させていますが、テスト クラスに次のエラーが表示されます。
コミットされていない保留中の作業があります。呼び出す前にコミットまたはロールバックしてください。可能な解決策は何ですか?
- A. コールアウトに @TestVisible を設定して、ビジネス ロジックとテスト クラスを書き直します。
- B. コールアウトを行う前に test.IsRunningTest() を使用して、テスト実行でそれをバイパスします。
- C. 外部コードのエラーである可能性が高いため、ターゲット エンドポイントについてサポートに連絡してください。
- D. コードは実際には失敗しないため、テスト クラスの先頭で seeAIIData を "true" に設定します。
正解:B
質問 # 37
......
PDII日本語試験解答問題集:https://www.passtest.jp/Salesforce/PDII-JPN-shiken.html(198問題と解答)
無料2024年最新のSalesforce Developers PDII日本語問題集を提供しております!PassTest:https://drive.google.com/open?id=1d4BNT49Bk4WG2VMSp8rUW8jiTJWSP8Da