[2024年01月] 最新のSalesforce Integration-Architect日本語認定練習テスト問題 [Q20-Q38]

Share

[2024年01月] 最新のSalesforce Integration-Architect日本語認定練習テスト問題

確認済みIntegration-Architect日本語問題集と解答で一年間無料最速更新

質問 # 20
ユニバーサル ラーニング (UC) は、Salesforce 変革の旅に乗り出します。UC は従来の CRM システムを廃止し、データを Salesforce に移行します。データ移行チームは、Salesforce へのデータ読み込みのパフォーマンスを最適化するための推奨事項を求めました。
要件を満たすには、どのアプローチを使用する必要がありますか?

  • A. Bulk API を使用してシリアル モードでジョブを処理します。
  • B. パフォーマンスの負荷をスケジュールするには、Salesforce サポートにお問い合わせください。
  • C. Bulk API を使用して、高パフォーマンス モードでジョブを処理します。
  • D. Bulk API を使用して並列モードでジョブを処理します。

正解:D


質問 # 21
ノーザン トレイル アウトフィッターズ (NTO) の Salesforce 組織は、通常、外部ソースからのデータを同期するために 1 日に 8,000 ~ 10,000 のバッチを実行します。NTO の Integration Architect は、9,000 万レコードを組織にロードする必要がある新しいカスタム オブジェクト FooBarc の要件を受け取りました。完了したら、20 GB (約 3,000 万レコード) を外部監査システムに抽出する必要があります。
これらの要件を 1 日で満たすために、建築家は何を使用することを推奨しますか?

  • A. Bulk API 2.0 を使用して挿入し、REST API を使用してクエリを実行します。
  • B. Bulk API 1.0 を使用して挿入し、REST API を使用してクエリを実行します。
  • C. Bulk API 2.0 を使用して挿入およびクエリを実行します。
  • D. Bulk API 1.0 を使用して挿入およびクエリを実行します。

正解:C

解説:
Answer D is valid because using Bulk API 2.0 for both inserting and querying data can meet the requirements of loading and extracting large volumes of data in a day. Bulk API 2.0 is a RESTful API that allows creating, updating, deleting, or querying millions of records asynchronously by uploading or downloading CSV or JSON files. Bulk API 2.0 has several advantages over Bulk API 1.0, such as:
It does not count against the daily limit of 5,000 batches per rolling 24-hour period.
It supports PK Chunking for queries, which automatically splits large data sets into manageable chunks based on the primary key.
It simplifies the job lifecycle and reduces the number of API calls needed to perform a bulk operation.
Answer A is not valid because using Bulk API 2.0 for inserting data and REST API for querying data is not an optimal solution for handling large volumes of data in a day. REST API is a synchronous API that allows creating, updating, deleting, or querying individual records or small batches of records using HTTP methods. REST API has several limitations and drawbacks for this use case, such as:
It counts against the daily limit of 15,000 API requests per 24-hour period.
It does not support PK Chunking for queries, which means that large data sets may exceed the query timeout or heap size limits.
It requires more API calls and processing time to perform a bulk operation than Bulk API 2.0.
Answer B is not valid because using Bulk API 1.0 for both inserting and querying data is not a feasible solution for handling large volumes of data in a day. Bulk API 1.0 is a SOAP-based API that allows creating, updating, deleting, or querying millions of records asynchronously by uploading or downloading XML or CSV files. Bulk API 1.0 has several limitations and drawbacks compared to Bulk API 2.0, such as:
It counts against the daily limit of 5,000 batches per rolling 24-hour period, which may not be enough to load and extract 90M and 30M records respectively.
It does not support JSON format for data files, which may not be compatible with some external systems or applications.
It requires more API calls and complexity to manage the job lifecycle and handle errors or retries than Bulk API 2.0.
Answer C is not valid because using Bulk API 1.0 for inserting data and REST API for querying data is not a suitable or reliable solution for handling large volumes of data in a day. As explained above, both Bulk API 1.0 and REST API have limitations and drawbacks that may affect the performance, efficiency, and scalability of the integration.


質問 # 22
統合アーキテクトは、ストリーミング API を使用するソリューションを構築する必要がありますが、クライアントが数日ごとに再接続する場合でも、データ損失を最小限に抑える必要があります。
考慮すべきストリーミング API イベントの 2 つのタイプはどれですか?
2つの答えを選択してください

  • A. 一般的なイベント
  • B. 大量のプラットフォーム イベント
  • C. PushTopic イベント
  • D. 変更データ キャプチャ イベント

正解:B、D

解説:
Explanation
The integration architect should consider Change Data Capture Events and High Volume Platform Events for using the Streaming API with minimal data loss. Change Data Capture Events capture changes to Salesforce records and deliver them as events to subscribers. High Volume Platform Events are custom events that can be published and consumed at a large scale. Both types of events support reliable event delivery, which means that events are stored for 72 hours and can be replayed by subscribers in case of connection loss or failure. This ensures that data loss is minimized, even when the client re-connects every couple of days12 References: Change Data Capture Developer Guide, Platform Events Developer Guide


質問 # 23
Universal Containers (UC) の営業担当者は、Salesforce Sales Cloud を主要な CRM として使用しています。UC は、顧客データのコピーも保存する従来の自家製アプリケーションを所有しています。変更があった場合、営業担当者は Salesforce の連絡先レコードを編集または更新できます。
一貫性を保つために、Salesforce と自家製アプリケーションの両方を同期しておく必要があります。UC には次の要件があります。
1. Salesforce の連絡先レコードが更新されると、外部の自家製アプリケーションが
2. 同期はイベント ドリブンである必要があります。
3. 統合は非同期である必要があります。
要件を満たすためにアーキテクトはどのオプションを推奨する必要がありますか?

  • A. プラットフォーム イベントを利用して、連絡先オブジェクトへの変更を含むカスタム イベント メッセージを発行します。
  • B. Change Data Capture を活用して Contact オブジェクトへの変更を追跡し、自家製アプリケーションに CometD サブスクライバーを書き込みます。
  • C. @future アノテーションを使用して Apex トリガを記述します。

正解:B

解説:
D Use an ETL tool to keep Salesforce and the homegrown application in sync on a regular candence.


質問 # 24
新しい Salesforce プログラムには、次のような抽象的な要件があります。Salesforce 上で実行されるビジネス プロセスでは、内部システムと Salesforce の間でデータを更新する必要があります。
統合アーキテクトは、プログラムの統合アーキテクチャのニーズに対して具体的にどの関連詳細を解決する必要がありますか?

  • A. タイミングの側面、リアルタイム/準リアルタイム (同期または非同期)、バッチおよび更新頻度
  • B. ユーザー エクスペリエンス設計、暗号化のニーズ、コミュニティとライセンスの選択に関する中核となる機能要件と非機能要件
  • C. 統合スキル、SME の可用性、およびプログラム ガバナンスの詳細

正解:A

解説:
Explanation
Timing aspects, real-time/near real-time (synchronous or asynchronous), batch and update frequency are relevant details that an integration architect should seek to specifically solve for integration architecture needs of the program. These details help to determine the appropriate integration pattern, technology, and solution for the business requirements. Core functional and non-functional requirements for User Experience design, Encryption needs, Community and license choices are important for the overall program design, but not specific to the integration architecture needs. Integration skills, SME availability, and Program Governance details are also important for the program execution, but not specific to the integration architecture needs.


質問 # 25
企業のセキュリティ評価では、Salesforce 組織の未管理パッケージの脆弱性が指摘されました。特に、Salesforce からのコールアウトで使用されるユーザー名、パスワード、OAuth トークンなど、プレーン テキストで簡単にアクセスできるシークレットが挙げられます。
機密情報が意図的または不注意による公開から確実に保護されるようにするために、統合アーキテクトが使用する必要がある 2 つの永続化メカニズムはどれですか?
2つの答えを選択してください

  • A. 保護されたカスタム メタデータ タイプ
  • B. 保護されたカスタム設定
  • C. 指定資格証明
  • D. 暗号化されたカスタム フィールド

正解:B、C

解説:
Explanation
Named Credentials and Protected Custom Settings are two persistence mechanisms that can be used to ensure that secrets are protected from deliberate or inadvertent exposure. Named Credentials allow you to specify the URL of a callout endpoint and its required authentication parameters in one definition. Salesforce manages all the authentication for Apex callouts that specify a named credential as the callout endpoint, and you don't have to add more authentication logic in your Apex code. Named Credentials can be defined to provide a secure and convenient way of setting up authenticated callouts, and they can also be used in Lightning components, Visualforce pages, and flows1.
Protected Custom Settings are a type of custom settings that store application-specific data that is hidden from subscribers. They are only accessible by the managed package that created them, and they can be used to store secrets such as encryption keys, passwords, or tokens. Protected Custom Settings can be accessed by Apex code, formulas, or validation rules within the same namespace as the settings2.
Encrypted Custom Fields are not a suitable mechanism for storing secrets, because they are not designed to prevent unauthorized access to sensitive data. Encrypted Custom Fields allow you to encrypt text fields using a standard encryption scheme. The encrypted data is masked in reports, list views, and search results, but it can still be viewed by users who have the "View Encrypted Data" permission. Encrypted Custom Fields are intended to protect data from unauthorized access by users within your organization, not from external threats or malicious code3.
Protected Custom Metadata Types are another type of custom metadata types that store application-specific data that is hidden from subscribers. They are similar to Protected Custom Settings, but they have some advantages such as being deployable using change sets or Metadata API, being accessible by SOQL queries, and being able to reference other metadata types or settings. However, Protected Custom Metadata Types cannot be used to store secrets, because they do not support encryption or masking of sensitive data. Protected Custom Metadata Types are intended to store configuration data that is specific to your managed package, not secrets that need to be secured.
Therefore, the correct answer is B and D, because Named Credentials and Protected Custom Settings are the only persistence mechanisms that can be used to securely store secrets in Salesforce.
References: 1: Named Credentials | Apex Developer Guide | Salesforce Developers 2: Custom Settings | Apex Developer Guide | Salesforce Developers 3: Encrypted Fields | Salesforce Help : [Protected Custom Metadata Types | ISVforce Guide | Salesforce Developers]


質問 # 26
アーキテクトは、Apex コードを使用して外部システムへのコールアウトを作成し、保険の見積もりを処理することを推奨しました。
これが統合の正しいオプションであることを確認するために、統合アーキテクトは何を考慮する必要がありますか?

  • A. 1 回の Apex トランザクションでのコールアウトの最大数。
  • B. 実行時間の長いリクエストの制限 (合計実行時間)。
  • C. 同一トランザクション内の保留操作の制限。
  • D. 1 つの継続での並列 Apex コールアウトの最大数。

正解:C


質問 # 27
エンタープライズ アーキテクトは、Salesforce インテグレーション アーキテクトに、以下 (図と説明を参照) を確認し、エンタープライズ システムのすべての制約と Salesforce プラットフォームの制限を慎重に検討した後、推奨事項を提供するように依頼しました。

* 約 3,000 の電話セールス エージェントが同時に Salesforce Lightning UI を使用して、対象となるオファーに対する顧客の適格性をチェックします。
* このサービスを提供し、外部でホストされている資格システムは複数あります。ただし、現在の応答時間は、処理して返すのに最大 90 秒かかる場合があります (将来的に応答時間を短縮するための議論が行われていますが、約束はされていません)。
* これらの資格システムには、ESB (MuleSoft) を介して編成された API を介してアクセスできます。
* Salesforce からのすべてのリクエストは顧客の API ゲートウェイ レイヤーを通過する必要があり、API ゲートウェイは 9 秒後にリクエストがタイムアウトするという制約を課します。
どの 3 つの推奨事項を作成する必要がありますか?
3つの答えを選択してください

  • A. ESB から受信した requestID を渡す「Check Update」ボタンを実装します (ユーザーの操作が必要です)。
  • B. Mule が応答を受信したら、Remote-Call-In を介して Salesforce でプラットフォーム イベントを作成し、lightning UI で empAPI を使用して 3,000 人の同時ユーザーにサービスを提供します。
  • C. 継続コールアウトを使用して、ページの読み込み時に Lightning UI から Salesforce からの適格性チェック要求を行います。
  • D. Mule を介して Lightning UI から外部システムへの同期 Apex コールアウトを推奨し、API ゲートウェイのタイムアウトでポーリングを実装します。
  • E. 外部システムから利用可能な場合、requestID (または) 応答を返すためのキャッシュ/状態管理を備えた ESB (Mule)。

正解:A、C、E


質問 # 28
サブスクリプション ベースのメディア企業のシステム ランドスケープでは、多くのサブスクライバーが複数のアカウントを保持し、複数回ログインする必要があります。SAML と OpenId をサポートする ID およびアクセス管理 (IAM) システムが最近実装され、自己登録とシングル サインオン (SSO) によって加入者のエクスペリエンスが向上しました。
IAM システムは Salesforce と統合して、新しいセルフサービスの顧客が Salesforce Community Cloud にすぐにアクセスできるようにする必要があります。
Salesforce Community Cloud が自己登録と SSO をサポートする必要がある 2 つの要件はどれですか?
2つの答えを選択してください

  • A. OpenId Connect 認証プロバイダーとジャストインタイム プロビジョニング
  • B. SAML SSO とジャストインタイム プロビジョニング
  • C. SAML SSO および登録ハンドラー
  • D. OpenId Connect 認証プロバイダーと登録ハンドラー

正解:B、D

解説:
Explanation
The Salesforce Community Cloud should support OpenId Connect Authentication Provider and Registration Handler, and SAML SSO and just-in-time provisioning for self-registration and SSO. OpenId Connect is a protocol that allows users to authenticate with an external identity provider and access Salesforce resources. A registration handler is a class that implements the Auth.RegistrationHandler interface and defines how to create new users or update existing users in Salesforce from the information received from the identity provider. SAML SSO is a protocol that allows users to log in to Salesforce with a single credential from an identity provider. Just-in-time provisioning is a feature that allows creating or updating user accounts in Salesforce based on SAML assertions.
References: [OpenID Connect Authentication Providers], [Registration Handler Interface], [SAML Single Sign-On for Communities].


質問 # 29
企業は、Salesforce から企業ファイアウォールの背後にある自社開発システムにデータを送信できる必要があります。データは一方向にのみプッシュする必要があり、リアルタイムで送信する必要はありません。平均ボリュームは 1 日あたり 200 万レコードです。
外部システムと Salesforce 間の統合を構築する際に適切なオプションを選択する際に、統合アーキテクトは何を考慮する必要がありますか?

  • A. 記録が大量にあるため、記録をプラットフォーム外にステージングするには、サードパーティの統合ツールが必要です。
  • B. 大量のレコードが原因で、同時要求の数が外部システムへの REST API 呼び出しの制限に達する可能性があります。
  • C. 大量のレコードがあるため、Salesforce は外部システムに対して REST API 呼び出しを行う必要があります。
  • D. 大量のレコードがあるため、外部システムは BULK API Rest エンドポイントを使用して Salesforce に接続する必要があります。

正解:A


質問 # 30
Northern Trail Outfitters では、Salesforce 組織の 1 つと、Salesforce Connect を使用した外部データ ソースとの間で統合を設定する必要があります。外部データ ソースは Open Data Protocol をサポートしています。
Salesforce からのリクエストを保護するために、インテグレーション アーキテクトが推奨する 3 つの構成はどれですか?
3つの答えを選択してください

  • A. OData 接続の ID タイプを構成します。
  • B. 外部データ ソースで CSRF 保護を構成します。
  • C. OData 接続の特別な互換性を構成します。
  • D. OData 接続の CSRF 保護を構成します。
  • E. OData 接続用の証明書を構成します。

正解:A、D、E

解説:
Explanation
Configuring Identity Type, Certificate, and CSRF Protection for OData connection are three configurations that an Integration Architect should recommend to secure requests coming from Salesforce. Identity Type is used to specify the authentication method for the OData connection, such as Basic Authentication, OAuth 2.0, or Named Principal. Certificate is used to enable SSL/TLS encryption for the OData connection, which protects the data in transit from eavesdropping or tampering. CSRF Protection is used to prevent cross-site request forgery attacks, which exploit the trust between the user and Salesforce by sending malicious requests from another website. Configuring Special Compatibility for OData connection is not a configuration that is related to security, but rather to compatibility issues with different versions or implementations of OData.
Configuring CSRF Protection on External Data Source is not a configuration that can be done in Salesforce, but rather on the external data source itself. Reference: Salesforce Connect: Custom Adapters Developer Guide, page 9-10


質問 # 31
コール センター マネージャーは、カスタム ダッシュボードを使用してケース関連の指標を追跡します。マネージャーは、クローズされたケースの数をリアルタイムで表示するコンポーネントを必要としています。
この要件を満たすには、どのタイプのイベントを使用する必要がありますか?

  • A. 一般的なイベント
  • B. プラットフォーム イベント
  • C. プッシュ トピック イベント
  • D. 変更データ キャプチャ イベント

正解:D

解説:
Explanation
Change Data Capture Event is the best option to meet this requirement. Change Data Capture Event is a type of streaming event that notifies subscribers of changes to Salesforce records, such as creation, update, delete, and undelete operations1. By subscribing to Change Data Capture Event for the Case object, the dashboard component can receive real-time updates on the number of closed Cases. Push Topic Event is another type of streaming event that notifies subscribers of changes to Salesforce records that match a SOQL query2. However, Push Topic Event has some limitations, such as not supporting all SOQL features and not capturing delete and undelete operations3. Platform Event is a type of streaming event that delivers custom notifications within the Salesforce platform or from external sources4. Platform Event is not suitable for this requirement because it is not tied to Salesforce records and requires custom logic to publish and subscribe. Generic Event is a type of streaming event that sends custom JSON notifications to subscribers without a predefined schema5. Generic Event is not suitable for this requirement because it is not tied to Salesforce records and requires custom logic to publish and subscribe.


質問 # 32
Universal Containers (UC) は、広告バナーを販売する大手印刷会社です。同社は、バナーの初期デザインのコンセプトについてサードパーティのエージェントと協力しています。設計ファイルはオンプレミスのファイル ストアに保存され、UC 内部ユーザーおよびサード パーティ機関がアクセスできます。UC は、設計ファイルに関してサード パーティ機関と協力し、コミュニティで設計ファイルを表示できるようにしたいと考えています。
コンセプト デザイン ファイルのサイズは 2.5 GB です。
統合アーキテクトが推奨するソリューションはどれですか?

  • A. Salesforce Files を使用して、ファイルを Salesforce レコードにリンクし、レコードとファイルをコミュニティに表示します。
  • B. ファイルの場所の URL を保存するカスタム オブジェクトを作成します。コミュニティ ユーザーがファイルの URL をクリックすると、ユーザーはオンプレミス システムのファイルの場所にリダイレクトされます。
  • C. 外部データ ソースを定義し、Salesforce Connect を使用してファイルを外部オブジェクトにアップロードします。間接参照を使用して外部オブジェクトをリンクします。
  • D. Request and Reply 統合パターンを使用して Lightning コンポーネントを作成し、コミュニティ ユーザーが設計ファイルをダウンロードできるようにします。

正解:B

解説:
Explanation
The best solution for this scenario is to use a custom object to store the file location URL and redirect the community user to the on-premise file store when they click on the URL. This way, the community user can access the large design files without having to download them or use any external data source. Option A is not feasible because the Request and Reply integration pattern is not suitable for large files and would cause performance issues. Option B is not correct because Salesforce Connect cannot upload files to an external object, only data. Option D is not possible because Salesforce Files has a limit of 2 GB per file, and the design files are 2.5 GB in size. References:
Salesforce Connect Developer Guide
Salesforce Files Developer Guide


質問 # 33
Universal Containers は、金融商品とサービスを販売する世界的な金融会社です。
指定された一連の注文から請求書を生成する、毎日スケジュールされた Batch Apex ジョブがあります。
UC は、請求書の生成が失敗した場合に備えて、このバッチ Apex ジョブの回復力のある統合を構築するよう要求しました。
要件を満たすために、統合アーキテクトは何を推奨する必要がありますか?

  • A. ミドルウェアでバッチ再試行とエラー処理をビルドします。
  • B. バッチ Apex ジョブ自体でバッチ再試行とエラー処理を構築します。
  • C. BatchApexErrorEvent を使用してバッチ再試行とエラー処理を構築します。
  • D. エラー処理を監視するためのバッチ再試行とエラー処理レポート。

正解:C

解説:
Explanation
The BatchApexErrorEvent object allows handling errors that occur during Batch Apex execution. By subscribing to this event, the integration can retry the invoice generation for the failed records or perform other recovery actions. This is a resilient and scalable solution that does not require custom code in the Batch Apex job itself or in the middleware1


質問 # 34
ビジネスでは、電話販売代理店に配信されるすべての着信通話について、電話番号タイプの分類 (携帯電話と固定電話) のチェックと更新を自動化する必要があります。次の条件が存在します。
1. ピーク時には、コール センターは 1 日あたり最大 100,000 件の電話を受けることができます。
2. 電話番号種別分類は、外部サービスAPIが提供するサービスです。
3. ビジネスは、記録をチェックおよび更新するタイミングと頻度に柔軟に対応します (一晩中または 6 ~ 12 時間ごとで十分です)。
リモート コールイン パターンおよび/またはバッチ同期 (ETL 経由のレプリケーション: システム -> Salesforce) は、カスタム プレミスでホストされているミドルウェアと連携するように決定されています。
これらのパターンとメカニズムを実装するために、統合アーキテクトはどのコンポーネントを推奨する必要がありますか?

  • A. Salesforce で IoConfigure リモート サイト設定を行い、ミドルウェアを認証します。
  • B. ミドルウェアを認証するように Salesforce で構成された ConnectedApp。
  • C. 公開されている内部 API とリソースを保護するために、ファイアウォールとリバース プロキシが必要です。
  • D. Salesforce からミドルウェア (ETL/ESB) へのリクエストを認証する API ゲートウェイ。

正解:B

解説:
Explanation
A Connected App is a framework that enables an external application to integrate with Salesforce using APIs and standard protocols, such as OAuth. By configuring a Connected App in Salesforce, the integration can authenticate the middleware and grant access to the Salesforce data and services. This is a secure and flexible solution that does not require configuring Remote Site Settings, API Gateway, or Firewall and reverse proxy2 References: 1: BatchApexErrorEvent 2: Connected Apps


質問 # 35
Northern Trail Outfitters は、リードから商談へのプロセスを使用して取引先を作成するためのフロントエンドとして Salesforce を使用したいと考えています。
1. 商談がクローズされて受注されると、Salesforce で注文が作成されますが、バックエンドの ERP システムが注文のデータ マスターであり、
2. 顧客は、Salesforce 内で、保持期間内にある注文作成、注文発送、注文支払いなどの注文処理のすべての段階を確認できるようにしたいと考えています。
これらのビジネス要件を満たすソリューションを設計する際に、インテグレーション アーキテクトが考慮する必要があるメッセージの持続性に関する考慮事項を 2 つ選択してください。
2つの答えを選択してください

  • A. Salesforce イベント バスをサブスクライブする場合、古いイベントと新しいイベントを表示できるように、値を -2 にして ReplaylD を使用します。
  • B. 大量のイベント メッセージは 24 時間 (1 日) 保存されます。
  • C. 大量のイベント メッセージは 72 時間 (3 日間) 保存されます。
  • D. Salesforce イベント バスをサブスクライブする場合、ReplaylD を値 -1 で使用して、新しいイベントを表示できるようにします。

正解:A、C

解説:
https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/using_streaming_api_durability.htm


質問 # 36
Northern Trail Outfitters のセールス オペレーション チームは、毎日新しいリードをインポートします。統合された従来のテリトリー管理システムは、営業チームのメンバーが作業できるようになる前に、リードにテリトリーを割り当てます。現在の統合では、多くの場合、遅延の問題が発生します。
統合パフォーマンスを改善するためにアーキテクトが行うべき 2 つの推奨事項はどれですか?
2つの答えを選択してください

  • A. レガシー システムはシリアル モードで送信する必要があります。
  • B. 同期 BULK API のバッチ サイズを小さくします。
  • C. 非同期 BULK API のバッチ サイズを小さくします。
  • D. レガシ システムは並列モードで送信する必要があります。

正解:C、D


質問 # 37
Northern Trail Outfitters は、Salesforce から REST API へのコールアウトの品質を改善したいと考えています。この目的のために、すべての API クライアント/コンシューマーが、すべての API 要求および応答ペイロードのフィールド レベルの定義を含む RESTAPI マークアップ言語 (RAML) 仕様に準拠する必要があります。RAML 仕様は、Apex REST API クライアントが依存できるインターフェイス コントラクトとして機能します。
Apex REST API クライアントの単体テストで RAML 仕様への準拠を確認するために、統合アーキテクトが統合アーキテクチャに含める必要がある 2 つの設計仕様はどれですか?
2つの答えを選択してください

  • A. テスト コンテキストで Apex REST API クライアントを呼び出して、モック応答を取得します。
  • B. Apex REST API クライアントから HttpCalloutMock 実装を呼び出します。
  • C. HttpCalloutMock を実装して、RAML 仕様に従って応答を返します。
  • D. Apex REST API クライアントで HttpCalloutMock を実装する必要があります。

正解:A、C

解説:
Explanation
The HttpCalloutMock interface allows testing HTTP callouts by returning a predefined response in a test context.
By implementing HttpCalloutMock to return responses per RAML specification, the Apex REST API Clients unit tests can confirm that the API requests and responses match the expected format and values.
Calling the Apex REST API Clients in a test context to get the mock response is also necessary to verify the adherence to the RAML specs. Calling the HttpCalloutMock implementation from the Apex REST API Clients or requiring the Apex REST API Clients to implement the HttpCalloutMock are not valid options because the HttpCalloutMock interface is implemented by a separate class that is passed as a parameter to the Test.setMock method2 References: 1: Idempotent REST APIs 2: Testing HTTP Callouts by Implementing the HttpCalloutMock Interface


質問 # 38
......

最新の2024年最新の実際に出ると確認されたIntegration-Architect日本語問題集で100%無料Integration-Architect日本語試験問題集:https://www.jpntest.com/shiken/Integration-Architect-JPN-mondaishu

弊社を連絡する

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

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

サポート:現在連絡