認定する-高品質なMCD-Level-2日本語学習内容試験-試験の準備方法MCD-Level-2資料的中率数万人の顧客は私たちのMCD-Level-2問題集を利用したら、MCD-Level-2試験に合格しました。もちろん、私たちのMCD-Level-2問題集を利用したら、唯一の収穫は試験に合格することではなく、自分の仕事またライフスタイルを変えることもできます。MCD-Level-2問題集のメリットはなんですか?いろいろありますよ。例えば、覚えやすい、便利、時間を節約するということなどです。 MuleSoft Certified Developer - Level 2 (Mule 4) 認定 MCD-Level-2 試験問題 (Q20-Q25):質問 # 20
A Mule application for processing orders must log the order ID for every log message output.
What is a best practice to enrich every log message with the order ID?
A. Create a custom XML SDK component to wrap the logger processor and automatically add the order ID within the connector
B. Use the Tracing module to set logging variables with a Mapped Diagnostic Context
C. Use flow variables within every logger processor to log the order ID
D. Set a flow variable and edit the log4/2.xml file to output the variable as part of the message pattern
正解:B
解説:
To enrich every log message with the order ID, the developer should use the Tracing module to set logging variables with a Mapped Diagnostic Context (MDC). The Tracing module allows adding custom key-value pairs to log messages using MDC variables. The developer can use Set Logging Variables operation to set the order ID as an MDC variable and then use it in any logger processor within the same thread or event.
References:https://docs.mulesoft.com/tracin ... t-logging-variables
質問 # 21
Refer to the exhibit.
Based on the code snippet, schema,json file, and payload below, what is the outcome of the given code snippet when a request is sent with the payload?
A. The Mule flow will execute successfully with status code 200m and a response will display the message
'' Age in years which must equal to or greater than zero.''
B. The Mule flow will execute successfully with status code 204
C. The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
D. The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
正解:D
解説:
Based on the code snippet, schema.json file, and payload below, the outcome of the given code snippet when a request is sent with the payload is that the Mule flow will throw the exception
'JSON:SCHEMA_NOT_HONOURED'. This is because the payload does not conform to the schema.json file, which specifies that age must be a number greater than or equal to zero. The payload has age as a string with a negative value, which violates the schema. Therefore, the validate-schema operation throws an error with type
'JSON:SCHEMA_NOT_HONOURED'.
References:https://docs.mulesoft.com/json-module/1.1/json-validate-schema
質問 # 22
The HTTP Request operation raises an HTTP CONNECTIVITY error.
Which HTTP status code and body are returned to the web client?
A. HTTP Status Code:500.
Body 'The HTTP CONNECTIVITY Error description
B. HTTP Status Code:200.
Body 'Error in processing your request
C. HTTP Status Code:500.
Body 'Error in processing your request
D. HTTP Status Code:500.
Body 'Error in processing your request
正解:D
解説:
When the HTTP Request operation raises an HTTP CONNECTIVITY error, it triggers an on-error-continue handler that sets a payload with 'Error in processing your request'. Since no status code is explicitly set in this handler, it defaults to 500 (INTERNAL SERVER ERROR). Therefore, the web client receives an HTTP response with status code 500 and body 'Error in processing your request'.
References:https://docs.mulesoft.com/mule-r ... g#on-error-continue
質問 # 23
Which command is used to convert a JKS keystore to PKCS12?
A. Keytool-importkeystore -srckeystore keystore p12-srcstoretype PKCS12 -destkeystore keystore.jks
-deststoretype JKS
B. Keytool-importkeystore -srckeystore keystore jks-srcstoretype JKS -destkeystore keystore.p13
-deststoretype PKCS12
C. Keytool-importkeystore -srckeystore keystore jks-srcstoretype PKCS12 -destkeystore keystore.p12
-deststoretype JKS
D. Keytool-importkeystore -srckeystore keystore p12-srcstoretype JKS -destkeystore keystore.p12
-deststoretype PKCS12
正解:D
解説:
To convert a JKS keystore to PKCS12, the developer needs to use the keytool-importkeystore command with the following options: -srckeystore keystore.jks -srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12. This command imports all entries from a source JKS keystore (keystore.jks) into a destination PKCS12 keystore (keystore.p12).
References:https://docs.oracle.com/en/java/ ... 4-78E3-47B7-AE75-6D
質問 # 24
A Mule application contain two policies Policy A and Policy A has order1, and Policy B has order 2. Policy A Policy B, and a flow are defined by he configuration below.
When a HTTP request arrives at the Mule application's endpoint, what will be the execution order?
A. A1, B1, F1, B2, A2
B. F1, B1, A1, A2, B2
C. F1, A1, B1, B2, A2
D. B1, A1, F1, A2, B2
正解:A
解説:
Explanation
Based on the configuration below, when a HTTP request arrives at the Mule application's endpoint, the execution order will be A1, B1, F1, B2, A2. This is because policies are executed before and after the API implementation flow according to their order attribute. Policy A has order 1, which means it is executed first before Policy B, which has order 2. The flow is executed after both policies are executed before the flow.
Then, Policy B is executed after the flow before Policy A is executed after the flow. References: https://docs.mulesoft.com/api-manager/2.x/policies-policy-order