PDII-JPN Dumps To Pass Salesforce Developers Exam in One Day (Updated 163 Questions)
PDII-JPN Exam Brain Dumps - Study Notes and Theory
NEW QUESTION # 32
Universal Containers (LIC) は、顧客がコンテナに関する問題を記録できるようにする顧客コミュニティを開発したいと考えています。コミュニティは、ドイツ語とスペイン語を話す顧客のためにも機能する必要があります。UC は、Salesforce を使用すると国際的なコミュニティを簡単に作成できると聞き、サイトを構築する開発者を雇いました。
開発者はサイトを多言語化するには何を使用する必要がありますか?
- A. カスタム設定を使用して、カスタム メッセージが適切に翻訳されるようにします。
- B. カスタム メタデータを使用してカスタム選択リスト値を変換します。
- C. カスタム オブジェクトを使用してカスタム選択リスト値を変換します。
- D. カスタム ラベルを使用して、カスタム メッセージが適切に翻訳されていることを確認します。
Answer: D
NEW QUESTION # 33
2 Visualforce 検索ページで使用される RemoteAction を定義する以下の Apex クラスについて考えてみましょう。
リモート アクションが正しいアカウントを返したことを示すコード スニペットはどれですか?
- A.

- B.

- C.

- D.

Answer: A
Explanation:
The correct code snippet to assert that the remote action returned the correct Account is option C. This is because the getAccount method is a global static method within the MyRemoter class and can be directly called without needing to instantiate an object of the class.
References: Apex Developer Guide - Exposing Apex Methods to JavaScript
NEW QUESTION # 34
コンポーネントがレンダリングされると、「データ取得エラー」というメッセージが表示されます。
この問題を解決するには、Apex クラスにどの変更を実装する必要がありますか?
- A. w を使用するようにコードを編集します。Apex クラスのカット共有キーワード。
- B. Opportunity オブジェクトの OWD が Public であることを確認します。
- C. Apex メソッドで Cacheable=true 属性を使用します。
- D. Apex メソッドで Continuation=true 属性を使用します。
Answer: C
Explanation:
The Cacheable=true attribute is used to indicate that the Apex method can be cached and reused on the client side, such as in a Lightning web component. This attribute enables the method to be called imperatively or via @wire in the component, and improves the performance and user experience of the component. Without this attribute, the Apex method can only be called imperatively, and will not work with @wire, which is used to get data from the server and update the component automatically. This can cause an error when the component is rendered, such as "Error retrieving data". Reference: [Call Apex Methods], [Imperative Apex]
NEW QUESTION # 35
開発者は、外部システムへのコールアウトをいくつか行うための Apex クラスを作成しました。
これらのコールアウトで使用される URL が頻繁に変更される場合、Apex クラスに必要な変更を最小限に抑えるために開発者はどの機能を使用する必要がありますか?
- A. 名前付き資格情報
- B. リモート サイトの設定
- C. セッション ID
- D. 接続されているアプリ
Answer: A
Explanation:
The correct feature to use is C, Named Credentials. Named Credentials are a secure way of storing the endpoint and authentication details for callouts to external services. When URLs change frequently, using Named Credentials allows you to manage the endpoint URL in one place without changing the Apex code.
References:
Named Credentials
NEW QUESTION # 36
ある企業は Dpportunities を使用して顧客への売上を追跡しており、その組織には何百万もの Opportunities があります。彼らは、関連する収益オブジェクトを通じて経時的な収益の追跡を開始したいと考えています。
初期実装の一環として、複雑なロジックに基づいて商談の収益レコードを自動的に作成してデータを入力することにより、データの 1 回限りのシード処理を実行したいと考えています。
彼らは、約 100,000 の商談で収益レコードが作成され、入力されると推定しています。
これを自動化する最適な方法は何でしょうか?
- A. データベースを使用します。=executeBatch() を使用してデータベースを呼び出します。バッチ可能クラス。
- B. システム acheduladeb() を使用して、patakape.Scheduleable クラスをスケジュールします。
- C. system, enqueuJob (| を使用して、推測可能なクラスを呼び出します。
- D. Database .executeBatch () を使用して Queueable クラスを呼び出します。
Answer: A
Explanation:
The optimal way to automate this requirement is to use Database.executeBatch() to invoke a Database.Batchable class. Database.executeBatch() is a method that allows you to run Apex code asynchronously by submitting it to the Apex job queue. Database.Batchable is an interface that allows you to define a class that can process large numbers of records in batches. You can use Database.executeBatch() to invoke a Database.Batchable class that implements the logic for creating and populating Revenue records for Opportunities based on complex logic. This solution allows you to process up to 50 million records in a single batch job, avoid governor limits on SOQL queries and DML operations, and monitor the progress and status of the job . Reference: [Using Batch Apex], [Database.executeBatch Method], [Database.Batchable Interface]
NEW QUESTION # 37
開発者は、Lightning Web コンポーネントのスタイルと動作を制御する変数を保存する必要があります。
本番環境とすべてのサンドボックスの両方で変数を確実にテストできるようにするには、どの機能を使用できますか?
- A. カスタムメタデータ
- B. カスタム設定
- C. カスタムオブジェクト
- D. カスタム変数
Answer: A
Explanation:
Custom metadata types are the best feature for storing variables that control style and behavior of a Lightning Web Component. Unlike custom settings, custom metadata is deployable and testable in both Production and all Sandboxes.
References: Salesforce Help - Custom Metadata Types Overview
NEW QUESTION # 38
現在のユーザーのロケールで Date を String に変換するには、どのメソッドを使用する必要がありますか?
- A. 文字列。値の
- B. 日付.parse
- C. 日付.形式
- D. 文字列.format
Answer: C
NEW QUESTION # 39
ある組織では、取引先には必ず1人の連絡先がプライマリとして登録されている必要があるという要件があります。そのため、1人の連絡先を選択すると、他の連絡先は選択解除されます。クライアントは、この機能を制御するために、連絡先に「プライマリ」というチェックボックスを追加したいと考えています。また、すべての連絡先の姓がすべて大文字で保存されるようにしたいと考えています。これらの要件を実装する最適な方法は何でしょうか?12345
- A. Is Primary ロジック用に Account に更新後トリガーを記述し、姓ロジック用に Contact に更新前トリガーを記述します。
- B. Is Primary ロジック用に Contact に更新後トリガーを記述し、姓ロジック用に Contact に別の更新前トリガーを記述します。
- C. 更新後と更新前の両方に対してContactに単一のトリガーを記述し、各ロジックセットを処理するヘルパークラスを呼び出します。14
- D. 連絡先にIs Primaryロジックの検証ルールを記述し、連絡先に姓ロジックの更新前トリガーを記述します。8910
Answer: C
Explanation:
16
The optimal architectural ap17proach for complex logic on a single object is to use a single trigger per object that delegates responsibilities to a helper class. This requirement involves two distinct types of logic: field manipulation (uppercase names) and cross-record updates (ensuring only one primary contact).
In Salesforce, Before triggers are ideal for updating fields on the record that initiated the trigger, as the changes are saved to the database without an additional DML statement. Therefore, converting the LastName to uppercase should occur in a before update and before insert context. Conversely, the "Is Primary" logic requires updating other records (de-selecting other contacts on the same account). This must happen in an After trigger context to ensure the primary record has been successfully updated and to avoid recursion or conflicts with the initial save.
Option D is the best practice because it follows the "One Trigger Per Object" design pattern. By using a single trigger with multiple context variables (isBefore, isAfter, isUpdate), the developer can cleanly route the "Last Name" logic to a before-save helper and the "Is Primary" cross-record update logic to an after-save helper.
This centralized control prevents multiple triggers from firing in an unpredictable order and simplifies maintenance and debugging.
NEW QUESTION # 40
Account オブジェクトにはフィールド auais_Code__c があり、Account が必要とする監査のタイプを指定するために使用され、ユーザーへのルックアップ Ruditor_c が割り当てられた監査人です。
アカウントが最初に作成されるとき、ユーザーは Audit_Code__c を指定します。組織内の各ユーザーには、一意のテキスト フィールド Rudi があります。
これは、アカウントの Auditor__c フィールドに正しいユーザーを自動的に割り当てるために使用されます。
コードの効率を最大限に最適化するには、何を変更する必要がありますか?
2つの答えを選択してください
- A. アカウントへの監査コードの Mep<String, list<Account>> を作成します。
- B. 最初の SOQL クエリを追加して、個別の監査コードをすべて取得します。
- C. アカウント ID の eMepcie、List<String> を使用してコードを通知します。
- D. SOQL クエリに WHERE 句を追加して、監査コードで絞り込みます。
Answer: C,D
NEW QUESTION # 41
開発者は、Salesforce プロジェクトの導入プロセスを策定する責任があります。このプロジェクトはソース駆動開発アプローチに従っており、開発者はメタデータ変更の効率的な展開とバージョン管理を確実にしたいと考えています。
ソース主導のデプロイメントプロセスを管理するには、どのツールまたはメカニズムを利用する必要がありますか?
- A. チェンジセット
- B. Force.com IDE
- C. メタデータ API
- D. Salesforce CLI と Salesforce DX
Answer: D
NEW QUESTION # 42
カスタム Aura コンポーネント AddressValidation,cmp がシステムに存在します。組織の Salesforce 管理者は、Account sObject のクイックアクションの作成中にコンポーネントを見つけて選択することができません。
クイック アクションの作成時に AddressValidation,cmp を確実に選択できるようにするために、開発者は何をすべきですか?
- A. コンポーネントが force:lighningQuickAction.interface を実装していることを確認します。
- B. aura:component タグの access 属性が st t Global であることを確認します。
- C. コンポーネントが force:hasRecordedId インターフェースを実装していることを確認します。
- D. コンポーネントが lightning:actionOverride インターフェースを実装していることを確認します。
Answer: A
NEW QUESTION # 43
次のクエリを検討してください。これらのクエリでは、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 # 44
共有クラス MyRemoter を持つグローバル { public String accountName { get; 設定; } public static Account アカウント { get; 設定; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String accuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } RemoteAction を定義する上記の Apex クラスを検討してください。リモート アクションが正しい取引先を返したと主張するコード スニペットはどれですか?
- A. Account a = controller.getAccount('TestAccount');
System.assertEquals(, 'TestAccount', a.Name } ; - B. Account a = MyRemoter.getAccount ('TestAccount'):
System.assertEquals{ 'TestAccount', a.Name }; - C. MyRemoter remote = new MyRemoter();
Account a = remote.getAccount ({'TestAccount');
System.assertEquals, 'TestAcccunt', a.Name -; - D. MyRemoter remote = new MyRemoter('TestAccount'};
Account a = remote.getAccount {);System.assertEquals(, ''TestAccount', a.Name -;
Answer: B
NEW QUESTION # 45
SOQL クエリで DISTANCE 関数と GEOLOCATION 関数をどのように使用できますか? (2つ選んでください。)
- A. 緯度と経度から距離結果を取得するには
- B. 緯度と経度からの距離範囲で結果をグループ化するには
- C. 緯度と経度からの距離に基づいて結果をフィルタリングするには
- D. 緯度または経度からの距離で結果を並べ替えるには
Answer: C,D
NEW QUESTION # 46
以下の Lightning コンポーネントを参照してください。
Lightning コンポーネントを使用すると、ユーザはボタンをクリックして変更を保存し、別のページにリダイレクトできます。
現在、ユーザーが「保存」ボタンをクリックすると、レコードは保存されますが、リダイレクトされません。
開発者が JavaScript をデバッグするために使用できる 3 つのテクニックはどれですか?
3 つの答えを選択してください
- A. ユーザの Lightning コンポーネントのデバッグモードを有効にします。
- B. ブラウザの開発ツールを使用して JavaScript をデバッグします。
- C. JavaScript で console.log() メッセージを使用します。
- D. 開発者コンソールを使用してデバッグ ログを表示します。
- E. 開発者コンソールを使用してチェックポイントを表示します。
Answer: A,B,C
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 # 47
ただし、テストを実行するとデータが返されず、アサーションは失敗します。
テストクラスが正常に実行されることを確認するには、開発者はどの編集を行う必要がありますか?
- A. メソッド呼び出しを Test 内に囲みます。startbest i) および @Test_stopTast |)。
- B. @1sTest アノテーションに seeAllData=true 属性を実装します。
- C. テスト クラスに setFixedSearchResult= メソッドを実装します。
- D. searchFeatures Apex クラスにキーワードを共有せずに実装します。
Answer: C
Explanation:
Implementing the setFixedSearchResult= method in the test class is a way to ensure that the test class runs successfully. The setFixedSearchResult= method is a method that can be used to specify the records to be returned by the SOSL query in the test class. The setFixedSearchResult= method can accept a list of record IDs as a parameter, and return those records when the SOSL query is executed. By using the setFixedSearchResult= method, the developer can control the data returned by the SOSL query, and avoid the dependency on the data in the org. The developer can also use the Test.loadData method to load the test data from a static resource, and pass the record IDs to the setFixedSearchResult= method. For example, the developer can use the following code to implement the setFixedSearchResult= method in the test class:
// Load test data from a static resource List<sObject> testRecords = Test.loadData(Account.sObjectType, 'testData');
// Get the record IDs List<Id> recordIds = new List<Id>(); for (sObject record : testRecords) { recordIds.add(record.Id); }
// Set the fixed search result Test.setFixedSearchResults(recordIds);
// Call the method that performs the SOSL query List<Account> results = searchFeatures.search('Acme');
// Assert the expected results System.assertEquals(testRecords.size(), results.size());
NEW QUESTION # 48
開発者は、3 つのセーブポイントを持つ必要がある Apex ベースの注文作成プロセスをデバッグしています。
SP1、SP2、SP3 (順番に作成)、プロセスの最終実行前。
最終的な実行プロセス中に、開発者は特定の条件で SP1 にロールバックするルーチンを持っています。状態が修正されると、コードは SP3 へのロールバックを呼び出して、最終的な実行を続行します。ただし、SP3 へのロールバックが呼び出されると、実行時エラーが発生します。
開発者が実行時エラーを受け取るのはなぜですか?
- A. 開発者が 1 つのトリガー セッションで使用したセーブポイントが多すぎます。
- B. 開発者は、SP3 を呼び出す前に SP2 を呼び出す必要がありました。
- C. セーブポイント間の DML ステートメントが多すぎます。
- D. SP1 がロールバックされたときに SP3 が無効になりました。
Answer: D
NEW QUESTION # 49
会社は、指定された取引先項目セットを表示し、取引先レコード ページにのみ追加できるカスタム Lightning コンポーネントを構築したいと考えています。どの設計リソース構成を使用する必要がありますか?
- A.

- B.

- C.

- D.

Answer: B
NEW QUESTION # 50
......
PDII-JPN Dumps PDF - Want To Pass PDII-JPN Fast: https://www.testkingit.com/Salesforce/latest-PDII-JPN-exam-dumps.html
100% Guaranteed Results PDII-JPN Unlimited 163 Questions: https://drive.google.com/open?id=1sMSjiAPGT7lq2grnmi2cZWcDMG1Ti422