[2024年08月27日]Fast2test CRT-450日本語試験練習テスト問題(更新された238問あります)
合格させるSalesforce CRT-450日本語試験情報と無料練習テスト
質問 # 109
開発者は、ユーザーが複数のオポチュニティを作成できるVisualforceページを作成しています。開発者は、レコードを挿入する前に、現在のユーザーのデフォルトのOpportunityレコードタイプを確認し、レコードタイプに基づいて特定のデフォルト値を設定するように求められます。開発者はどのようにして現在のユーザーのデフォルトのレコードタイプを見つけることができますか?
- A. Schema.userInfo.Opportunity.getDefaultRecordType()メソッドを使用します。
- B. オポチュニティを作成し、挿入する前にopportunity.recordTypeを確認します。これには、現在のユーザーのデフォルトのレコードタイプのレコードIDが含まれます。
- C. Opportunity.SObjectType.getDescribe()。getRecordTypeInfos()を使用してレコードタイプのリストを取得し、isdefaultRecordTypeMapping()がtrueになるまでそれらを繰り返し処理します。
- D. IDがuserInfo.getProfileID()と等しいプロファイルを照会してから、profile.Opportunity.getDefaultRecordType()メソッドを使用します。
正解:C
質問 # 110
質の高いデータを確保するのに役立つ宣言的な方法はどれですか。 3つの答えを選んでください
- A. 検証ルール
- B. ページレイアウト
- C. ワークフローアラート
- D. ルックアップフィルター
- E. 例外処理
正解:A、B、D
質問 # 111
開発者が会社名「Universal Containers」を持つすべてのリード、アカウント、および連絡先のIDと名前を取得するために使用するクエリはどれですか?
- A. CompanyNameフィールドで「Universal Containers」を検索しますRETURNING lead(id、name)、account(id、name)、contact(id、name)
- B. SELECT Lead.id、Lead。 Name、Account.id、Account.Name、Contact.Id、Contact。名前FROM Lead、Account、Contact WHERE CompanyName = 'Universal Containers'
- C. SELECT lead(id、name)、account(id、name)、contact(id、name)FROM Lead、Account、Contact WHERE Name = 'Universal Containers'
- D. IND 'Universal Containers' IN Name Fields RETURNING lead(id、name)、account(id、name)、contact(id、name)
正解:D
質問 # 112
Salesforce管理者は、Flow Builderを使用して、「accountOnboarding」という名前のフローを作成しました。フローは、Auraコンポーネント内で使用する必要があります。
開発者は、コンポーネントのフローを表示するためにどのタグを使用する必要がありますか?
- A. Lightning:flow
- B. Aura:flow
- C. Lightning-flow
- D. Aura:flow
正解:A
質問 # 113
販売管理チームは新しいインターンを雇います。インターンはオポチュニティを表示することはできませんが、アカウントレコードを表示するときは、すべての子オポチュニティの最新のクローズ日を表示する必要があります。この要件を満たすために開発者は何をしますか?
- A. 最新のオポチュニティの終了日を照会するトリガーをAccountオブジェクトに作成します。
- B. OpportunityCloseDateフィールドでMAXを実行するAccountオブジェクトにロールアップサマリーフィールドを作成します。
- C. 親アカウントのフィールドを更新するOpportunityオブジェクトにワークフロールールを作成します。
- D. [商談終了日]フィールドでMAXを実行する数式フィールドをAccountオブジェクトに作成します。
正解:B
質問 # 114
単一のレコードで、ユーザーは複数選択リストから複数の値を選択します。
選択した値はApexでどのように表されますか?
- A. 各値がカンマで区切られた文字列として
- B. セット内の要素として各値を持つSet <String>
- C. 各値がセミコロンで区切られた文字列として
- D. リストの要素として各値を持つList <String>として
正解:C
質問 # 115
テストメンテナンスを最適化し、将来の宣言的な構成変更をサポートする2つのアプローチはどれですか。
2つの答えを選択してください。
- A. 有効なレコードを作成するメソッドを作成し、テストメソッド内でこのメソッドを呼び出します。
- B. 静的リソースから有効なアカウントレコードをロードするメソッドを作成し、テストメソッド内でこのメソッドを呼び出します。
- C. 有効なレコードを照会するメソッドを作成し、テストメソッド内でこのメソッドを呼び出します。
- D. 有効なレコードのコールアウトを実行するメソッドを作成し、テストメソッド内でこのメソッドを呼び出します。
正解:A、B
質問 # 116
組織には、レコードの更新要素を使用してオポチュニティを作成する既存のビジュアルフローがあります。開発者は、連絡先を作成したビジュアルフローを更新し、作成した連絡先のIDをオポチュニティに保存する必要があります。
- A. (作成タイプの)新しいクイックアクション要素を追加します。
- B. 新しいCreaterecords要素を追加します。
- C. 新しいGetRecords要素を追加します。
- D. 新しい更新レコード要素を追加します
正解:B
質問 # 117
会社は Salesforce にデータを追加していましたが、重複するリード レコードの作成を制限する適切な仕事をしていませんでした。開発者は、重複を特定してレコードをマージするための Apex プロセスを作成することを検討しています。
マージを使用する際に考慮すべき有効なステートメントはどれですか?
2つの答えを選択してください
- A. マスター レコードのフィールド値は、マージされるレコードによって上書きされます。
- B. マージ メソッドでは、マスターと同じ sObject タイプの 2 つの追加レコードを含む最大 3 つのレコードをマスター レコードにマージできます。
- C. マージは、アカウント、連絡先、ケース、およびリードでサポートされています。
- D. 外部 ID フィールドは、merge メソッドで使用できます。
正解:B、C
解説:
The merge method is an Apex Data Manipulation Language (DML) operation that allows you to combine up to three records of the same sObject type into one of the records, known as the master record. The merge method deletes the other records, known as the victim records, and reparents any related records to the master record. The merge method has the following characteristics:
* Merge is supported with accounts, contacts, cases, and leads: The merge method can only be used with these four standard sObject types. You cannot use the merge method with custom objects or other standard objects.
* The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record: The merge method takes an array of sObject records as the input parameter, where the first record is the master record and the rest are the victim records. The merge method can merge up to three records of the same sObject type into the master record. If you want to merge more than three records, you need to call the merge method multiple times.
The other statements are not valid considerations when using the merge method:
* The field values on the master record are overwritten by the records being merged: This is not true. The field values on the master record are not overwritten by the victim records, unless you explicitly specify the field names and values in the master record before calling the merge method. By default, the merge method preserves the field values of the master record and discards the field values of the victim records.
* External ID fields can be used with the merge method: This is not true. The merge method does not support external ID fields as input parameters. You need to use the record IDs of the sObject records to perform the merge operation.
References: Merging Records, merge method, Prepare for Your Salesforce Platform Developer I Credential
質問 # 118
Universal Containers には、ユーザーがカスタム オブジェクト Engineering_Support__c を使用してエンジニアリング チームにサポートを要求できるサポート プロセスがあります。
ユーザーは、複数の engineering_Support__c レコードを 1 つの Opportunity レコードに関連付けることができる必要があります。
さらに、Engineering_support__c レコードに関する集計情報を Opportunity レコードに表示する必要があります。
これらの要件をサポートするために、開発者は何を実装する必要がありますか?
- A. Opportunity から Engineering_Support__c へのルックアップ フィールド
- B. Engineering_support__c から Opportunity へのルックアップ フィールド
- C. Engineering_Support__c から Opportunity までの主従項目。
- D. Opportunity から Engineering_Support__c までの主従項目
正解:C
質問 # 119
外部JavaScriptファイルをVisualforceページにロードする有効な方法は何ですか?(2つ選択してください)
- A. (apex:define)*タグを使用します。
- B. (リンク)*タグを使用します。
- C. (スクリプト)*タグを使用します。
- D. (apex:includeScript)*タグを使用します。\>
正解:C、D
質問 # 120
Lightningコンポーネントフレームワークで、イベントを起動するために使用できるリソースはどれですか? 2つの答えを選択してください。
- A. JavaScriptコントローラアクション
- B. Visualforceコントローラーアクション
- C. サードパーティのWebサービスコード
- D. サードパーティのJavaScriptコード
正解:A、D
質問 # 121
開発者は、呼び出された@futureメソッドに関する情報を見つける必要があります。開発者はどのシステム監視機能からこの情報を見ることができますか?
- A. バックグラウンドジョブ
- B. スケジュールされたジョブ
- C. Apexジョブ
- D. 非同期ジョブ
正解:C
質問 # 122
フローをデバッグ モードで実行する場合の 2 つの考慮事項は何ですか?
2 つの答えを選択してください
- A. デバッグが終了すると、DML 操作はロールバックされます。
- B. フローのデバッグ中は、外部システムへのコールアウトは実行されません。
- C. レコード型の入力変数をフローに渡すことはできません。
- D. [一時停止] をクリックするか、一時停止要素を実行すると、フローが閉じられ、デバッグが終了します。
正解:A、B
解説:
Running a flow in debug mode allows the developer to test the flow logic and functionality before activating it. Debug mode also provides detailed information about the flow elements, variables, and outcomes as the flow runs1. However, there are some limitations and considerations for debugging a flow, such as:
* Callouts to external systems are not executed when debugging a flow. This means that any flow elements that invoke Apex actions or invocable actions that make callouts will be skipped during debugging. The developer can use mock responses or stubs to simulate the callout results2.
* DML operations will be rolled back when the debugging ends. This means that any changes made to the database by the flow will not be committed or visible after the debugging session. The developer can use the Developer Console or the Setup Audit Trail to view the DML operations performed by the flow3.
The other two options are incorrect because:
* Clicking Pause or executing a Pause element does not close the flow and end debugging. Instead, it pauses the flow execution and allows the developer to inspect the flow state and variables at that point. The developer can resume the flow execution by clicking Resume or Next4.
* Input variables of type record can be passed into the flow. The developer can specify the record ID or assign field values for the input record variable when debugging the flow. The developer can also use the running user or a different user as the input record variable.
References:
* 1: Debug a Flow in Flow Builder | Salesforce Help
* 2: Debug Flows That Make Callouts | Salesforce Help
* 3: Debug Flows That Perform DML Operations | Salesforce Help
* 4: [Pause a Flow | Salesforce Help]
* : [Set Input Values for a Flow | Salesforce Help]
質問 # 123
開発者は、ケースの作成時にワークフローの電子メールアラートを作成して、ケースの作成時にケースの所有者マネージャーに電子メールが送信されるようにしました。メールはいつ送信されますか?
- A. トリガー実行後。
- B. データベースにコミットした後。
- C. データベースにコミットする前。
- D. トリガー実行前。
正解:B
質問 # 124
開発者は、製品のセットアップ中にユーザーが別の行に入力し、後で買い物客のVisualforceページに表示できる製品の説明を保存したいと考えています。説明が記述されたカスタムApex SOQLクエリで検索可能であることを確認するために、開発者はどの項目タイプを選択する必要がありますか?
- A. テキスト領域(リッチ)
- B. テキスト領域
- C. テキスト領域(長い)
- D. テキスト
正解:B
質問 # 125
開発者は、結果をクライアントにキャッシュすることで、Apex 呼び出しの実行時のパフォーマンスを向上させたいと考えています。
これを実装し、ベスト プラクティスに従う最も効率的な方法は何ですか?
- A. サーバー側メソッドを @AuraEnabled (cacheable-true.
- B. ページに戻ったときに使用するための Cikie をブラウザに設定します。
- C. JavaScript クライアントサイドコードのアクションで setStoeable () メソッドを呼び出します。
- D. サーバー側メソッドを @AuraEnabled (total-true) で修飾します。
正解:A
解説:
To improve runtime performance of Apex calls by caching result on the client, the most efficient way to implement this and follow best practices is to decorate the server-side method with @AuraEnabled (cacheable=true). This annotation enables the method to be called from a Lightning web component and also caches the method results on the client. This reduces the number of server requests and improves the responsiveness of the component. The cacheable attribute can only be set to true for methods that are read-only and don't change any data. The other options are not correct because:
* Decorating the server-side method with @AuraEnabled (total=true) does not cache the result on the client, but rather indicates that the method returns the total number of records that match a query.
* Calling the setStorable() method on the action in the JavaScript client-side code is a deprecated way of caching the result on the client for Aura components, not Lightning web components. It also requires more code than using the cacheable attribute.
* Setting a cookie in the browser for use upon return to the page is not a reliable way of caching the result on the client, as cookies can be deleted, expired, or blocked by the browser. It also does not leverage the built-in caching mechanism of the Lightning platform. References:
* Client-Side Caching
* Call Apex Methods from Lightning Web Components
* Free Salesforce Platform Developer 1 Practice Exam (With Answers)
質問 # 126
Visualforceページで使用されるLightningコンポーネントc:accountListへの依存関係を宣言するには、どのLightningコードセグメントを作成する必要がありますか?
A)
B)
C)
D)
- A. オプションB
- B. オプションC
- C. オプションD
- D. オプションA
正解:D
質問 # 127
Universal Containersは、OpportunitiesがClosed/Wonステージに達したときに編集できないようにすることを望んでいます。
開発者がこれを達成するために使用できる2つの戦略はどれですか?
2つの答えを選択してください
- A. 検証ルールを使用します。
- B. トリガーを使用します。
- C. 保存後のフローを使用します。
- D. プロセスオートメーション設定を使用します。
正解:A、B
質問 # 128
次のコードスニペットを考えると、これはVisualforceページのカスタムコントローラーの一部です。
現在ログインしているユーザーに適切なレベルのアクセス権がない場合に、オブジェクトおよびフィールドレベルのアクセス許可を適用し、DMLステートメントが実行されないようにするために、try / catchを囲むことができる2つの方法はどれですか?2つの答えを選択してください
- A. if(Schema、sobjectType、Contact、isUpdatable())を使用します
- B. if(Schema、sobjectType。Contact。Field、Is_Active_c。is Updateable())を使用します。
- C. if(Schema.sObjectType.Contact.isAccessible())を使用します
- D. if(thisContact.Owner = = UserInfo.getuserId())を使用します
正解:A、B
質問 # 129
カスタムオブジェクトには、カスタム選択リスト項目 Food_Preference__c が存在します。選択リストには、「ビーガン」、「コーシャ」、「好みなし」のオプションが含まれています。開発者は、レコードが作成または更新されるたびに値が入力されるようにする必要があります。レコードが保存されるたびに値が選択されるようにする最も効率的な方法は何ですか?
- A. フィールド定義でフィールドを必須としてマークします。
- B. 「リストの最初の値を既定値として使用する」を True に設定します。
- C. オブジェクトのページ レイアウトで項目を必須としてマークします。
- D. 値が選択されていることを強制する検証ルールを設定します。
正解:A
解説:
Marking the field as Required on the field definition ensures that the field cannot be left blank or null when a record is created or updated, regardless of the page layout or the API. This is the most efficient way to enforce a value for the picklist field, as it does not require any additional configuration or code. Setting the first value as the default value does not prevent the user from changing or clearing the value. Setting a validation rule requires writing a formula and handling error messages. Marking the field as Required on the page layout only affects the user interface, not the API or other tools. References:
* Create a Custom Picklist Field from the Salesforce Help
* Get Started with Picklists from the Salesforce Trailhead
* Picklist Considerations from the Salesforce Help
質問 # 130
Heroku Redisについて説明しているのはどれですか? 2つの答えを選択してください。
- A. Herokuが実行するインメモリKey-Valueデータストアです。
- B. アドオンとしてプロビジョニングおよび管理されます。
- C. 長期データストレージのオプションです。
- D. 大きな画像を保存するためのリポジトリです。
正解:A、B
質問 # 131
......
あなたを合格させるSalesforce試験にはCRT-450日本語試験問題集:https://jp.fast2test.com/CRT-450-JPN-premium-file.html