展示を参照してください。

ショッピング カートのチェックアウト プロセスは、一連の API 呼び出しをエクスペリエンス API に送信する Web ストア バックエンドで構成され、エクスペリエンス API は次にプロセス API を呼び出します。すべての API 呼び出しは、HTTPS POST を介して行われます。Java Web ストア バックエンドは Java EE アプリケーション サーバーで実行されますが、すべての API 実装は、顧客がホストする Mule ランタイムで実行される Mule アプリケーションです。
個々のチェックアウト インスタンスに属するすべての HTTP 要求と応答のエンド ツー エンドの相関関係が必要です。これは、共通の相関 ID を介して行われるため、Web ストア バックエンド、エクスペリエンス API 実装、およびプロセス API 実装によって書き込まれるすべてのログ エントリには、同じチェックアウト インスタンスに属するすべての要求と応答に対して同じ相関 ID が含まれます。
Web ストアのバックエンドとエクスペリエンス API およびプロセス API の実装が、各チェックアウト インスタンスの API 呼び出しのエンドツーエンドの相関関係に参加するための最も効率的な方法 (最小限のカスタム コーディングまたは構成を使用する方法) は何ですか?
A)
Java EE アプリケーションである Web ストア バックエンドは、Java EE アプリケーション サーバーによって生成されたスレッド ローカル相関 ID を自動的に利用し、HTTP 標準ヘッダーを使用してそれを Experience API に自動的に送信します。相関 ID を生成および管理するための Web ストア バックエンド、エクスペリエンス API、およびプロセス API の実装

B)
Web ストア バックエンドは、チェックアウトの開始時に新しい相関 ID 値を生成し、それを X-CORRELATlON-lt HTTP リクエスト ヘッダーに設定します そのチェックアウトに属する各 API 呼び出しで エクスペリエンス API およびプロセス API に特別なコードや構成は含まれません相関 ID を生成および管理するための実装

ハ)
エクスペリエンス API 実装は、受信 HTTP 要求ごとに相関 ID を生成し、それを HTTP 応答で Web ストア バックエンドに渡します。これは、エクスペリエンス API への後続のすべての API 呼び出しに含まれます。
Experience API 実装は、適切な HTTP 要求ヘッダーで相関 ID を Process API に伝達するようにもコーディングする必要があります。

D)
Web ストア バックエンドは、HTTP 要求本文で相関 ID 値を送信します エクスペリエンス API で必要な方法で、エクスペリエンス API とプロセス API の実装をコーディングして、カスタム相関 ID を HTTP 要求で受信し、適切な HTTP 要求ヘッダーで伝達する必要があります

正解:B
Correct answer is "The web store backend generates a new correlation ID value at the start of checkout and sets it on the X-CORRELATION-ID HTTP request header in each API invocation belonging to that checkout No special code or configuration is included in the Experience API and Process API implementations to generate and manage the correlation ID" Explanation : By design, Correlation Ids cannot be changed within a flow in Mule 4 applications and can be set only at source. This ID is part of the Event Context and is generated as soon as the message is received by the application. When a HTTP Request is received, the request is inspected for "X-Correlation-Id" header. If "X-Correlation-Id" header is present, HTTP connector uses this as the Correlation Id. If "X-Correlation-Id" header is NOT present, a Correlation Id is randomly generated. For Incoming HTTP Requests: In order to set a custom Correlation Id, the client invoking the HTTP request must set "X-Correlation-Id" header. This will ensure that the Mule Flow uses this Correlation Id. For Outgoing HTTP Requests: You can also propagate the existing Correlation Id to downstream APIs. By default, all outgoing HTTP Requests send "X-Correlation-Id" header. However, you can choose to set a different value to
"X-Correlation-Id" header or set "Send Correlation Id" to NEVER.
Mulesoft Reference:
https://help.mulesoft.com/s/article/How-to-Set-Custom-Correlation-Id-for-Flows-with-HTTP-Endpoint-in-Mule- Graphical user interface, application, Word Description automatically generated
