[2024年03月11日] CRT-450日本語 PDFで最近更新された問題です集試験点数を伸ばそう [Q79-Q94]

Share

[2024年03月11日] CRT-450日本語 PDFで最近更新された問題です集試験点数を伸ばそう

CRT-450日本語完全版問題集には無料PDF問題で合格させる

質問 # 79
開発者は次のコードを記述します。

デバッグ文の結果は何ですか?

  • A. 2、200
  • B. 1、100
  • C. 1、150
  • D. 2、150

正解:D


質問 # 80
Ursa Major Solar には、partner-service-Provider_c というアカウントへのオプションのルックアップ フィールドを備えたカスタム オブジェクト serviceJob-o があります。
Account の TotalJobs-o フィールドは、パートナー サービス プロバイダーの Account に関連する serviceJob-o レコードの合計数を追跡します。
Total job_o フィールドのデータを確実に更新する最も効率的な方法は何ですか?

  • A. TotalJob_o をロールアップ集計フィールドに変更します。
  • B. ServiceJob_o でレコードによってトリガーされるフローを作成します。
  • C. ServiceJob_o に Apex トリガを作成します。
  • D. ServiceJob_o でスケジュールによってトリガーされるフローを作成します。

正解:A

解説:
The most efficient way to ensure that the TotalJobs__c field on Account is kept up to date is to change it to a roll-up summary field. A roll-up summary field calculates values from related records, such as those in a related list1. In this case, the roll-up summary field on the Account object would count the number of ServiceJob__c records that are related to the Account via the partner_Service_Provider__c Lookup field. This is the simplest and most declarative way to achieve the requirement.
The other options are not valid because:
* Creating a record-triggered flow on ServiceJob__c would require more steps and logic than a roll-up summary field. A record-triggered flow would need to query the related Account record, update the TotalJobs__c field, and handle possible errors2. A record-triggered flow would also consume more system resources and limits than a roll-up summary field.
* Creating an Apex trigger on ServiceJob__c would require more coding and testing than a roll-up summary field. An Apex trigger would need to perform similar operations as a record-triggered flow, but with more complexity and less maintainability3. An Apex trigger would also consume more system resources and limits than a roll-up summary field.
* Creating a schedule-triggered flow on ServiceJob__c would not ensure that the TotalJobs__c field is kept up to date in real time. A schedule-triggered flow runs at a specified time or time interval, which means that the TotalJobs__c field could be outdated between the scheduled runs4. A schedule-triggered flow would also consume more system resources and limits than a roll-up summary field.
References:
* 1: Roll-Up Summary Field - Salesforce
* 2: Update Salesforce Records from a Flow
* 3: Inserting and Updating Records | Apex Developer Guide
* 4: Schedule-Triggered Flows - Salesforce


質問 # 81
以下のコード スニペットを参照してください。

Lightning Web コンポーネントがレンダリングされると、特定の基準に一致する商談のリストがデータベースから取得され、エンドユーザに表示されます。
Lightning 内でメソッドを使用できるようにするために開発者が実装する必要がある 3 つの考慮事項はどれですか?

ウェブコンポーネント?
答えを 3 つ選んでください

  • A. メソッドは (cacheable-trun) 属性を指定する必要があります
  • B. メソッドは (continuation-true) 属性を指定する必要があります
  • C. メソッドには AureEnabled アノテーションを付ける必要があります
  • D. このメソッドはデータベースから取得した結果セットを変更できません。
  • E. メソッドには、真の Invocablemethod アノテーションが付けられている必要があります

正解:A、C、D

解説:
To make an Apex method available to a Lightning web component, the developer must follow these considerations1:
* The method must be annotated with the @AuraEnabled annotation, which enables client-side access to the method.
* The method must be either static or part of a global class, and it must be public or global.
* The method must specify the cacheable=true attribute if it only gets data, which enables the method to be invoked at component initialization and improves performance by reducing server round trips.
* The method cannot mutate the result set retrieved from the database, which means it cannot modify, insert, or delete any records. This ensures that the method is idempotent and can be cached safely.
* The method cannot use the @InvocableMethod annotation, which is reserved for methods that are exposed as actions in flows or processes. References:
* 1: Call Apex Methods


質問 # 82
開発者は、カスタム オブジェクトのレコードを作成する取引先レコードのフォームにユーザーが入力できるようにする必要があります。
フォームには、ユーザーの職務に応じて異なるフィールドを表示する必要があります。この機能は、少数のユーザー グループのみが利用できるようにする必要があります。
これらの要件を満たすために開発者が行うべきことを 3 つ選択してください。
3 つの答えを選択してください

  • A. アカウント レコード ページに動的アクションを追加します。
  • B. 動的フォームを作成します。
  • C. ユーザーのカスタム権限を作成します。
  • D. Lightning wet> コンポーネントを作成します。
  • E. ユーザーに割り当てられたページ レイアウトに動的アクションを追加します。

正解:A、B、C

解説:
To create a form that will create a record for a custom object, the developer can use a Dynamic Form, which is a Lightning App Builder component that allows you to customize the fields and sections of a record page layout1. A Dynamic Form can also use visibility rules to display different fields based on the user's profile, role, or other criteria2. To add the functionality to the Account record page, the developer can use a Dynamic Action, which is a way to configure actions on a record page without code3. A Dynamic Action can also use visibility rules to show or hide actions based on the user's profile, role, or other criteria4. To restrict the functionality to a small group of users, the developer can create a Custom Permission, which is a way to grant access to custom processes or apps5. A Custom Permission can be assigned to a permission set or a profile, and then assigned to the users who need it. References:
* Dynamic Forms | Salesforce Trailhead
* Visibility Rules for Dynamic Forms | Salesforce Help
* Dynamic Actions | Salesforce Trailhead
* Visibility Rules for Dynamic Actions | Salesforce Help
* Custom Permissions | Salesforce Trailhead
* [Assign Custom Permissions | Salesforce Help]


質問 # 83
Universal Containers の開発者は、会社の Salesforce 管理者によって完全に保守される新しい Salesforce アプリケーションの実装に取り​​組んでいます。
アプリケーションのビジネス ロジック層を構築するには、どの 2 つのオプションを考慮する必要がありますか?
チョセ2の答え

  • A. 検証ルール
  • B. 呼び出し不可能なアクション
  • C. レコードトリガーフロー
    C、予定

正解:A、C


質問 # 84
Force.comプラットフォームのMVCアーキテクチャでモデルを表すのはどのタイプのコードですか?

  • A. アカウントレコードのリストを処理するカスタムJavaScript。
  • B. アカウントレコードのリストを保存するコントローラー拡張メソッド
  • C. SOQLを使用して取引先レコードのリストを照会するコントローラー拡張メソッド
  • D. Controller Extensionメソッドから返されたアカウントレコードのリスト

正解:D


質問 # 85
開発者はApexクラスにメソッドを作成し、エラーが適切に処理されるようにする必要があります。開発者は何を使用しますか? (正解は3つあります。)

  • A. Database.handleException()
  • B. A try/catch construct
  • C. .addError()
  • D. ApexPages.addErrorMessage()
  • E. A custom exception

正解:B、C、E


質問 # 86
カスタムオブジェクトと標準オブジェクト間の参照関係について正しい説明はどれですか。

  • A. カスタムオブジェクトは、参照される標準オブジェクトからセキュリティを継承します
  • B. カスタムオブジェクトのページレイアウトでは、参照関係を必須としてマークできません。
  • C. 参照されている標準オブジェクトが削除されると、カスタムオブジェクトが削除されます。
  • D. カスタムオブジェクトの参照関係により、標準オブジェクトが削除されない場合があります。

正解:C


質問 # 87
開発者が匿名のコードブロックを呼び出すために使用できる3つの手法は何ですか?(3つ選択してください。)

  • A. 開発者のIDEの匿名Apex機能を使用してコードを実行します。
  • B. 開発者コンソールにコードを入力して直接実行します。
  • C. SOAP APIを使用して、匿名コードを実行するための呼び出しを行います。
  • D. 共有せずに宣言されたコントローラークラスを使用するVisualforceページを作成します。
  • E. runAs()呼び出しを指定しないテストメソッドを作成して実行します。

正解:A、B、C


質問 # 88
カスタムオブジェクトと標準オブジェクトの間のルックアップ関係について正しい説明はどれですか。

  • A. カスタムオブジェクトのページレイアウトで、ルックアップ関係を必須としてマークすることはできません。
  • B. カスタムオブジェクトは、参照される標準オブジェクトからセキュリティを継承します
  • C. カスタムオブジェクトのルックアップ関係により、標準オブジェクトの削除を防ぐことができます。
  • D. 参照されている標準オブジェクトが削除されると、カスタムオブジェクトも削除されます。

正解:D


質問 # 89
サンドボックスで作業しているときに、Apex テストをテストランナーで実行すると失敗します。ただし、[匿名実行] ウィンドウでの Apex ロジックの実行は、例外やエラーなしで成功します。
このメソッドがサンドボックス テスト フレームワークでは失敗したのに、開発者コンソールでは成功したのはなぜですか?

  • A. テスト メソッドはサンドボックス内の既存のデータに依存します。
  • B. テスト メソッドのコードに構文エラーがあります。
  • C. テスト メソッドは future メソッドを呼び出しています。
  • D. テスト メソッドは System を使用しません。rurAs を使用して特定のユーザーとして実行します。

正解:A

解説:
The test method fails in the sandbox test framework because it relies on existing data in the sandbox, which may not be consistent or available for the test execution. The Apex test framework uses a separate test data context that is rolled back after the test execution, so any data that is queried or inserted by the test method must be created within the test method or by using the @testSetup annotation. The Execute Anonymous window, on the other hand, runs the Apex logic in the current user context and can access the existing data in the sandbox. Therefore, the Apex logic may succeed in the Execute Anonymous window but fail in the test framework. References:
* Apex Testing (Salesforce Developer Documentation)
* Isolation of Test Data from Organization Data in Unit Tests (Salesforce Developer Documentation)
* Free Salesforce Platform Developer 1 Practice Exam (With Answers) (Salesforce Ben)


質問 # 90
開発者は、商談オブジェクトのページレイアウト用にカスタムのvisualforceボタンを作成する必要があります。これにより、Webサービスが呼び出され、クリックするとユーザーが新しいページにリダイレクトされます。この機能を有効にするには、visualforceページの<apx:page>タグで定義する必要がある3つの属性はどれですか。

  • A. AcTion
  • B. 標準コントローラー
  • C. 拡張機能
  • D. レンダラス
  • E. 読み取り専用

正解:A、B、C


質問 # 91
開発者は、さまざまな種類の Salesforce ケースに対する独立した要件をテストできるように、スイート全体のベースライン データ セット (取引先、取引先責任者、製品、資産) を作成する必要があります。
各単体テストに必要なデータを効率的に生成できるアプローチはどれですか?

  • A. Stub APL を使用してモックを作成します。
  • B. 単体テスト クラスの先頭に $ IsTest (seeAllDatatrue) を追加します。
  • C. &TestSteup を void メソッドで使用します。
  • D. 単体テストのTest.startTestの前にテストデータを作成します。

正解:C

解説:
To efficiently generate the required data for each unit test, the best approach is to use @TestSetup with a void method. This annotation allows you to create common test data that is available for all test methods in the test class. The data is rolled back after each test method, so you don't have to worry about deleting or modifying it.
This way, you can avoid duplicating code and improve performance by reducing the number of DML operations. The other options are not correct because:
* Creating test data before Test.startTest in the unit test means that you have to repeat the same code for every test method that needs the same data. This can make your test class longer and harder to maintain.
It also consumes more DML statements and governor limits.
* Creating a mock using the Stub API is useful for testing callouts or interfaces, not for creating test data.
A mock object is a fake object that simulates the behavior of a real object. It does not persist any data in the database.
* Adding @IsTest(seeAllData=true) at the start of the unit test class is not a good practice, as it makes your test methods depend on the data in the org. This can cause your tests to fail or behave inconsistently if the data changes or is not available. It also exposes your test methods to the risk of violating data privacy or security policies. References:
* Generate Data for Tests
* Testing Best Practices
* Free Salesforce Platform Developer 1 Practice Exam (With Answers)


質問 # 92
Batchable インターフェースの実装時に Apex クラスの execute() メソッド内で apex コードが実行される場合、ガバナ制限に関して正しい文はどれですか? 2つの答えを選択してください

  • A. Apex クラスのコンストラクターを呼び出すときに、Apex ガバナーの制限が緩和されます。
  • B. apex ガバナー制限は、execute() メソッドの反復ごとにリセットされます。
  • C. トランザクションの非同期性のため、Apex ガバナーの制限を超えることはできません。
  • D. トランザクションの非同期性により、Apex ガバナーの制限が高くなる可能性があります。

正解:B、D

解説:
When Apex code executes inside the execute() method of an Apex class that implements the Batchable interface, the following statements are true regarding governor limits:
* The Apex governor limits might be higher due to the asynchronous nature of the transaction. Asynchronous Apex, such as Batch Apex, runs in a separate thread from the main execution and can have higher limits for some resources, such as heap size and CPU time12. For example, the maximum heap size for synchronous Apex is 6 MB, while for asynchronous Apex it is 12 MB1.
* The Apex governor limits are reset for each iteration of the execute() method. Each execution of a batch Apex job is considered a discrete transaction, and the governor limits are reset for each transaction12. For example, a batch Apex job that contains 1,000 records and is executed without the optional scope parameter from Database.executeBatch is considered five transactions of 200 records each1.
The other statements are not true because:
* The Apex governor limits are relaxed while calling the constructor of the Apex class. This statement is false, because the constructor of the Apex class is executed in the same context as the caller of the Database.executeBatch method, and the same governor limits apply2. For example, if the constructor is called from a trigger, the trigger governor limits are enforced2.
* The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction. This
* statement is false, because the asynchronous nature of the transaction does not prevent the Apex governor limits from being exceeded. If some Apex code exceeds a limit, the associated governor issues a runtime exception that can't be handled1. For example, if the execute() method performs more than
200 SOQL queries, the Too many SOQL queries exception is thrown1.
References:
* : Apex Governor Limits
* : Using Batch Apex


質問 # 93
開発者は、人々が雇用主と関係を持つことを可能にするアプリケーションの拡張機能を作成しています。
要件を満たすための最も簡単なソリューションを提供するデータモデルはどれですか?

  • A. ルックアップ関係を通じて多くの人々を多くの人々に関連付けるジャンクションオブジェクトを作成します
  • B. 人に雇用主がいることを示すために主従関係を作成します
  • C. マスター/詳細関係を通じて多くの人々を多くの人々に関連付けるジャンクションオブジェクトを作成します
  • D. 人に雇用主がいることを示すルックアップリアルシップを作成します

正解:B


質問 # 94
......

100%更新されたのはSalesforce CRT-450日本語限定版PDF問題集:https://jp.fast2test.com/CRT-450-JPN-premium-file.html


弊社を連絡する

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

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어