[完全版]2024年最新のJPNTest CRT-450日本語のPDFで最近更新された問題です [Q51-Q70]

Share

[完全版]2024年最新のJPNTest CRT-450日本語のPDFで最近更新された問題です

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

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

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

正解:A


質問 # 52
Visualforceページに統合できる3つのWebテクノロジーはどれですか?(3つ選択してください。)

  • A. JavaScript
  • B. PHP
  • C. CSS
  • D. HTML
  • E. Java

正解:A、C、D


質問 # 53
数式に関連する 2 つの特性は何ですか?
2 つの答えを選択してください

  • A. 数式は、オブジェクト内の値を参照できます。
  • B. 数式フィールドで使用されているフィールドは、フォーム編集時に削除または編集できます。
  • C. 式は実行時に計算され、データベースには保存されません。
  • D. 式はそれ自体を参照できます。

正解:A、C

解説:
Formulas are expressions that are used to calculate and display values based on the data in your records.
Formulas can be used in various contexts, such as formula fields, validation rules, workflow rules, and so on.
Some of the characteristics related to formulas are:
* Formulas are calculated at runtime and are not stored in the database. This means that every time a record is viewed or a report is run, the formula is evaluated based on the current data in the record. This ensures that the formula results are always up to date and accurate1.
* Formulas can reference values in related objects. This means that you can use formulas to access data from parent or child objects, or even from objects that are indirectly related via lookup or master-detail relationships. For example, you can use a formula field on the Opportunity object to display the account owner's name by referencing the Owner.Name field on the Account object2.
* Formulas cannot reference themselves. This means that you cannot use a formula field or variable as part of its own definition. For example, you cannot create a formula field called Total Amount that adds itself to another field. This would create a circular reference and cause an error3.
* Fields that are used in a formula field cannot be deleted or edited without editing the formula. This means that if you want to delete or change a field that is referenced by a formula field, you have to modify the formula field first to remove or update the reference. Otherwise, the formula field will become invalid and display an error. References: 1: Formula Operators and Functions by Context - Salesforce Developers (3) 2: Cross-Object Formulas - Salesforce Help (4) 3: Tips for Working with Formulas - Salesforce Help (5) : Considerations for Deleting Fields - Salesforce Help (6)


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

  • A. コントローラー
  • B. 拡張
  • C. アクション
  • D. StandardController

正解:B、C、D


質問 # 55
承認のためにロックされた後、どのユーザーがレコードを編集できますか? (2つ選択)

  • A. 以前にレコードを承認したすべてのユーザー
  • B. 管理者
  • C. 現在の承認者として割り当てられているユーザー
  • D. 階層でより高い役割を持つすべてのユーザー

正解:B、C


質問 # 56
匿名 Apex コードを実行する 2 つのユースケースは? 2つの答えを選択してください

  • A. デプロイ後に 1 回のトランザクションで 15,000 の非アクティブなアカウントを削除するには
  • B. Apex クラスが定期的に実行されるようにスケジュールするには
  • C. 単体テスト コード カバレッジを組織に追加するには
  • D. バッチ Apex クラスを実行してすべての連絡先を更新するには

正解:A、C

解説:
Anonymous Apex code is Apex code that does not get stored in the metadata, but that can be compiled and executed on the fly. You can use Anonymous Apex code for various purposes, such as:
* To delete 15,000 inactive Accounts in a single transaction after a deployment: You can use Anonymous Apex code to perform bulk data operations that are not possible or convenient with the standard tools, such as Data Loader or Import Wizard. For example, you can write a SOQL query to select the inactive Accounts and then use the Database.delete method to delete them in a single transaction. This can save you time and avoid hitting the governor limits.
* To add unit test code coverage to an org: You can use Anonymous Apex code to write and run unit tests for your Apex classes and triggers, without having to save them in the metadata. This can help you increase your code coverage and ensure the quality of your code. You can also use the System.debug method to print the results of your tests in the debug log.
References: Anonymous Blocks, Executing Anonymous Apex Code, Execute Anonymous Apex


質問 # 57
apexテストクラスを作成するときに利用できる機能は何ですか?(2つの回答を選択してください)

  • A. 特定のポイントで実行をフリーズするブレークポイントを設定する機能。
  • B. apexテストでCreatedDateフィールドを設定および変更する機能。
  • C. @futureメソッドの後にテストするアサーションを作成する機能。
  • D. 開発者コンソールで無視するエラータイプを選択する機能。
  • E. システムに保存されているcsvファイルを使用してテストデータを選択する機能。

正解:B、E


質問 # 58
クラスをカスタムVisualforceコントローラとして使用するための要件は何ですか?

  • A. コントローラインターフェースを実装する任意のトップレベルのApexクラス
  • B. PageReferenceを拡張するトップレベルのApexクラス
  • C. デフォルトの引数のないコンストラクターを持つトップレベルのApexクラス
  • D. PageReferenceを返すコンストラクターを持つトップレベルのApexクラス

正解:A


質問 # 59
開発者は、ヘルパー クラスを使用して新しい Apex トリガを作成し、新しい Apex ヘルパー クラスの 95% のカバレッジのみを実行するテスト クラスを作成します。本番環境への変更セットのリリースが失敗し、次のテスト カバレッジ警告が表示される: 「選択した Apex トリガのテスト カバレッジは 0% です。少なくとも 1% のテスト カバレッジが必要です」 新しい Apex トリガとヘルパー クラスを正常にリリースするには、開発者は何をする必要がありますか?

  • A. 「すべてのテストを実行」メソッドを使用してテストを実行します。
  • B. ヘルパー クラスのテスト クラスのカバレッジを増やす
  • C. 該当するテスト メソッドをテスト クラスから削除します。
  • D. Apex トリガをカバーするテスト クラスとメソッドを作成します。

正解:D


質問 # 60
開発者は、販売記録のリストを表示するために Lightning Web コンポーネントを作成しています。
営業担当者のユーザーは、各レコードの手数料フィールドを表示できる必要があります。Sales Assistant ユーザーは、コミッション フィールドを除くレコードのすべてのフィールドを表示できる必要があります。
コンポーネントがエラーを表示せずに両方のユーザーに対して機能するようにするには、これをどのように実施する必要がありますか?

  • A. セキュリティを使用します。現在のユーザーがアクセスできないフィールドを削除するには、stripInaccessible を使用します。
  • B. Lightning データ サービスを使用して、販売レコードのコレクションを取得します。
  • C. コンポーネントのデータを取得する SOQL で WITH SECURITY_ENFORCED を使用します。
  • D. Lightning Locker Service を使用して、共有ルールと項目レベルのセキュリティを適用します。

正解:A

解説:
The correct answer is option B. Use Security.stripInaccessible to remove fields inaccessible to the current user.
This method takes a list of records and an access type (READ, UPDATE, CREATE, or UPSERT) and returns a new list of records with the inaccessible fields removed. This way, the Lightning web component can display the records without throwing any errors due to field-level security.
Option A is incorrect because WITH SECURITY_ENFORCED is a SOQL clause that enforces field-level security on all fields in the query. If the query returns any fields that the user does not have access to, the query will throw an exception. This is not desirable for the Lightning web component, as it will prevent the component from displaying any records at all.
Option C is incorrect because Lightning Data Service is a layer of Lightning web components that provides access to Salesforce data and metadata, cache management, and data synchronization. However, Lightning Data Service does not automatically handle field-level security for the records it retrieves. The developer still needs to use Security.stripInaccessible or another method to remove the inaccessible fields.
Option D is incorrect because Lightning Locker Service is a security feature that isolates Lightning web components from each other and from the rest of the page. It does not enforce sharing rules or field-level security for the data that the components access.
References: Security.stripInaccessible (Apex Developer Guide)), WITH SECURITY_ENFORCED (Apex Developer Guide)), Lightning Data Service Basics (Trailhead)), Lightning Locker (Lightning Web Components Developer Guide))


質問 # 61
開発者は、次のコードブロックを使用してApexトリガーを作成します。List<Account> Customers = new List <Account>(); For(Order__c o:trigger.new){Account a = [SELECT Id、Is_Customer__c FROM Account WHERE Id =
:o.Customer__c]; a.Is_Customer__c = true; customers.add(a);} Database.update(customers、false);開発者は、Apexデータローダーを使用してコードをテストし、10個の注文を正常にロードします。次に、開発者は150の注文を読み込みます。開発者が150の注文を読み込もうとしたときに、いくつの注文が正常に読み込まれましたか?

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

正解:C


質問 # 62
Lightningコンポーネントで外部JavaScriptライブラリをロードするために使用される<ltng:require>タグの機能は何ですか? (3つ選択してください。)

  • A. 読み込み順序を指定します。
  • B. スクリプトを並列にロードします。
  • C. 重複するスクリプトの1回限りの読み込み。
  • D. 外部でホストされているスクリプトを読み込んでいます。
  • E. ドキュメントからファイルをロードしています。

正解:A、B、C


質問 # 63
次のコード スニペットを検討してください。

Salesforce プラットフォームのマルチテナント アーキテクチャを考慮して、開発者が実装し、メソッドの正常な実行を保証する必要があるベスト プラクティスは何ですか?

  • A. for ループ内でクエリを実行しないようにします。
  • B. limit 句なしでクエリを実行することは避けてください。
  • C. レコードの空のリストを返さないようにします。
  • D. クエリ フィルターとして変数を使用しないでください。

正解:A


質問 # 64
開発者はクラスのテストを作成しており、機能を検証するためにレコードを挿入する必要があります。
テストクラス内のすべてのメソッドのレコードを作成するには、どのアノテーション メソッドを使用する必要がありますか?

  • A. @isTest (SeeAllData-true)
  • B. @StartTest
  • C. @TestSetup
  • D. @FreTest

正解:C


質問 # 65
ジャンクションオブジェクトのレコードを更新するには、どの2つの設定を定義する必要がありますか?2つの答えを選択してください

  • A. プライマリリレーションシップの読み取り/書き込みアクセス
  • B. 二次関係の読み取り/書き込みアクセス
  • C. ジャンクションオブジェクトの読み取り/書き込みアクセス
  • D. 主要な関係の読み取りアクセス

正解:A、B


質問 # 66
開発者は、トリガーでAPEXヒープ制限エラーに遭遇します。
このエラーを回避するために開発者が使用する必要がある2つの方法はどれですか?(2つ選択してください。)

  • A. 使用後にコレクションを削除するかnullに設定します。
  • B. 変数を宣言するときにtransientキーワードを使用します。
  • C. 大きなクエリ結果を単一のコレクションに割り当ててコレクションをループする代わりに、SOQLforループを使用します。
  • D. 関連オブジェクトを更新するときに、関連オブジェクトのフィールドをコレクションにクエリして保存します。

正解:B、C


質問 # 67
次のブロックコードが与えられた場合:try {List <Accounts> retrieveRecords = [SELECT Id FROM Account WHERE Website = null]; } catch(Exception e){//例外ロジックを管理する} SOQLクエリの後でretrieveRecordslistが空のままの場合、コードの実行が中断されるようにするには、開発者は何をする必要がありますか?

  • A. アカウントのリストから単一のアカウントにretrieveRecords変数宣言を置き換えます。
  • B. retrieveRecords変数の状態を確認し、変数が空の場合はSystem.assert(false)を使用します
  • C. retrieveRecords変数の状態を確認し、変数が空の場合はカスタム例外をスローします。
  • D. retrieveRecords変数の状態を確認し、変数が空の場合はリストの最初の要素にアクセスします。

正解:B


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

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

正解:A


質問 # 69
多くの開発者からなるチームは、本番組織と同じ構成を持つ独自の組織で作業します。
このシナリオにはどのタイプの組織が最適ですか?

  • A. 開発者サンドボックス
  • B. パートナー開発者エディション
  • C. 開発者版
  • D. 完全なサンドボックス

正解:C

解説:
Developer Edition orgs are free, fully-featured copies of Salesforce that are designed for developers to create and test applications. They have the same configuration as the production org, but with limited data and file storage. Developer Edition orgs are ideal for individual developers or small teams who want to work in their own orgs that are isolated from each other. Full Sandbox orgs are also copies of the production org, but they require a paid license and have a refresh interval of 29 days. Partner Developer Edition orgs are similar to Developer Edition orgs, but they have higher limits on data and file storage, as well as the number of custom objects and tabs. They are available only to Salesforce partners who are enrolled in the Partner Program.
Developer Sandbox orgs are copies of the production org metadata, but they have very limited data and file storage, and a refresh interval of one day. They are useful for coding and testing in a disposable environment, but not for developing complex applications that require more resources. References:
* Certification - Platform Developer I - Trailhead
* SALESFORCE CERTIFIED PLATFORM DEVELOPER I
* [Developer Edition Orgs | Salesforce Trailhead]
* [Sandbox Types and Templates | Salesforce Trailhead]


質問 # 70
......

最新のCRT-450日本語合格保証付き試験問題集の認定サンプル問題:https://www.jpntest.com/shiken/CRT-450-JPN-mondaishu

弊社を連絡する

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

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

サポート:現在連絡