合格させるSalesforce CRT-450日本語試験には保証が付きます。更新されたのは238問があります [Q110-Q134]

Share

合格させるSalesforce CRT-450日本語試験には保証が付きます。更新されたのは238問があります

最新のCRT-450日本語合格保証付き試験問題集の認定サンプル問題

質問 # 110
開発者は、結果をクライアントにキャッシュすることで、Apex 呼び出しの実行時のパフォーマンスを向上させたいと考えています。
これを実装し、ベスト プラクティスに従う最も効率的な方法は何ですか?

  • A. JavaScript クライアントサイドコードのアクションで setStoeable () メソッドを呼び出します。
  • B. サーバー側メソッドを @AuraEnabled (total-true) で修飾します。
  • C. ページに戻ったときに使用するための Cikie をブラウザに設定します。
  • D. サーバー側メソッドを @AuraEnabled (cacheable-true.

正解:D

解説:
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)


質問 # 111
Universal Containersは、Accountオブジェクトのプライベート共有モデルを実装しました。カスタムアカウント検索ツールは、営業担当者が指定した複数の基準に一致するアカウントを見つけるのに役立つように、Apexで開発されました。リリース以降、ツールのユーザーは、自分が所有していないアカウントを確認できると報告しています。カスタム検索ツールを使用しているときに、開発者が現在ログインしているユーザーに共有権限を適用するには、何を使用する必要がありますか?

  • A. クラス宣言でwithoutsharingキーワードを使用します。
  • B. クラス宣言でwithsharingキーワードを使用します。
  • C. スキーマdescribe呼び出しを使用して、ログインしているユーザーがAccountオブジェクトにアクセスできるかどうかを判別します。
  • D. UserInfo Apexクラスを使用して、ログインしたユーザーが所有する返されたレコードに対するすべてのSOQLクエリをフィルタリングします。

正解:B


質問 # 112
開発者は、標準のアカウント編集ボタンをオーバーライドするVisualforceページを作成する必要があります。このページは、SOQLクエリを使用してアカウントのアドレスを検証するために使用されます。このページでは、ユーザーがアドレスを編集することもできます。開発者は、アカウントアドレス検証ロジックをどこに記述しますか?

  • A. 標準コントローラー。
  • B. カスタムコントローラー内。
  • C. コントローラー拡張機能。
  • D. 標準拡張。

正解:C


質問 # 113
時間管理アプリケーションに取り組んでいる開発者は、各タイムカードの合計時間をアプリケーションユーザーが利用できるようにしたいと考えています。タイムカードエントリには、タイムカードとのマスター/詳細関係があります。
これを宣言的に達成するために、開発者はどのアプローチを使用するべきですか?

  • A. タイムカードのタイムカードエントリから合計時間を計算するタイムカードオブジェクトのロールアップサマリーフィールド
  • B. タイムカードエントリの作成時にタイムカードのフィールドを更新するプロセスビルダープロセス
  • C. タイムカードの合計時間数を計算してページに表示するVisualforceページ
  • D. 集計クエリを使用して特定のタイムカードの時間を計算し、カスタムフィールドに保存するApexトリガー

正解:A


質問 # 114
建設会社の運用管理者は、機械と呼ばれるカスタムオブジェクトを使用して、クレーンやその他の機械の使用と保守を管理します。管理者は、機械をさまざまな建設作業に割り当て、各作業に関連する日付とコストを追跡できるようにしたいと考えています。1つの建設作業に複数の機械を割り当てることができます。
これらの要件を満たすために開発者は何をすべきですか?

  • A. MachineryオブジェクトにConstructionJobオブジェクトへのルックアップフィールドを作成します。
  • B. MachineryオブジェクトとConstructionJobオブジェクトの両方に対してMaster-Detailリレーションシップを持つジャンクションオブジェクトを作成します。
  • C. MachineryオブジェクトのMaster-DetailLookupをConstructionJobオブジェクトに作成します。
  • D. ConstructionJobオブジェクトにMachineryオブジェクトへのルックアップフィールドを作成します。

正解:D


質問 # 115
JavaScript関数を含めることができるLightningコンポーネントバンドルの3つのリソースはどれですか? 3つ選ぶ

  • A. ヘルパー
  • B. デザイン
  • C. コントローラー
  • D. レンダラー
  • E. スタイル

正解:A、C、D


質問 # 116
開発者は、CustomObject__cレコードがApexの現在のユーザーと手動で共有されているかどうかをどのように判断しますか?

  • A. CustomObject__Shareにクエリを実行します。
  • B. 現在のユーザーのプロファイル設定を呼び出します。
  • C. レコードのisShared()メソッドを呼び出す。
  • D. 役割階層を照会する。

正解:A


質問 # 117
Lightningコンポーネントフレームワークの特徴は何ですか?2つの答えを選択してください:

  • A. レスポンシブコンポーネントが含まれています。
  • B. イベント駆動型アーキテクチャを採用しています。
  • C. 既存のVisualforceページで動作します。
  • D. データ形式としてXMLを使用します。

正解:A、B


質問 # 118
開発者は、現在のユーザーが所有する連絡先を一覧表示する Visualforce ページを作成するよう求められます。このコンポーネントは、Lightning ページに埋め込まれます。
不要なコードを書かずに、この目的のためにどのコントローラーを使用する必要がありますか?

  • A. 標準コントローラー
  • B. 標準リスト コントローラ
  • C. ライトニングコントローラー
  • D. カスタムコントローラー

正解:B

解説:
A standard list controller provides a list of records of a specific object type, such as Contact, and allows you to create Visualforce pages that can display or act on that data1. A standard list controller is suitable for this purpose, because it can easily query the contacts owned by the current user and display them in a table or list. A standard list controller also supports pagination, sorting, filtering, and mass actions2. A standard controller provides access to a single record of a specific object type, such as Account, and is not suitable for displaying a list of records1. A lightning controller is a JavaScript controller that handles user interactions and events in a Lightning web component, and is not related to Visualforce pages3. A custom controller is an Apex class that implements all the logic for a Visualforce page, and requires writing more code than using a standard list controller1. References:
* Standard Controllers and Standard List Controllers | Visualforce Developer Guide | Salesforce Developers
* Using Standard List Controllers | Visualforce Developer Guide | Salesforce Developers
* Lightning Web Components Developer Guide | Salesforce Developers


質問 # 119
開発者は、現在のユーザーが所有する連絡先を一覧表示する Visualforce ページを作成するよう求められます。このコンポーネントは、Lightning ページに埋め込まれます。
不要なコードを書かずに、この目的のためにどのコントローラーを使用する必要がありますか?

  • A. ライトニングコントローラー
  • B. 標準リスト コントローラ
  • C. 標準コントローラー
  • D. カスタムコントローラー

正解:C


質問 # 120
クロスオブジェクト式フィールドの機能とは何ですか?3つの答えを選択してください

  • A. 数式フィールドは、子関係からのレコードのコレクション内のフィールドを参照できます。
  • B. 数式フィールドは、オブジェクトごとに3つのロールアップサマリーで使用できます。
  • C. 数式フィールドは、最大10のリレーションシップから離れたオブジェクトのフィールドを参照できます。
  • D. 数式フィールドは、ユーザーがレコード内でアクセスできないデータを公開する可能性があります。
  • E. 式フィールドは、マスター/詳細またはルックアップの親関係からフィールドを参照できます。

正解:C、D、E


質問 # 121
マルチテナンシーのためにApexプログラミングのどの側面が制限されていますか?

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

正解:C


質問 # 122
Opportunity には、主従関係にないカスタム オブジェクトからロールアップされた金額が必要です。
これはどのように達成できますか?

  • A. 子オブジェクトにトリガーを記述し、集計関数を使用して、Opportunity の下にある関連するすべての子オブジェクトの金額を合計します。
  • B. カスタム オブジェクトを商談にリンクするプロセス ビルダーを記述します。
  • C. 子オブジェクトにトリガーを記述し、赤黒ツリーの並べ替えを使用して、Opportunity の下にある関連するすべての子オブジェクトの金額を合計します。
  • D. ストリーミング API を使用して、リアルタイムのロールアップ サマリーを作成します。

正解:A

解説:
A trigger is a piece of Apex code that executes before or after certain events, such as insert, update, delete, or undelete1. An aggregate function is a function that performs a calculation on a set of values and returns a single value, such as SUM, COUNT, AVG, MIN, or MAX2. A roll-up summary field is a field that calculates values from related records, such as those in a related list3. However, roll-up summary fields are only available for master-detail relationships, not for lookup relationships3. Therefore, to achieve a similar functionality for a custom object that is not in a master-detail relationship with the Opportunity object, a trigger can be written on the child object that uses an aggregate function to sum the amount for all related child objects under the Opportunity object. The trigger should handle different scenarios, such as insert, update, delete, or undelete of the child records, and update the corresponding Opportunity record accordingly. References:
* Triggers | Apex Developer Guide | Salesforce Developers
* Aggregate Functions | SOQL and SOSL Reference | Salesforce Developers
* Roll-Up Summary Field | Salesforce Help
* [Custom Roll-up Summary on Account Object | Salesforce Developer Guide - SFDCian]


質問 # 123
セットに追加したときに、カスタムタイプを一意として識別するにはどうすればよいですか?

  • A. クラスのメソッドは静的である必要があります
  • B. クラスのメソッドはグローバルである必要があります
  • C. クラスはEqualsメソッドとHashcodeメソッドを実装する必要があります
  • D. クラスには@InvocableMethodアノテーションが付いたメソッドが必要です

正解:C


質問 # 124
開発者は、カウントフィールドをインクリメントする更新前イベントのAccountオブジェクトにトリガーを書き込みます。ワークフロールールは、アカウントが作成または更新されるたびにカウントフィールドもインクリメントします。ワークフロールールのフィールド更新は、ワークフロールールを再評価しないように構成されています。
アカウントに他の自動化ロジックが実装されていないと仮定して、アカウントが初期値ゼロで挿入された場合のカウントフィールドの値は何ですか?

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

正解:D


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

  • A. セールスフォース DX
  • B. バルク API
  • C. メタデータ API。
  • D. 設定メニュー
  • E. ツール API

正解:A、D、E

解説:
A developer can execute tests in an org using different methods, depending on the context and the tools available. The Tooling API1 allows developers to run tests programmatically by making REST or SOAP calls. The Setup Menu2 provides a user interface for running tests in the Salesforce org. Salesforce DX3 is a command-line tool that enables developers to create, test, and deploy applications using scratch orgs, which are temporary and customizable orgs for development and testing purposes. References: 1: Tooling API | Apex Developer Guide | Salesforce Developers(https://cloudely.com/salesforce-interview-questions-with-answers/), 2: Run Unit Tests | Apex Developer Guide | Salesforce Developers(https://www.exam4training.com/what-are-three-ways-for-a-developer-to-execute-tests-in-an-org-cho Salesforce DX | Salesforce Developers(https://www.freecodecamp.org/news/types-of-software-testing/)


質問 # 126
Lightning コンポーネントには、Opportunity のリストを格納する配線済みプロパティ searchResults があります。searchResults プロパティが関連付けられている Apex メソッドのどの定義を使用する必要がありますか?

  • A. @AuraEnabled(cacheable=false) public static List<Opportunity> search(String term) { /*implementation*/ }
  • B. @AuraEnabled(cacheable=false) public List<Opportunity> search(String term) { /*implementation*/ }
  • C. @AuraEnabled(cacheable=true)
    public static List<Opportunity> search(String term) { /* implementation*/ }
  • D. @AuraEnabled(cacheable=true) public List<Opportunity> search(String term) { /*implementation*/ }

正解:C

解説:
The Apex method that is wired to the searchResults property should be defined as a static method with the
@AuraEnabled(cacheable=true) annotation. This annotation enables the method to be called from the Lightning component and also allows the method to be cached by the Lightning Data Service. Caching the method improves the performance and user experience of the component, as it reduces the number of server requests and displays the data faster. The cacheable attribute should be set to true only for methods that return data that does not change frequently or does not depend on the user context. The term parameter should be used to filter the Opportunities based on the user input. References: Call Apex Methods, Improve Performance with Storable Actions, Prepare for Your Salesforce Platform Developer I Credential


質問 # 127
ソフトウェア会社は、次のオブジェクトと関係を使用します。
* ケース: カスタマー サポートの問題を処理するため
* Defect_c: 会社のソフトウェアに関する既知の問題を表すカスタム オブジェクト
* case_Defect__c: 欠陥が顧客の問題であることを表す Case と Defector の間の接合オブジェクト 特定の Case-Defect_c レコードをユーザーと共有するにはどうすればよいですか?

  • A. Case_Defect_c レコードを共有します。
  • B. 親 Defect_c レコードを共有します。
  • C. 親ケース レコードを共有します。
  • D. 親 Case および Defect_c レコードを共有します。

正解:D

解説:
To share a specific Case-Defect_c record with a user, the developer should share the parent Case and Defect_c records. This is because the Case-Defect_c object is a junction object that has two master-detail relationships with the Case and Defect_c objects. A junction object inherits the sharing and security settings from its two master objects, so the user needs to have access to both of them to view the junction object record1. Sharing only one of the parent records is not sufficient, as the user will not be able to see the other related record.
Sharing only the junction object record is not possible, as it does not have its own sharing settings.
References:
* 1: Create a Junction Object


質問 # 128
開発者は、新しい抽象コンポーネントを拡張することにより、複数のコンポーネントのコントローラー関数によって呼び出される必要があるjavascriptコードを持っています。抽象コンポーネントバンドルのどのリソースが開発者にこれを達成させるか

  • A. Superrender.js
  • B. Helper.js
  • C. Controller.js
  • D. Rendered.js

正解:B


質問 # 129
開発者は、カスタムのサードパーティのjavascriptフレームワークを使用して構築され、visualforceページにレンダリングされる多数のアプリケーションにLightningエクスペリエンスのルックアンドフィールを適用する必要があります。これを実現するオプションはどれですか?

  • A. 定義で属性enablelightningを「true」に設定します
  • B. Visualforceのレガシーモードを有効にするために、セットアップメニューでユーザーインターフェイスオプションを構成します
  • C. サードパーティのjavascriptライブラリをネイティブのvisualforceタグに置き換えます
  • D. セールスフォースのLightningDesignSystemのCSSスタイルシートをJavaScriptアプリケーションに組み込む

正解:D


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

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

正解:A、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


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

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

正解:A、C


質問 # 132
開発者は、Apexで次のクエリを実行して、各アカウントの連絡先のリストを取得します。
List<アカウント>アカウント=[アカウントからID、名前、(ID、連絡先からの名前を選択)を選択]; 実行時に発生する可能性のある2つの例外はどれですか?(2つ選択してください。)

  • A. 連絡先の数によるSOQLクエリ制限の例外。
  • B. クエリの複雑さによるCPU制限の例外。
  • C. アカウント数によるSOQLクエリ行制限の例外。
  • D. 連絡先の数によるSOQLクエリ行制限の例外。

正解:A、C


質問 # 133
Apexで@InvocableMethodアノテーションを使用する際の3つの考慮事項は何ですか?
3つの答えを選択してください

  • A. @ InvocableMethodアノテーションを使用するメソッドは、パブリックまたはグローバルとして宣言できます。
  • B. @ InvocableMethodアノテーションを使用するメソッドは、複数の入力パラメーターを持つことができます。
  • C. @InvocableMethodアノテーションを使用するメソッドは、Apexクラスごとに1つだけ定義できます。
  • D. @ InvocableMethodアノテーションを使用するメソッドは、戻り値を定義する必要があります。
  • E. @InvocableMethodアノテーションを使用するメソッドは静的として宣言する必要があります

正解:A、C、E


質問 # 134
......

最新CRT-450日本語テスト材料には有効なCRT-450日本語テストエンジン:https://www.goshiken.com/Salesforce/CRT-450-JPN-mondaishu.html