正解:C
解説:
The seeAllData=true annotation is used to allow a test class to access all data in the org, instead of using test data that is created in the test class or by using test setup methods. This annotation should be used sparingly and only when absolutely necessary, as it can make the test class dependent on the data in the org and cause unexpected failures or unreliable results. The seeAllData=true annotation is required for some sObject types that do not support test data creation, such as Report, Dashboard, Document, and Attachment. Therefore, if the test class needs to access a Report sObject, it must use the seeAllData=true annotation. Reference: [Isolation of Test Data from Organization Data in Unit Tests], [Using the seeAllData Annotation]
A. カタログの CurrencylsoCode が異なる場合にカタログ項目を更新するカタログの挿入後トリガー
B. カタログの CurrencylsoCode が異なる場合にカタログ アイテムを更新するカタログ アイテムの挿入後トリガー
C. データベース。カタログ オブジェクトをクエリし、カタログ CurrencylSoCode が異なる場合にカタログ アイテムを更新するスケジュール可能な Dazabase.Bazchacle クラス
D. カタログ項目オブジェクトをクエリし、カタログ CurrencylSoCode が異なる場合にカタログ項目を更新する Database.Schedulable および Database.Batchacle クラス
正解:D
解説:
A Database.Schedulable and Database.Batchable class is the best option to update the CurrencylsoCodes on the Catalog Items when the Catalog's CurrencylsoCode changes. This is because the Catalog Item object may have a large number of records (up to 100,000) and updating them in a trigger may hit governor limits or cause performance issues. A batch class can process the records in batches and a schedulable class can run the batch class at a specified time or frequency. The batch class should query the Catalog Item object and update the Catalog Items if the Catalog CurrencylsoCode is different from the Catalog Item CurrencylsoCode. Reference: [Database.Schedulable Interface], [Database.Batchable Interface], [Using Batch Apex], [Scheduling Apex]
質問 # 129
コールアウト数のトランザクション制限は何ですか?
A. 0
B. 1
C. 2
D. 制限なし
E. 3
正解:A
質問 # 130
以下のマークアップを参照してください。
Lightning Web コンポーネントは、取引先名と、オブジェクトに存在する 275 のうちの 2 つのカスタム項目を表示します。開発者は、コンポーネントのパフォーマンスが遅いという苦情を受け取ります。
開発者はパフォーマンスを改善するために何ができますか?
A)
B)
C)
D)