Free Salesforce Developers PDII-JPN Ultimate Study Guide (Updated 163 Questions)
Get to the Top with PDII-JPN Practice Exam Questions
NEW QUESTION # 34
開発者は、新しい AppFxchange アプリケーションを開発するように求められます。プログラムの機能は、ケースが特定の段階に達し、特定のレコード タイプになると、調査レコードを作成します。Salesforce インスタンスごとに異なるタイミングでアンケートが必要になるため、この機能は構成可能である必要があります。さらに、すぐに使える AppExchange アプリには、ほとんどの顧客に適用される一連のベスト プラクティス設定が付属している必要があります。
開発者はアプリのカスタム構成設定を保存およびパッケージ化するために何を使用する必要がありますか?
- A. カスタムラベル
- B. カスタム設定
- C. カスタムオブジェクト
- D. カスタムメタデータ
Answer: D
Explanation:
Custom metadata is best for storing configurable settings. It's deployable, packageable, and upgradeable.
Allows different configurations for different instances.References: Custom Metadata Types
NEW QUESTION # 35
現在のユーザーのロケールで日付を文字列に変換するにはどのメソッドを使用する必要がありますか?
- A. 日付。フォーマット
- B. 文字列.形式
- C. 日付.paras
- D. 文字列の値
Answer: A
Explanation:
The format method of the Date class is used to convert a Date to a String formatted in the current user's locale. This respects the locale settings of the user context under which the code is running, ensuring the date is represented in a way that is familiar to the user.
References:
Apex Developer Guide
NEW QUESTION # 36
@remoteAction デコレータを使用してグローバル サーバー側メソッドを呼び出そうとすると、開発者がエラーを受け取ります。開発者はどのようにエラーを解決できますか?
- A. サーバー側のメソッド シグネチャに static を追加します。
- B. サーバー側メソッドを (static=false) で装飾する
- C. 関数シグネチャをプライベート スタティックに変更します。
- D. サーバー側メソッドを (static=true) で装飾します。
Answer: A
NEW QUESTION # 37
コードよりも宣言的なカスタマイズを使用する利点を 3 つ挙げてください。3つの答えを選択してください
- A. 宣言的なカスタマイズは、Salesforce のリリースごとに自動的に更新されます。
- B. 宣言的なカスタマイズは、ガバナー制限の対象ではありません。
- C. 宣言的なカスタマイズは、通常、メンテナンスの必要性が少なくなります。
- D. 宣言的なカスタマイズでは、ユーザー テストは必要ありません。
- E. 宣言的なカスタマイズは実行時エラーを生成できません。
Answer: A,B,D
NEW QUESTION # 38
開発者は、ゲストがフロントデスクのキオスクに到着したときに自己登録できる Aura コンポーネントを構築しました。ここで開発者は、ゲストがフロント デスクに到着するたびにユーザーに警告するユーティリティ トレイのコンポーネントを作成する必要があります。
何を使えばいいのでしょうか?
- A. アプリケーションイベント
- B. 変更履歴
- C. DML 操作
- D. コンポーネントイベント
Answer: A
NEW QUESTION # 39
次のコードがあるとします。
今日、10 個の連絡先と 5 個のアカウントが作成されたと仮定すると、期待される結果は何でしょうか?
- A. System.QueryException: リストにアカウントの割り当ての行が複数あります
- B. System.LimitException: 連絡先の SOQL クエリが多すぎます
- C. System.QueryException: 連絡先の DML ステートメント エラーが多すぎます
- D. Systemn.LimitException: アカウントの SOQL クエリが多すぎます
Answer: A
NEW QUESTION # 40
Universal Containers は、Salesforce を使用して order__c オブジェクト内の注文を追跡します。
order = オブジェクトには、組織全体のプライベートなデフォルトがあります。order = オブジェクトにはカスタム フィールド Quality_Controller_c があり、これはユーザーへのルックアップであり、指定されたユーザーが order_co で品質管理を実行していることを示すために使用されます。
Quality_Controller フィールドに設定されたユーザーに読み取り専用アクセスを自動的に付与するには何を使用する必要がありますか?
- A. Apex 管理による共有
- B. レコードの所有権
- C. 基準に基づく共有
- D. ユーザー管理の共有
Answer: A
Explanation:
Apex managed sharing provides a programmatic way to share records when the organization-wide default for an object is Private. The Quality_Controller__c field can be used within a trigger or class to share records with the specified user using Apex managed sharing.References: Apex Developer Guide - Sharing a Record Using Apex
NEW QUESTION # 41
次のコード スニペットを考えてみましょう。
Apex メソッドはアカウントのデータ量が多い環境で実行されており、クエリのパフォーマンスが低下しています。
結果セット全体を保持しながらクエリを最適に実行するには、開発者はどの手法を実装する必要がありますか?
- A. データベースの queryLocator メソッドを使用してアカウントを取得します。
- B. クエリを 2 つの個別のクエリに分割し、2 つの結果セットを結合します。
- C. メソッドに @Future アノテーションを付けます
- D. createdDate と RecordType の値を組み合わせる数式フィールドを作成し、数式に基づいてフィルターします。
Answer: B
Explanation:
The technique that the developer should implement to ensure the query performs optimally, while preserving the entire result set, is to break down the query into two individual queries and join the two result sets. This is because the query in the code snippet is using a complex filter condition that combines the CreatedDate and RecordType fields, which are not indexed by default. This means that the query will perform a full table scan on the Account object, which can be very slow and inefficient when the data volume is large. To avoid this, the developer can split the query into two queries, one that filters by the CreatedDate field and another that filters by the RecordType field. Then, the developer can use a Set or a Map to store the Ids of the Accounts that match both criteria, and use the Set or the Map to retrieve the Account records from the database. This way, the query will use the standard indexes on the Id, CreatedDate, and RecordType fields, and perform faster and more efficiently.
NEW QUESTION # 42
開発者は、テスト クラス内から組織データにアクセスしようとしています。テストクラスに (seeAllData=true) アノテーションが必要な sObject タイプはどれですか?
- A. レポート
- B. レコードの種類
- C. プロフィール
- D. ユーザー
Answer: A
Explanation:
Explanation
Test (SeeAllData=true) annotation is used to grant test classes and individual test methods access to all data in the organization, including pre-existing data that the test didn't create. This annotation is required for Apex code saved using Salesforce API version 24.0 and later.
Profile is one of the sObject types that require the isTest (SeeAllData=true) annotation to access org data from within a test class. Other sObject types that require this annotation are User, UserRole, Group, GroupMember, QueueSobject, and CronTrigger.
Therefore, using Profile as the sObject type requires the test class to have the isTest (SeeAllData=true) annotation.
NEW QUESTION # 43
以下の Lightning コンポーネントを参照してください。
Lightning コンポーネントを使用すると、ユーザはボタンをクリックして変更を保存し、別のページにリダイレクトできます。
現在、ユーザーが「保存」ボタンをクリックすると、レコードは保存されますが、リダイレクトされません。
開発者が JavaScript をデバッグするために使用できる 3 つのテクニックはどれですか?
3 つの答えを選択してください
- A. 開発者コンソールを使用してデバッグ ログを表示します。
- B. JavaScript で console.log() メッセージを使用します。
- C. ブラウザの開発ツールを使用して JavaScript をデバッグします。
- D. ユーザの Lightning コンポーネントのデバッグモードを有効にします。
- E. 開発者コンソールを使用してチェックポイントを表示します。
Answer: B,C,D
Explanation:
To debug the JavaScript, the developer can use the following three techniques:
Use console.log() messages in the JavaScript. The console.log() method is a built-in JavaScript function that prints a message to the browser's console. The developer can use this method to log the values of variables, parameters, or expressions in the JavaScript code, and check the console output for errors or unexpected results. The developer can also use other console methods, such as console.error(), console.warn(), or console.info(), to log different types of messages with different colors and icons.
Use the browser's dev tools to debug the JavaScript. The browser's dev tools are a set of tools that are integrated in the browser and allow the developer to inspect, modify, and debug the web pages. The developer can use the dev tools to debug the JavaScript code by setting breakpoints, stepping through the code execution, watching the variables, evaluating the expressions, and viewing the call stack. The developer can also use the dev tools to inspect the DOM elements, the network requests, the performance, and the storage of the web page.
Enable Debug Mode for Lightning components for the user. Debug Mode for Lightning components is a feature that allows the developer to debug the Lightning components more easily. When Debug Mode is enabled for a user, the Lightning components are served to the user in a more readable and unminified format, which makes the JavaScript code easier to understand and debug. The developer can also see more detailed error messages and stack traces when Debug Mode is enabled. The developer can enable Debug Mode for Lightning components for a user by going to Setup > Debug Mode, and selecting the user from the list. Reference: [Debug Your Code], [Use Browser Development Tools to Debug Your Code], [Debug Lightning Components]
NEW QUESTION # 44
開発者は、ユーザーを次の名前のカスタム プロファイルに割り当てることができるシステム監査機能を実装する必要があります。
「監査人」は、Account オブジェクト内の履歴レコードに対して検索を実行します。開発者は、検索で 6 か月から 12 か月前の履歴レコードを返すことができることを確認する必要があります。
以下のコードの場合、6 か月から 12 か月の範囲のアカウント履歴レコードを取得する有効な方法として、どの選択ステートメントを下に挿入する必要がありますか?
- A.

- B.

- C.

- D.

Answer: A
Explanation:
Given the code snippet, the correct query to retrieve Account History records between 6 and 12 months old would be the one that includes a WHERE clause filtering records where the CreatedDate is greater than or equal to initialDate and less than or equal to endDate. Option B's statement does this correctly by using the >
= and <= operators to define the range between initialDate (which is set to today's date minus 12 months) and endDate (set to today's date minus 6 months). Options A, C, and D either use incorrect comparison operators or compare against the wrong variables, resulting in an incorrect data set being returned.
References
SOQL Date Formats and Date Literals: SOQL and SOSL Reference Guide
NEW QUESTION # 45
一度に数千の取引先レコードをロードする Visualforce ページ内のカスタムデータテーブルの表示時間が遅いというユーザーからの苦情があります。
このような問題を軽減するために開発者は何ができるでしょうか?
- A. 標準のアカウント リスト コントローラーを使用し、ページネーションを実装します。
- B. 取引先レコードをクエリするときに、Apex コードで transient キーワードを使用します。
- C. JavaScript リモート処理を使用してアカウントをクエリします。
- D. サードパーティのデータ テーブル ライブラリを静的リソースとしてアップロードします。
Answer: A
Explanation:
Implementing pagination using the standard Account List controller in Visualforce is a proven method to improve performance when displaying large sets of data. Pagination allows only a subset of records to be fetched and displayed at a time, thereby reducing the load time of the page.
References: Visualforce Developer Guide - Implementing Pagination
NEW QUESTION # 46
次のコード スニペットを参照してください。
開発者は、特定の条件が満たされた場合に geyFetchLeadList を呼び出して潜在顧客に関する情報を表示する Lightning Web コンポーネント (LWC) の一部として JavaScript 関数を作成しました。
LWC がセキュリティを維持しながら効率的にデータを表示できるようにするには、開発者が上記の Apex クラスに実装する必要がある 3 つの変更はどれですか?
3 つの答えを選択してください
- A. クラス宣言に with キーワードを実装します。
- B. Apex メソッドに @AuraEnabled のアノテーションを付けます。
- C. Apex メソッドに @AuraEnabled(Cacheable=True) のアノテーションを付けます。
- D. クラス宣言に with Sharing キーワードを実装します。
- E. SOQL クエリ内で WZ ED 句を使用します。
Answer: B,C,D
Explanation:
The three changes that the developer should implement in the Apex class to ensure the LWC can display data efficiently while preserving security are to annotate the Apex method with @AuraEnabled, implement the with sharing keyword in the class declaration, and annotate the Apex method with @AuraEnabled(Cacheable=True). The @AuraEnabled annotation allows the Apex method to be called from a Lightning web component, and exposes the method to the Lightning Data Service. The with sharing keyword enforces the sharing rules and permissions of the current user when accessing the records, and ensures that the data is secure and compliant. The @AuraEnabled(Cacheable=True) annotation enables the Apex method to be cached by the Lightning Data Service, and improves the performance and efficiency of the data retrieval. Implement the without keyword in the class declaration is not a valid answer, as it ignores the sharing rules and permissions of the current user when accessing the records, and compromises the data security and compliance. Use the WHERE clause within the SOQL query is not a valid answer, as it is not a change in the Apex class, and it does not affect the security or efficiency of the data display. Reference: [Call Apex Methods], [Using the with sharing or without sharing Keywords], [Improve Performance with Storable Actions], [Apex Developer Guide]
NEW QUESTION # 47
次のコードがあるとします。
今日、10 件の取引先責任者と 5 件の取引先が作成されたと仮定すると、どのような結果が予想されますか?
- A. システム。LimitException: 契約の SOQL クエリが多すぎます
- B. システム。QueryException: Contact で多数の DML ステートメント エラーが発生しました
- C. システム。QueryException: アカウントの割り当て後にリストに複数の行があります。
- D. システム。LimitException: アカウントの多数の SOQL クエリに対して。
Answer: C
NEW QUESTION # 48
開発者は、取引先の最近連絡した 5 人の取引先責任者を表示する取引先レコードページの Lightning Web コンポーネントを作成しました。Apex メソッド Contacts は連絡先のリストを返し、コンポーネントのプロパティに関連付けられます。
Apex メソッドを接続できるようにするには、上記のコードのどの 2 行を変更する必要がありますか?
2 つの答えを選択してください
- A. 09 行目から private を削除します。
- B. @AuraEnabled {cacheable=trues) を 08 行目に追加します。
- C. @AuraEnabled {cacheable=true) を行 03 に追加します。
- D. 04行目にpublicを追加します。
Answer: A,B
Explanation:
To make an Apex method callable from a Lightning Web Component, you need to annotate the method with
@AuraEnabled and mark it as cacheable if it's only retrieving data without modifying it. Additionally, the method must be public to be accessible from the component.
Line 04: Needs @AuraEnabled(cacheable=true) to allow the method to be called from the Lightning Web Component and indicate that the method doesn't modify any data, making it suitable for caching.
Line 09: The method getFiveMostRecent should not be private because private methods cannot be called from a Lightning Web Component. Changing it to public (or default, which is equivalent to public within the same namespace) is required.
References:
Lightning Web Components and Salesforce Data: Developer Documentation
@AuraEnabled Annotation: Apex Developer Guide
NEW QUESTION # 49
0f Universal Containers は Big Object を使用して、Customer_Transaction__b と呼ばれる約 10 億件の顧客トランザクションを保存しています。Customer_Transaction__b のフィールドは次のとおりです。 Account__c Program__c Points_Earned__c Location__c Transaction_Date__c 次のフィールドは、Customer_Transaction__b オブジェクトのインデックス フィールドとして識別されています: Account__c、Program__c、および Transaction_Date__c。Customer_Transaction__b Big Object で有効な SOQL クエリはどれですか?
- A. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE
Account__c = '001R000000302D3' AND Program__c INCLUDES ('Shoppers', 'Womens') AND
Transaction_Date__c=2019-05-31T00:00Z - B. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b
WHERE Account__c = '001R000000302D3' AND Program__c ='Shoppers' AND
Transaction_Date__c=2019-05-31T00:00Z - C. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE
Account__c = '001R000000302D3' AND Program__c LIKE 'Shop%' AND Transaction_Date__c=2019-05-31T00:00Z - D. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE
Account__c = '001R000000302D3' AND Program__c EXCLUDES ('Shoppers', 'Womens') AND
Transaction_Date__c=2019-05-31T00:00Z
Answer: B
NEW QUESTION # 50
新しい導入の直前に、開発者サンドボックスで新しい注文フルフィルメント プロセス機能を設定した Salesforce 管理者が突然会社を辞めました。
UAT サイクルの一環として、ユーザーはサンドボックス内のすべての変更を完全にテストし、承認しました。注文フルフィルメント機能を実稼働環境で稼働させる準備を整えます。
残念ながら、変更セットは開始されましたが、元の管理者によって完了されませんでした。
導入を完了するために開発者が呼び込まれます。
実稼働環境に移行する必要がある構成変更を特定するには、開発者は何をすべきでしょうか?
- A. セットアップ監査証跡を利用して、退職した管理者によって行われた変更を確認し、どの変更を変更セットに追加する必要があるかを特定します。
- B. 継続的インテグレーションと Git リポジトリをセットアップして、サンドボックス メタデータからのすべての変更を運用メタデータに自動的にマージします。
- C. Salesforce の設定で、すべてのオブジェクトの最終変更日を調べて、どれを変更セットに追加する必要があるかを判断します。
- D. メタデータ API とサポートされている開発 IDE を使用して、すべての構成をサンドボックスから運用環境にプッシュし、変更が失われないようにします。
Answer: A
NEW QUESTION # 51
開発者は、次の HTML スニペットを使用して sObject Lightning ページに常駐する再利用可能な Aura コンポーネントを開発しています。
追加のテストカバレッジを必要とせずに、component"5 コントローラが sObject が存在する Lightning ページのコンテキストを取得するにはどうすればよいでしょうか?
- A. force:hasSobjectName をimplements 属性に追加します。
- B. Apex クラスで gerSubjectType メソッドを使用します。
- C. sObject タイプをコンポーネント属性として設定します。
- D. デザイン属性を作成し、App Builder 経由で構成します。
Answer: A
Explanation:
* By implementing force:hasSobjectName, the Aura component can retrieve the sObject context of the record page it is placed on without needing additional information. This interface provides the component with the API name of the sObject being displayed.
References:
Aura Components Developer Guide
NEW QUESTION # 52
組織には 2 つのカスタム オブジェクトが含まれます。Building__c と Office__c。Office__c には Building__c への Lookup フィールドがあります。
開発者は、Building__c オブジェクトの Number_of_Offices__c フィールドに、関連する Office__c の数を自動的に入力するよう求められます。
Office__c レコードが作成または削除されるたびに記録します。開発者はフィールド タイプを変更できません。
要件を満たすソリューションはどれですか?
- A. フロー
- B. ワークフロー
- C. プロセスビルダー
- D. アペックストリガー
Answer: D
NEW QUESTION # 53
会社にはカスタム コンポーネントがあり、ユーザーの入力に基づいて結果のリストを返す Apex コントローラを呼び出して、ユーザーが特定のオブジェクト タイプのレコードを検索できるようにします。検索が完了すると、searchComplete イベントが発生し、結果が返されます。イベントの結果属性に入れます。このコンポーネントは、他のコンポーネント内で使用するように設計されており、1 つのページに複数回表示される場合があります。
検索が完了したときにイベントを発生させるために追加する必要がある最適なコードは何ですか?
- A.

- B.

- C.

- D.

Answer: D
NEW QUESTION # 54
次のコード スニペットを参照してください。
開発者は Lightning Web コンポーネントで問題を経験しています。コンポーネントは、現在ログインしているユーザーが所有する商談に関する情報を表示する必要があります。
コンポーネントがレンダリングされると、「データ取得エラー」というメッセージが表示されます。
この問題を解決するには、Apex クラスにどの変更を実装する必要がありますか?
- A. Opportunity オブジェクトの OWD が Public であることを確認します。
- B. Apex メソッドで Continuation=true 属性を使用します。
- C. w を使用するようにコードを編集します。Apex クラスのカット共有キーワード。
- D. Apex メソッドで Cacheable=true 属性を使用します。
Answer: D
NEW QUESTION # 55
開発者はサンドボックス内の Acme アカウントのすべてのアカウント フィールドをクエリするには何を使用する必要がありますか?
- A. アカウント WHERE 名からすべてを選択 = "Acme" LIMIT 1
- B. フィールドを選択 FAOM アカウント WHERE 名 = 'Acme' LIMIT 1
- C. アカウント WHERE 名 = 'Acme' からフィールドを選択 (すべて) LIMIT 1
- D. SELECT * FROM Recount WHERE Names = 'Aeme' LIMIT 1
Answer: C
Explanation:
The correct SOQL query to retrieve all fields for a specific Account is to use the FIELDS(ALL) function within the SELECT clause of the SOQL query. This will return all fields for the Account named
'Acme'.References: SOQL and SOSL Reference Guide - FIELDS() Function
NEW QUESTION # 56
開発者は、外部 Web サービスへのコールアウトを行う必要があるコードを作成しています。
コールアウトを非同期メソッドで行う必要があるのはどのシナリオですか?
- A. 1 回のトランザクションで 10 件を超えるコールアウトが行われます。
- B. コールアウトが完了するまでに 60 秒以上かかる可能性があります。
- C. コールアウトは REST APL を使用して作成されます。
- D. コールアウトは Apex トリガで作成されます。
Answer: D
Explanation:
The scenario that necessitates that the callout be made in an asynchronous method is when the callouts will be made in an Apex trigger. An Apex trigger is a piece of Apex code that executes before or after specific data manipulation language (DML) events occur, such as inserting, updating, or deleting records. A callout is a request that is sent from Apex code to an external web service. Apex does not allow callouts to be made from triggers, as triggers are synchronous and run in the same transaction as the DML operation. Callouts are asynchronous and may take a long time to complete, which can cause the transaction to exceed the governor limits or lock the database resources. Therefore, the developer must use an asynchronous method, such as a future method, a queueable class, or a batch class, to make the callout from the trigger. An asynchronous method runs in a separate thread and does not block the execution of the trigger or the DML operation. Reference: [Apex Triggers], [Apex Web Services and Callouts], [Asynchronous Apex]
NEW QUESTION # 57
ある企業には現在、外部の注文管理システム (OMS) から Salesforce に注文を手動でアップロードするプロセスがあります。
ID を取得するにはアカウントを Salesforce からエクスポートする必要があるため、これは労働集約的なプロセスです。注文を対応するアカウントに関連付けるには、アップロード ファイルを正しいアカウント ID で更新する必要があります。
このプロセスをより効率的にするための 2 つの推奨事項はどれですか?
2 つの答えを選択してください
- A. 注文とアカウントの一意のフィールドを識別し、それらを外部 ID として設定します。
- B. データローダーの挿入ウィザードを使用してデータをインポートします。
- C. ファイル内のデータが注文 ID によってソートされていることを確認します。
- D. データ ローダーの更新/挿入ウィザードを使用してデータをインポートします。
Answer: A,D
Explanation:
Setting unique fields on related objects as External IDs allows for the creation of relationships during imports without needing Salesforce IDs. The upsert operation in Data Loader can then use these External IDs to relate records, which streamlines the process and avoids the need to export Salesforce IDs manually.
References:
Data Loader Guide
NEW QUESTION # 58
開発者は、アウトバウンド メッセージングを実装するためのリスナーを作成しています。
この場合、開発者が留意する必要がある 3 つの考慮事項はどれですか?
3つの答えを選択してください
- A. アウトバウンド メッセージのセッションは、API リクエストと UT リクエストの両方にスコープされます。
- B. メッセージは順不同で配信できます。
- C. メッセージは、キュー内の順序に関係なく再試行されます。
- D. リスナーは、パブリック インターネットから到達可能である必要があります。
- E. 組織 1D は、最初の送信メッセージにのみ含まれます。
Answer: A,B,C
NEW QUESTION # 59
......
Pass Salesforce PDII-JPN exam - questions - convert Tets Engine to PDF: https://skillmeup.examprepaway.com/Salesforce/braindumps.PDII-JPN.ete.file.html