[2025年04月26日]CRT-450日本語究極な学習ガイド [Q75-Q95]

Share

[2025年04月26日]CRT-450日本語究極な学習ガイド

究極なガイドで準備CRT-450日本語認定試験Salesforce Developersは2025年更新

質問 # 75
次の自動化は、アカウント オブジェクトに既に存在します。
* 特定の基準が満たされたときにフィールドを更新するワークフロー ルール
* フィールドのカスタム検証
* 関連する連絡先レコードを更新する方法
開発者が Account オブジェクトにトリガーを作成しました。
トリガー コードをテストする際、開発者は何を考慮する必要がありますか?

  • A. ワークフロー ルール フィールドの更新により、カスタム検証が再度実行されます。
  • B. フローは複数回起動される場合があります。
  • C. トリガーは、トランザクション中に複数回起動する場合があります。
  • D. トリガーがすべての DML 操作をデータベースにコミットした後にのみ、ワークフロー ルールが起動します。

正解:C

解説:
A trigger may fire multiple times during a transaction because of the order of execution of different automation tools in Salesforce. According to the documentation, the order of execution is as follows:
* Executes all before triggers.
* Saves the record to the database, but doesn't commit yet.
* Executes all after triggers.
* Executes assignment rules.
* Executes auto-response rules.
* Executes workflow rules.
* If there are workflow field updates, updates the record again.
* If the record was updated with workflow field updates, fires before update triggers and after update triggers one more time (and only one more time), in addition to standard validations. Custom validation rules, duplicate rules, and escalation rules are not run again.
* Executes processes and flows launched via processes and flow trigger workflow actions. When a process or flow executes a DML operation, the affected record goes through the save procedure.
* Executes escalation rules.
* Executes entitlement rules.
* If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
* If the parent record is updated, and a grandparent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the grandparent record. Grandparent record goes through save procedure.
* Executes Criteria Based Sharing evaluation.
* Commits all DML operations to the database.
* Executes post-commit logic, such as sending email.
As you can see, there are several steps that can cause the record to go through the save procedure again, which will fire the triggers again. Therefore, the developer should consider this possibility and write the trigger code accordingly to avoid unwanted side effects or recursion. For example, the developer can use static variables to track the trigger invocation or use bulkified patterns to handle collections of records efficiently.
References:
* 1: Order of Execution (Apex Developer Guide)


質問 # 76
SalesforceでのMVCフレームワークの実装を正確に表す2つのステートメントはどれですか?2つの答えを選択してください

  • A. レコードを作成するトリガーは、MVCフレームワークのモデル(M)部分を表します。
  • B. LightningコンポーネントのHTMLファイルは、MVCフレームワークのモデル(M)部分を表します。
  • C. 検証ルールはビジネスルールを適用し、MVCフレームワークのコントローラー(C)部分を表します
  • D. アプリスキーマで使用される標準オブジェクトとカスタムオブジェクトは、MVCフレームワークのビュー(V)部分を表します

正解:A、C


質問 # 77
不動産会社と協力している潜在的な住宅購入者は、不動産会社にリストされている複数の物件をオファーすることができます。オファーの金額は変更できます。ただし、オファーのある物件は、オファーが出された後に変更することはできません。オファーを組織のスキーマのプロパティに関連付けるにはどうすればよいですか?

  • A. 連絡先オブジェクトに、プロパティとオファーの両方のカスタムオブジェクトに対する主従関係を作成します
  • B. プロパティカスタムオブジェクトにオファーカスタムオブジェクトへのルックアップ関係を作成します
  • C. オファーカスタムオブジェクトでプロパティカスタムオブジェクトへのルックアップ関係を作成します
  • D. オファーカスタムオブジェクトとプロパティカスタムオブジェクトのマスター/詳細関係を作成します

正解:D


質問 # 78
デバッグ ログについて正しい記述はどれですか。
3つの回答を選択してください

  • A. デバッグ ログ レベルは累積的であり、FINE ログ レベルには DEBUG、INFO、WARN、および ERROR レベルで記録されたすべてのイベントが含まれます。
  • B. システム デバッグ ログは 24 時間保持されます。
  • C. ユーザーの最新の 20 件のデバッグ ログのみが保持されます。
  • D. 3 つのデバッグ ログの最大サイズは 5 MB です。
  • E. デバッグ ログは、特定のユーザー、クラス、トリガーに対して設定できます。

正解:A、B、C

解説:
The accurate statements about debug logs are:
Option A: System debug logs are retained for 24 hours.
Reference:
"Debug logs are retained for 24 hours. After that, they're deleted."
- Salesforce Help: View Debug Logs
Option B: Only the 20 most recent debug logs for a user are kept.
"A maximum of 20 debug logs are retained for each user. If there are already 20 logs, the oldest log is overwritten."
- Salesforce Help: Log Limits
Option C: Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
"Each log level includes all events with higher severities. For example, the DEBUG level includes ERROR, WARN, and INFO events."
- Salesforce Developer Guide: Trace Flags
Why Other Options Are Incorrect:
Option D: While you can set debug logs for specific users, you cannot set them directly for specific classes and triggers. Instead, you use trace flags associated with users, Apex classes, or Apex triggers.
Option E: The maximum size of a debug log is 20 MB, not 5 MB.
"When the debug log exceeds the 20 MB maximum size, Salesforce truncates the log. Truncated logs end with a message similar to '... truncated'."
- Salesforce Help: Debug Log Limits


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

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

正解:B、D

解説:
Aura Components and Lightning Web Components are two technologies that are built on a framework that fully supports the business requirement of building a responsive application capable of responding to touch events, that will be executed on stateful clients. Both technologies are part of the Lightning Component Framework, which is a modern UI framework for developing dynamic web apps for mobile and desktop devices. The Lightning Component Framework uses standard web technologies, such as HTML, CSS, JavaScript, and Web Components, to create reusable and interoperable components that can adapt to different screen sizes, devices, and orientations. The framework also provides features such as data binding, event handling, state management, and server-side integration, to enable developers to create rich and interactive user interfaces.
Aura Components are the original technology for creating Lightning components. They use a custom XML-based markup language, Aura, to define the component structure and behavior. Aura Components can respond to touch events using the ui:input component, which provides a generic input element that can handle different input types, such as text, number, date, checkbox, radio, toggle, and email. The ui:input component also supports touch gestures, such as swipe, tap, and pinch, by using the ontouchstart, ontouchend, ontouchmove, and ontouchcancel attributes. Aura Components are stateful, meaning that they maintain their state on the client-side and communicate with the server only when necessary. This reduces the network traffic and improves the performance and user experience.
Lightning Web Components are the newer technology for creating Lightning components. They use standard HTML, CSS, and JavaScript to define the component structure and behavior. Lightning Web Components can respond to touch events using the standard HTML input element, which provides a native input element that can handle different input types, such as text, number, date, checkbox, radio, toggle, and email. The input element also supports touch gestures, such as swipe, tap, and pinch, by using the standard touch event listeners, such as touchstart, touchend, touchmove, and touchcancel. Lightning Web Components are also stateful, meaning that they maintain their state on the client-side and communicate with the server only when necessary. This reduces the network traffic and improves the performance and user experience.
Visualforce Components and Visualforce Pages are two technologies that are not built on a framework that fully supports the business requirement of building a responsive application capable of responding to touch events, that will be executed on stateful clients. Visualforce Components are reusable UI elements that can be used in Visualforce Pages. Visualforce Pages are web pages that can display and interact with Salesforce data and logic. Visualforce Components and Pages use a custom XML-based markup language, Visualforce, to define the UI elements and behavior. Visualforce Components and Pages can be made responsive by using the Salesforce Lightning Design System (SLDS), which is a collection of design guidelines, components, and resources that enable developers to create consistent and beautiful user interfaces across devices. However, Visualforce Components and Pages do not have native support for touch events, and require custom JavaScript code to handle them. Visualforce Components and Pages are also stateless, meaning that they do not maintain their state on the client-side and communicate with the server on every request. This increases the network traffic and affects the performance and user experience.
References:
* Lightning Component Framework
* Aura Components Developer Guide
* Lightning Web Components Developer Guide
* Visualforce Developer Guide
* Salesforce Lightning Design System


質問 # 80
開発者は、カスタム オブジェクト Project_ct、

開発者は、特定のプロジェクトの拒否されたタイムシートと承認されたタイムシートの比率を示す新しいフィールドを作成するよう求められます。
開発者は、メンテナンスのオーバーヘッドを最小限に抑えるために、ビジネス要件を実装するためにどれを使用する必要がありますか?

  • A. レコード トリガー フロー
  • B. プロセスビルダー
  • C. アペックストリガー
  • D. 式フィールド

正解:D

解説:
In this scenario, a formula field is the most appropriate choice to calculate the ratio between rejected and approved timesheets for a given project. This is because formula fields automatically calculate their values based on other fields' values, requiring no additional maintenance or manual intervention. They are used for read-only purposes and are visible to users if they have read access to the object containing the formula field.
To create the formula field, the developer can use the following expression:
IF(Total_Approved_Timesheets__c > 0, Total_Rejected_Timesheet__c / Total_Approved_Timesheets__c, 0) This expression checks if the total approved timesheets is greater than zero, and if so, divides the total rejected timesheets by the total approved timesheets. Otherwise, it returns zero. This formula field will display the ratio as a decimal number, which can be formatted as a percentage if desired.
References: The use of formula fields for automatic calculations can be referenced in the Salesforce Platform Developer I learning documents, specifically in modules that cover objects and fields management, such as:
* Create Object Relationships
* Data Modeling
* Formula Operators and Functions by Context


質問 # 81
以下のコードを考えると:

ガバナーの制限に達する可能性がないように、開発者はコードを修正するために何をすべきですか?

  • A. 最初のSELECTSOQLステートメントにWHERE句を追加します。
  • B. 最初のSELECTSOQLステートメントにLIMIT句を追加します。
  • C. 2つのSELECTステートメントを1つのSOQLステートメントに結合します。
  • D. コードを作り直し、forループを削除します。

正解:B


質問 # 82
リード開発者が「OrderRequest」という仮想クラスを作成します。次のコード スニペットを検討してください。

開発者は CustomerOrder クラス内で OrderRequest クラスをどのように使用できますか?

  • A. パブリッククラス CustomerOrder は Order を実装します
  • B. @Implements (class="OrderRequest") パブリッククラス Customerorder
  • C. パブリッククラス CustomerOrder は OrderRequest を拡張します
  • D. (class="OrderRequest"} を拡張します
    パブリッククラス CustomerOrder

正解:C


質問 # 83
開発者は、カスタムオブジェクトProject_ctにこれらの3つのロールアップサマリーフィールドを作成しました。

開発者は、特定のプロジェクトの拒否されたタイムシートと承認されたタイムシートの比率を示す新しいフィールドを作成するように求められます。
メンテナンスのオーバーヘッドを最小限に抑えるために、開発者はビジネス要件を実装するためにどちらを使用する必要がありますか?

  • A. レコードトリガーフロー
  • B. Apexトリガー
  • C. プロセスビルダー
  • D. 数式フィールド

正解:D


質問 # 84
開発者は、以下に示すように、アカウントタイプフィールドを表示する Visualforce ページとカスタムコントローラを作成しました。
カスタムコントローラーコード:

Visualforce ページのスニペット:

アカウントの種類フィールドの値がページに正しく表示されません。カスタムコントローラが Visualforce ページで適切に参照されていると仮定すると、開発者は問題を修正するために何をすべきでしょうか?

  • A. actType 属性のゲッター メソッドを追加します。
  • B. 共有を使用してカスタム コントローラーに追加します。
  • C. Account 属性を public に変更します。
  • D. Acccunt を文字列に変換します。

正解:A

解説:
The issue is that the value of the account type field is not being displayed correctly on the Visualforce page.
This can be resolved by adding a getter method for the actType attribute in the custom controller. A getter method is used to retrieve the value of a private variable, ensuring that it's read-only and cannot be modified by external classes or pages, thus maintaining encapsulation and security. References: The need for getter methods and their usage can be referenced in Apex basics where encapsulation, getters, and setters are discussed: Apex Basics & Database


質問 # 85
継続的インテグレーションの一環として、デプロイメントとユニット テストの実行をスクリプト化するには、開発者は何を使用すればよいでしょうか?

  • A. Salesforce CLI
  • B. VSコード
  • C. 開発者コンソール
  • D. 匿名実行

正解:A

解説:
To script the deployment and unit test execution as part of continuous integration (CI), developers use tools that can be automated and run from the command line or scripts.
Option D: Salesforce CLI
Correct.
The Salesforce CLI (Command-Line Interface) is a powerful command-line tool that allows developers to interact with Salesforce orgs.
It supports scripting of deployments using commands like sfdx force:source:deploy and running unit tests using sfdx force:apex:test:run.
The CLI can be integrated into CI/CD pipelines to automate deployments and testing.
While Visual Studio Code is a powerful IDE for Salesforce development, it is primarily used for interactive development.
It is not a scripting tool and is not suitable for automation in CI/CD pipelines.
The Developer Console is a web-based tool within Salesforce for interactive development and debugging.
It cannot be used for scripting or automation as part of CI/CD processes.
Execute Anonymous is used to run Apex code snippets in an ad-hoc manner.
It is not suitable for scripting deployments or unit test execution in CI/CD.
Reference:
Salesforce CLI Command Reference
Incorrect Options:
Option A: VS Code
Incorrect.
Salesforce Extensions for VS Code
Option B: Developer Console
Incorrect.
Developer Console Overview
Option C: Execute Anonymous
Incorrect.
Executing Anonymous Apex Code
Conclusion:
The correct tool for scripting deployment and unit test execution in CI/CD is Salesforce CLI.


質問 # 86
非同期または将来のメソッドのステータスに関する情報を見つけるために開発者が参照できる 2 つの場所はどこですか? 2つの答えを選択してください

  • A. 時間ベースのワークフロー モニター
  • B. 頂点ジョブ
  • C. Apex Flex キュー
  • D. フロー インタビューの一時停止コンポーネント

正解:B、C


質問 # 87
開発者が組織でテストを実行する2つの方法は何ですか?

  • A. Matadata API
  • B. ツーリングAPI
  • C. バルクAPI
  • D. 開発者コンソール

正解:B、D


質問 # 88
1つの親オブジェクトから1つのSOQLクエリで返される子レコードのレベル数はいくつですか?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解:A


質問 # 89
開発者が手続きループ内での使用を避けるべき文はどれですか? (2つ選択)

  • A. contactListを更新します。
  • B. System.debug( 'これまでに使用されたCPU時間の量(ミリ秒):' + Limits.getCpuTime());
  • C. If(o.accountId == a.id)
  • D. リストの連絡先= [SELECT Id、Salutation、FirstName、LastName、Email FROM Contact WHERE AccountId =:a.Id];

正解:A、D


質問 # 90
開発者は、ユーザーが複数の商談を作成できるページを作成しています。開発者は、現在のユーザーのデフォルトの商談レコード タイプを確認し、レコードを挿入する前にレコード タイプに基づいて特定のデフォルト値を設定するように求められます。
開発者は現在のユーザーのデフォルトのレコード タイプをどのように見つけることができますか?

  • A. Schema.userInfo.Cppo​​rtunity.getlefaultRecordIype() メソッドを使用します。
  • B. 商談を作成し、挿入する前に、現在のユーザーのデフォルトのレコード タイプのレコード ID を持つ商談の recordTyp= を確認します。
  • C. Opportunity.SObjectType.gethescribe().getRaecordlypaInsos() を使用してレコード タイプのリストを取得し、2sDefaultRecordTypeMapping() が true になるまで反復処理します。
  • D. ID が uzexInfo.getProfilelD () に等しいプロファイルを照会し、profile.Cppo​​rtunity.gesDefaultRecordTyp= () メソッドを使用します。

正解:C

解説:
To find the current user's default record type for Opportunity, the developer can use the DescribeSObjectResult and RecordTypeInfo classes.
Option A: Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() is true.
Correct Approach.
// Get describe result for Opportunity
Schema.DescribeSObjectResult oppDescribe = Opportunity.SObjectType.getDescribe();
// Get list of RecordTypeInfo
List<Schema.RecordTypeInfo> recordTypeInfos = oppDescribe.getRecordTypeInfos();
// Iterate through RecordTypeInfo to find the default one
Id defaultRecordTypeId;
for (Schema.RecordTypeInfo rtInfo : recordTypeInfos) {
if (rtInfo.isAvailable() && rtInfo.isDefaultRecordTypeMapping()) {
defaultRecordTypeId = rtInfo.getRecordTypeId();
break;
}
}
Reference:
Options Not Applicable:
Option B and C: Methods mentioned do not exist in the API.
Option D: Create the Opportunity and check the Opportunity.RecordTypeId before inserting.
The RecordTypeId is not automatically populated before inserting.
Conclusion:
To find the current user's default Opportunity record type, the developer should use Option A.


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

  • A.
  • B.
  • C.
  • D.
  • E.

正解:B、D、E


質問 # 92
Salesforce管理者は、Flow Builderを使用して、「accountOnboarding」という名前のフローを作成しました。フローは、Auraコンポーネント内で使用する必要があります。
開発者は、コンポーネントのフローを表示するためにどのタグを使用する必要がありますか?

  • A. Aura:flow
  • B. Lightning:flow
  • C. Aura:flow
  • D. Lightning-flow

正解:B


質問 # 93
Accountオブジェクトのafterトリガーは、アカウントのすべての子Opportunitiesに対してDML更新操作を実行します。Opportunityオブジェクトにはアクティブなトリガーはありませんが、特定の状況で「最大トリガー深度を超えました」というエラーが発生します。
アカウントトリガーが再帰的に起動する理由を説明できる2つの理由はどれですか?(2つ選択してください。)

  • A. 基準ベースの共有評価中にアカウントに変更が加えられています。
  • B. 無関係の並列保存操作中にアカウントに変更が加えられています。
  • C. オポチュニティの変更により、アカウントのロールアップサマリーフィールドが更新されます。
  • D. オポチュニティの変更により、アカウントでクロスオブジェクトワークフローフィールドの更新が行われます。

正解:C、D


質問 # 94
Universal Containers には、すべての Container_c のテーブルを表示する Visualforce ページがあります。…… 10,000本以上のコンテナをレンタルしているお客様もいるため、ビューステート制限で落ちています。
ページ読み込みエラーを解決するために、開発者は Visualforce ページについて何を変更する必要がありますか?

  • A. OffsetController を使用してページネーションを実装します。
  • B. StandardSetController でページネーションを実装し、
  • C. SOQL オフセットで JavaScript Remoting を使用します。
  • D. 遅延読み込みと一時的な List 変数を使用します。

正解:B

解説:
To avoid exceeding the view state limit of 170 KB12, the developer should implement pagination with a StandardSetController. A StandardSetController allows the developer to display a set of records in a Visualforce page with built-in support for pagination, sorting, and filtering3. By using a StandardSetController, the developer can limit the number of records that are displayed and stored in the view state at a time, and provide navigation buttons for the user to access the next or previous set of records.
The other options are not correct because:
* A. Use Lazy loading and a transient List variable. This option is not effective, because lazy loading means that the data is loaded only when it is needed, but it still requires storing the data in the view state. A transient List variable is not included in the view state, but it also means that the data is lost
* after each request and has to be queried again, which can affect performance and consistency.
* B. Use JavaScript remoting with SOQL Offset. This option is not recommended, because JavaScript remoting does not support pagination, sorting, or filtering, and requires additional JavaScript code to handle the callbacks and display the data. SOQL Offset is also limited to 2,000 records, and can cause performance issues when used with large data sets.
* C. Implement pagination with an OffsetController. This option is not optimal, because an OffsetController is a custom controller that uses SOQL Offset to implement pagination. As mentioned above, SOQL Offset has limitations and drawbacks that make it unsuitable for large data sets.
References:
* : Optimize the View State
* : Create More Complex Visualforce Pages with Increased View State Limit
* : StandardSetController Class
* : [Transient Keyword]
* : [SOQL OFFSET Clause]


質問 # 95
......

Salesforce Developers基礎問題CRT-450日本語試験練習問題集:https://www.jpntest.com/shiken/CRT-450-JPN-mondaishu

弊社を連絡する

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

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

サポート:現在連絡