無料Salesforce CRT-450日本語試験問題と解答トレーニングを提供しています [Q106-Q127]

Share

無料Salesforce CRT-450日本語試験問題と解答トレーニングを提供しています

トップクラスSalesforce CRT-450日本語オンライン問題集

質問 # 106
開発者には次のトリガーがあり、挿入後に起動し、新しいケースが作成されるたびに子ケースを作成します。 List <Case> childCases = new List <Case>(); for(Case parent:Trigger.new){Case child = new Case(ParentId = parent.Id、Subject = parent.Subject); childCases.add(child); } childCasesを挿入します。コードブロックの実行後はどうなりますか?

  • A. Trigger.newの親ケースごとに複数の子ケースが作成されます。
  • B. Trigger.newの親ケースごとに子ケースが作成されます。
  • C. 親の[件名]フィールドが空白の場合、トリガーは失敗します。
  • D. トリガーは無限ループに入り、最終的に失敗します。

正解:B


質問 # 107
開発者には、Visualforce ウィザードと連携して複数のサブジェクトの作成と編集をサポートする単一のカスタム コントローラー クラスがあります。ウィザードは、複数の Visualforce ページにわたるユーザー入力からのデータと、初期 URL のパラメーターからのデータを受け入れます。
カスタム コントローラーを効果的にテストするために単体テスト内で役立つ 3 つのステートメントはどれですか?
3つの答えを選択してください

  • A. public ExtendedController(ApexPages StandardController cntrl) { }
  • B. String nextPage - controller.save().getUrl();
  • C. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');
  • D. Test.setCurrentPage(pageRef);
  • E. insert pageRef.

正解:B、C、D

解説:
To effectively test a custom controller that works with a Visualforce wizard, the unit test should do the following:
* Set the current page to the first page of the wizard using Test.setCurrentPage(pageRef), where pageRef is a PageReference object that points to the page URL. This allows the test to access the page parameters and controller methods for that page1.
* Set the page parameter that the wizard expects using
ApexPages.CurrentPage().getParameters().put('input', 'TestValue'), where 'input' is the name of the parameter and 'TestValue' is the value to be passed. This allows the test to simulate the user input or the initial URL parameter that the wizard uses1.
* Verify the navigation logic of the wizard by checking the URL of the next page after invoking the controller action using String nextPage = controller.save().getUrl(), where controller is an instance of the custom controller class and save() is the action method that returns a PageReference object. This allows the test to assert that the wizard redirects to the correct page based on the input and logic2.
The other options are not useful for testing the custom controller. Option A is incorrect because insert pageRef is not a valid Apex statement. Option C is incorrect because public ExtendedController(ApexPages StandardController cntrl) { } is a constructor for a controller extension, not a custom controller3. References:
* Testing Custom Controllers and Controller Extensions | Visualforce Developer Guide | Salesforce Developers
* Testing Navigation Logic | Visualforce Developer Guide | Salesforce Developers
* Build a Controller Extension | Visualforce Developer Guide | Salesforce Developers


質問 # 108
AW Computing は、order__c および order_Line_ c というカスタム オブジェクトで注文情報を追跡します。現在、すべての配送情報は order__c オブジェクトに格納されています。
この会社は、1 つの order__c の任意の数の order_Line__c レコードを別の場所に発送できるように、分割発送をサポートするように注文アプリケーションを拡張したいと考えています。
この要件を満たすために、開発者は何を追加する必要がありますか?

  • A. order_shipment_Group_c オブジェクトと order_shipment_Group_c のマスター詳細フィールド
  • B. order_shipment_Group_c オブジェクトと order_Line_c の master-detail フィールド
  • C. Order_shipment_Group_c オブジェクトと master-detail フィールドを order_c と Order Line_c に
  • D. order_shipment_Group_c オブジェクトと order_c の master-detail フィールド

正解:B

解説:
To support split shipments, a developer should add an Order_shipment_Group_c object and a master-detail field on Order_Line_c. The Order_shipment_Group_c object represents a group of order lines that share the same delivery method and destination address1. The master-detail field on Order_Line_c establishes a relationship between each order line and its corresponding order shipment group. This way, the shipping information can be stored in the Order_shipment_Group_c object instead of the Order_c object, and any number of order lines on a single order can be shipped to different locations.
References:
* OrderDeliveryGroup | Object Reference for the Salesforce Platform | Salesforce Developers


質問 # 109
開発者は、顧客のサブスクリプションレコードをセールスフォースにインポートし、既存のアカウントレコードに添付する必要があります。サブスクリプションレコードが正しいアカウントレコードに関連付けられていることを確認するために、開発者はどの2つのアクションを実行する必要がありますか?2つの答えを選択してください

  • A. idフィールドをインポートされたファイルの列に一致させます
  • B. 名前フィールドをインポートされたファイルの列に一致させます
  • C. 外部IDテキストフィールドをインポートされたファイルの列に一致させます
  • D. 自動番号フィールドをインポートされたファイルの列に一致させます

正解:A、C


質問 # 110
サンドボックスで作業する開発者は、テストプロダクションをデプロイする前に、新しいテストクラスを実行するために何を使用する必要がありますか?2つの回答を選択してください

  • A. Salesforceセットアップの[テストの実行]ページ。
  • B. REST APIとApexTestRunメソッド
  • C. 開発者コンソールのテストメニュー。
  • D. Salesforce設定のApexテスト実行ページ。

正解:C、D


質問 # 111
以下のコードを考えると、コントローラー変数を作成するために使用できる3つのステートメントはどれですか?public class accountlistcontroller {public list <account> getaccounts(){return controller.getrecords(); }}3つの答えを選択してください

  • A. Apexpages.standardcontroller controller = new apexpages.standardcontroller([アカウントからIDを選択]);
  • B. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller(database.getquerylocator([アカウントからIDを選択]));
  • C. Apexpages.standardsetcontroller controller = new
    apexpages.standardsetcontroller(database.getquerylocator('アカウントからIDを選択'));
  • D. Apexpages.standardcontroller controller = new
    apexpages.standardcontroller(database.getquerylocator('アカウントからIDを選択'));
  • E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller(database.query('select id from account'));

正解:A、B、E


質問 # 112
Lightning Web コンポーネントから起動されるカスタム検索機能を備えた Apex クラスを開発する際に、開発者は現在ログインしているユーザーがアクセスできるレコードのみが表示されるようにするにはどうすればよいでしょうか?

  • A. without sharing キーワードを使用します。
  • B. 継承された共有キーワードを使用します。
  • C. with sharing キーワードを使用します。
  • D. SOQL 内で WITH SECURITY_ENFORCED 句を使用します。

正解:D


質問 # 113
挿入前トリガーの Trigger.old コンテキスト変数の値は何ですか?

  • A. ヌル
  • B. 未定義
  • C. ID のない新しく作成された sObject のリスト
  • D. sObjectの空のリスト

正解:A

解説:
Trigger.old in a before insert trigger:
The Trigger.old context variable contains the old version of the records being processed in the trigger.
In a before insert trigger, the records being processed are new and have no prior state in the database, so Trigger.old is null.
This behavior is specific to insert triggers because there is no "old" record to reference before the record is created.
Why is it null?
The Trigger.old variable is only populated for triggers that handle updates or deletions (e.g., before update, after update, before delete, after delete). For insert operations, no previous state of the record exists.
Why not the other options?
A . An empty list of sObjects:
This is incorrect because Trigger.old is not initialized as an empty list for insert triggers-it is simply null.
B . Undefined:
Trigger.old is defined in the trigger context, but it is null for insert operations. Undefined is not a valid Apex state.
D . A list of newly created sObjects without IDs:
This describes Trigger.new in a before insert trigger, not Trigger.old. Trigger.new contains the new records being inserted.
Reference:
Apex Triggers Documentation
Trigger Context Variables


質問 # 114
次の匿名ブロックがあるとします。

あなたはどれが好きですか?
ケースレコードが 10,000 件を超える環境で、開発者は何を考慮する必要がありますか?

  • A. try/catch ブロックは、ガバナー制限によってスローされた例外を処理します。
  • B. ガバナー制限を超えているため、トランザクションは失敗します。
  • C. try/catch ブロックは、スローされた DML 例外を処理します。
  • D. トランザクションは成功し、変更がコミットされます。

正解:D


質問 # 115
マルチテナンシーが原因で、Apex プログラミングのどの側面が制限されますか?

  • A. ループで処理されたレコードの数
  • B. アクティブな Apex クラスの数
  • C. Apex クラスのメソッド数
  • D. データベース クエリから返されたレコードの数

正解:D


質問 # 116
StandardSetControllerの機能は何ですか?2つの答えを選択してください

  • A. 標準またはカスタムコントローラーの機能を拡張します
  • B. ページが大きなレコードセットでページネーションを実行できるようにします
  • C. 大きなレコードセットを読み取るときにフィールドレベルのセキュリティを適用します
  • D. ページでレコードの一括更新を実行できます

正解:B、D


質問 # 117
Lightning UI で、開発者は一時停止フローインタビューに関する情報を見つけるためにどこを見ればよいですか?

  • A. 一時停止された行のインタビューでの変更によるシステム デバッグ ログ
  • B. 特定のレコードの一時停止した行のインタビュー関連リスト
  • C. ホームページの Paused Row Interviews コンポーネント
  • D. Apex Flex キューの一時停止したインタビューセクション

正解:B

解説:
A Paused Flow Interview is a flow instance that has been paused by a Wait element or a Pause element. A developer can find information about a Paused Flow Interview on the Paused Flow Interviews related list for a given record, if the flow is configured to store the record ID in the Interview Label field. This allows the developer to resume, delete, or view the details of the paused flow interview from the record page1. The other options are not valid ways to find information about a Paused Flow Interview in the Lightning UI.
References:
* 1: Manage Paused Flow Interviews


質問 # 118
開発者が組織でテストを実行する3つの方法は何ですか? 3を選択します。

  • A. バルクAPI
  • B. メタデータAPI
  • C. 開発者コンソール
  • D. ToolingAPI
  • E. 設定メニュー

正解:B、D、E


質問 # 119
新機能開発の一環として、開発者は、ステートフル クライアントで実行されるタッチ イベントに応答できるレスポンシブ アプリケーションを構築するよう求められます。
ビジネス要件を完全にサポートするフレームワーク上に構築されている 2 つのテクノロジはどれですか。2 つの回答を選択してください。

  • A. Lightning Web コンポーネント
  • B. Visualforce コンポーネント
  • C. Visualforce ページ
  • D. オーラコンポーネント

正解:A、D


質問 # 120
Lightning Web コンポーネントのカスタムイベントに当てはまる 2 つの特性はどれですか?
2つの回答を選択してください

  • A. @wire で装飾されたプロパティを使用して、カスタム イベントのペイロードでデータを渡すことができます。
  • B. デフォルトでは、カスタム イベントはその直下のコンテナーにのみ伝播します。
  • C. データは、detail というプロパティを使用してカスタム イベントのペイロードに渡される場合があります。
  • D. デフォルトでは、カスタム イベントは、その直下のコンテナーと直下の子コンポーネントにのみ伝播します。

正解:B、C


質問 # 121
Universal Containers では、ユーザーが自分のアカウントに関する情報を入力できるようにするカスタム ユーザー インターフェイス コンポーネントを作成する必要があります。
コンポーネントは、情報をデータベースに保存する前にユーザー入力を検証できる必要があります。
このコンポーネントを作成するのに最適なテクノロジは何ですか?

  • A. フロー
  • B. Lightning Web コンポーネント
  • C. VUE JavaScript フレームワーク
  • D. ビジュアルフォース

正解:B


質問 # 122
ある会社には、カスタム オブジェクト order__ ¢ があり、これには crder_number_c と呼ばれる必須の一意の外部 ID フィールドがあります。
外部 ID フィールドを使用して order_c レコードのリストに新しいレコードを挿入し、既存のレコードを更新するために必要な DML を実行するには、どのステートメントを使用する必要がありますか?

  • A. 注文のアップサート:
  • B. 注文をマージします。
  • C. 注文をマージします Order_Number_ c;
  • D. upserrc は注文番号_c を注文します。

正解:D

解説:
To perform DML operations that insert new records and update existing records in a list of Order__c records using the external ID field Order_Number__c, you should use:
Option D: upsert orders Order_Number__c;
Upsert Statement:
The upsert DML operation either inserts or updates records based on whether they already exist.
By specifying the external ID field (Order_Number__c), Salesforce will match existing records based on this field.
Syntax:
upsert orders Order_Number__c;
orders is the list of Order__c records.
Order_Number__c is the external ID field used for matching.
Reference:
"The upsert statement matches the sObjects with existing records by comparing values of one field. If you don't specify a field, the upsert statement uses the sObject's ID to match data."
- Apex Developer Guide: Upsert Statements
Why Other Options Are Incorrect:
Option A: merge orders;
The merge statement is used to merge up to three records of the same object type, combining them into one. It is not suitable for upserting multiple records.
Option B: merge orders Order_Number__c;
merge does not accept an external ID field as a parameter.
Option C: upsert orders;
While this will perform an upsert based on the record IDs, it will not use the external ID field Order_Number__c for matching, which may not find existing records without IDs.
Conclusion:
Using upsert orders Order_Number__c; correctly instructs Salesforce to insert or update records based on the external ID field.


質問 # 123
Lightning コンポーネントフレームワークは、開発者がソリューションをより迅速に実装するのにどのように役立ちますか?

  • A. アジャイル プロセスにデフォルトのステップを提供することによって
  • B. コードレビューの基準とプロセスを提供することによって
  • C. 変更履歴とバージョン管理を提供することによって
  • D. モバイルとデスクトップのデバイス認識を提供することによって

正解:D

解説:
* By providing device-awareness for mobile and desktops. This is true because the Lightning Component framework is a UI framework for developing Lightning components for mobile and desktop devices.
Lightning web components and Aura components can coexist and interoperate on a page. The framework takes care of rendering the components appropriately for different devices and screen sizes1.
* By providing an Agile process with default steps. This is false because the Lightning Component framework does not provide any specific process or methodology for developing solutions. Developers can use any process that suits their needs, such as Agile, Waterfall, or Scrum2.
* By providing code review standards and processes. This is false because the Lightning Component framework does not provide any code review standards or processes. Developers are responsible for ensuring the quality and maintainability of their code, and they can use tools such as code analysis, testing, and debugging to help them3.
* By providing change history and version control. This is false because the Lightning Component framework does not provide any change history or version control features. Developers can use tools such as Git, SVN, or Salesforce DX to manage their source code and track changes.
References:
* 1: Introducing Aura Components
* 2: Agile Development with Salesforce
* 3: Code Quality and Code Analysis
* : Source Control and Salesforce Development


質問 # 124
開発者はいつForce.comアプリケーションでcustomVisualforceページを使用できますか?(2つ選択してください)

  • A. アプリケーションデータを含むPDFドキュメントを生成するには
  • B. カスタムオブジェクトのページレイアウト設定を変更するには
  • C. 2つの組織間でコンポーネントを展開する
  • D. ダッシュボードとレイアウトのコンポーネントを作成するには

正解:A、D


質問 # 125
コードカバレッジ計算はいつ更新されますか?

  • A. デプロイメントが検証されたとき。
  • B. 組織でユニットテストが実行されたとき。
  • C. 組織の構成に変更が加えられたとき。
  • D. Apexコードが保存されたとき。

正解:B


質問 # 126
開発者はサンドボックス内の Lightning Web コンポーネントのバグを修正するために何を使用する必要がありますか?

  • A. 開発者コンソール
  • B. VS コード
  • C. Force.com IDE
  • D. 匿名で実行

正解:B

解説:
The best tool to use to fix a Lightning web component bug in a sandbox is VS Code with the Salesforce Extension Pack. VS Code is a powerful and popular code editor that supports many languages and features. The Salesforce Extension Pack provides a set of tools and commands to work with Salesforce metadata, such as Lightning web components, Apex classes, Visualforce pages, and more1. Using VS Code, a developer can create, edit, deploy, and retrieve Lightning web components from a sandbox, as well as debug them using breakpoints, watch expressions, and the console2. VS Code also integrates with other tools and services, such as Git, GitHub, Salesforce CLI, and Lightning Web Components Playground3.
The Developer Console is not the best tool to use to fix a Lightning web component bug in a sandbox, as it is mainly designed for working with Apex and Visualforce. The Developer Console does not support creating or editing Lightning web components, nor does it provide debugging features for them4.
The Force.com IDE is not the best tool to use to fix a Lightning web component bug in a sandbox, as it is deprecated and no longer supported by Salesforce. The Force.com IDE was an Eclipse-based IDE that allowed developers to work with Salesforce metadata, but it had limited support for Lightning web components and did not provide debugging features for them5.
The Execute Anonymous tool is not the best tool to use to fix a Lightning web component bug in a sandbox, as it is used to run arbitrary Apex code that is not saved as part of the application. The Execute Anonymous tool does not support creating or editing Lightning web components, nor does it provide debugging features for them6.
References:
* 1: Salesforce Extension Pack for Visual Studio Code
* 2: Debug Your Code | Salesforce DX Developer Guide | Salesforce Developers
* 3: Visual Studio Code Integration | Salesforce DX Developer Guide | Salesforce Developers
* 4: Developer Console | Salesforce Developer Guide | Salesforce Developers
* 5: Force.com IDE | Salesforce Developer Guide | Salesforce Developers
* 6: Execute Anonymous | Apex Developer Guide | Salesforce Developers


質問 # 127
......

最新(2025)Salesforce CRT-450日本語試験問題集:https://www.jpntest.com/shiken/CRT-450-JPN-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡