無料MuleSoft Certified Developer MCD-Level-2究極の学習ガイド(更新された62問あります) [Q31-Q50]

Share

無料MuleSoft Certified Developer MCD-Level-2究極の学習ガイド(更新された62問あります)

トップクラスのMCD-Level-2練習試験問題

質問 # 31
A Mule API receives a JSON payload and updates the target system with the payload. The developer uses JSON schemas to ensure the data is valid.
How can the data be validation before posting to the target system?

  • A. Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
  • B. Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
  • C. Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
  • D. Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add:
    %dw 2.0
    Import.json-moduls

正解:C

解説:
Explanation
To validate the data before posting to the target system, the developer should add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema. The JSON module provides a validate-schema operation that validates a JSON payload against a JSON schema and throws an error if the payload is invalid. References:
https://docs.mulesoft.com/json-module/1.1/json-validate-schema


質問 # 32
A developer is working on a project that requires encrypting all data before sending it to a backend application. To accomplish this, the developer will use PGP encryption in the Mule 4 Cryptography module.
What is required to encrypt the data before sending it to the backend application?

  • A. The application needs the private key from the backend service to encrypt the data
  • B. The application needs the public key from the backend service to encrypt the data
  • C. The application needs to configure HTTPS TLS context information to encrypt the data
  • D. The application needs to both the private and public keys to encrypt the data

正解:B

解説:
Explanation
To encrypt the data before sending it to the backend application using PGP encryption, the application needs the public key from the backend service. PGP encryption uses a public-key cryptography system, which means that each party has a pair of keys: a public key and a private key. The public key is used to encrypt data, and the private key is used to decrypt data. Therefore, to encrypt data for a specific recipient (the backend service), the application needs to use the recipient's public key. The recipient can then use its own private key to decrypt the data. References: https://docs.mulesoft.com/mule-runtime/4.3/cryptography-pgp


質問 # 33
A developer has created the first version of an API designed for business partners to work commodity prices.
What should developer do to allow more than one major version of the same API to be exposed by the implementation?

  • A. In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
  • B. In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number
  • C. In Design Center, open the RAML and modify each operation to include the major version number
  • D. In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number

正解:A

解説:
Explanation
To allow more than one major version of the same API to be exposed by the implementation, the developer should modify the baseUri property in the RAML file to include a variable that indicates the version number.
The baseUri property defines the base URL of the API and can include variables that are replaced with actual values when mocking or deploying the API. By using a variable for the version number, the developer can expose different versions of the API using different base URLs and avoid conflicts or confusion. References:
https://docs.mulesoft.com/api-designer/design-modify-raml-specs#baseuri
https://docs.mulesoft.com/api-manager/2.x/api-versioning


質問 # 34
Which pattern can a web API use to notify its client of state changes as soon as they occur?

  • A. Shared database trigger
  • B. Schedule Event Publisher
  • C. ETL data load
  • D. HTTP Webhock

正解:D

解説:
Explanation
A web API can use HTTP Webhook to notify its client of state changes as soon as they occur. A webhook is an HTTP callback that allows an API to send real-time notifications to another system or application when an event happens. The client registers a URL with the API where it wants to receive notifications, and then the API sends an HTTP request to that URL with information about the event. References:
https://docs.mulesoft.com/connectors/webhook/webhook-connector


質問 # 35
Multiple individual Mute application need to use the Mule Maven plugin to deploy to CloudHub.
The plugin configuration should .. reused where necessary and anything project, specific should be property-based.
Where should the Mule Maven details be configured?

  • A. A parent pom.xml
  • B. Pom, xml
  • C. A Bill of Materials (BOM) parent pm
  • D. Settings, xml

正解:A

解説:
Explanation
To reuse Mule Maven plugin configuration across multiple individual Mule applications, the developer should use a parent pom.xml file. A parent pom.xml file defines common configuration for one or more child projects that inherit from it. The developer can specify common properties and dependencies for all child projects in the parent pom.xml file, such as Mule Maven plugin configuration, and then reference them in each child project's pom.xml file using placeholders. References:
https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#parent-pom
https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance


質問 # 36
A company has been using CI/CD. Its developers use Maven to handle build and deployment activities.
What is the correct sequence of activities that takes place during the Maven build and deployment?

  • A. Validation, initialize, compile, test, package, install verify, deploy
  • B. Validate, initialize, compile, test package, verify, install, deploy
  • C. Initialize, validate, compute, test, package, verify, install, deploy
  • D. Validate, initialize, compile, package, test, install, verify, verify, deploy

正解:B

解説:
Explanation
The correct sequence of activities that takes place during the Maven build and deployment is validate, initialize, compile, test package, verify, install, deploy. These are Maven lifecycle phases that define a sequence of goals to execute during a build process. Each phase represents a stage in the build lifecycle and can have zero or more goals bound to it. References:
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html


質問 # 37
Refer to the exhibit.
What is the result of the Mule Maven Plugin configuration of the value of property its,keystorePassoword in CloudHub 2.0?

  • A. The Mule server encrypts the value
  • B. CloudHub encrypts the value
  • C. Anypoint Studio secures the value
  • D. Runtime Manager masks the value

正解:D

解説:
Explanation
The result of the Mule Maven Plugin configuration of the value of property its,keystorePassword in CloudHub
2.0 is that Runtime Manager masks the value. This means that Runtime Manager hides or obscures the value from anyone who views it in Runtime Manager or Anypoint Platform. References:
https://docs.mulesoft.com/runtime-manager/runtime-manager-agent-for-mule4#properties-tab


質問 # 38
The Center for Enablement team published a common application as a reusable module to the central Nexus repository.
How can the common application be included in all API implementations?

  • A. Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder
  • B. Add a Maven dependency in the PCM file with multiple-plugin as <classifier>
  • C. Add a Maven dependency in the POM file with jar as <classifier>
  • D. Download the common application from Naxus and copy it to the src/main/resources folder in the API

正解:C

解説:
Explanation
To include a common application as a reusable module in all API implementations, the developer should add a Maven dependency in the POM file with jar as <classifier>. This way, the developer can reuse Mule code from another application by packaging it as a JAR file and adding it as a dependency in the POM file of the API implementation. The classifier element specifies that it is a JAR file. References:
https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#add-a-maven-dependency-to-the-pom-file


質問 # 39
A system API that communicates to an underlying MySQL database is deploying to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs.
Which strategy should be used to implement this endpoint?

  • A. Create a dedicated endpoint that responds with the API status only
  • B. Use an existing resource endpoint of the API
  • C. Create a dedicated endpoint that responds with the API status and health of the server
  • D. Create a dedicated endpoint that responds with the API status and reachability of the underlying systems

正解:D

解説:
Explanation
To implement a readiness endpoint to monitor all system APIs, the developer should create a dedicated endpoint that responds with the API status and reachability of the underlying systems. This way, the DevOps team can check if the system API is ready to receive requests and if it can communicate with its backend systems without errors. References:
https://docs.mulesoft.com/mule-runtime/4.3/deployment-strategies#readiness-probes


質問 # 40
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 PKCS12 -destkeystore keystore.p12
    -deststoretype JKS
  • C. Keytool-importkeystore -srckeystore keystore jks-srcstoretype JKS -destkeystore keystore.p13
    -deststoretype PKCS12
  • D. Keytool-importkeystore -srckeystore keystore p12-srcstoretype JKS -destkeystore keystore.p12
    -deststoretype PKCS12

正解:D

解説:
Explanation
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/javase/11/tools/keytool.html#GUID-5990A2E4-78E3-47B7-AE75-6D182625954


質問 # 41
Which statement is true about using mutual TLS to secure an application?

  • A. Mutual TLS ensures only authorized end users are allowed to access an endpoint
  • B. Mutual TLS requires a hardware security module to be used
  • C. Mutual TLS authenticates the identity of the server before the identity of the client
  • D. Mutual TLS increases the encryption strength versus server-side TLS alone

正解:C

解説:
Explanation
Mutual TLS (mTLS) is an extension of TLS that requires both parties (client and server) to present their certificates to each other during the handshake process. This way, both parties can verify each other's identity and establish a secure connection. The authentication of the server happens before the authentication of the client, as the server sends its certificate first and then requests the client's certificate. References:
https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#mutual-authentication


質問 # 42
Mule application A is deployed to CloudHub and is using Object Store v2. Mute application B is also deployed to CloudHub.
Which approach can Mule application B use to remove values from Mule application A'S Object Store?

  • A. Object Store v2 REST API
  • B. Object Store Connector
  • C. CloudHub Connector
  • D. CloudHub REST API

正解:A

解説:
Explanation
To remove values from Mule application A's Object Store v2, Mule application B can use Object Store v2 REST API. This API allows performing operations on Object Store v2 resources using HTTP methods, such as GET, POST, PUT, and DELETE. Mule application B can use the DELETE method to remove values from Mule application A's Object Store v2 by specifying the object store ID and the key of the value to delete.
References: https://docs.mulesoft.com/object-store/osv2-apis


質問 # 43
A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory exception is raised.
A technical spike is being performed to increase reliability of the Mule application.
Which steps should be performed within the Mule flow above the ensure idempontent behavior?

  • A. Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
  • B. None, the flow already exhibits idempotent behavior
  • C. Remove the Put requests from the Scatter-Getter and perform them sequentially
  • D. Change the PUT requests inside the Scatter-Gather to POST requests

正解:A

解説:
Explanation
To ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates.
References: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept
https://docs.mulesoft.com/mule-runtime/4.3/error-handling


質問 # 44
A company deploys 10 public APIs to CloudHub. Each API has its individual health endpoint defined. The platform operation team wants to configure API Functional Monitoring to monitor the health of the APIs periodically while minimizing operational overhead and cost.
How should API Functional Monitoring be configured?

  • A. From one private location with all 10 APIs in a single schedule
  • B. From 10 public locations with each API in its own schedule
  • C. From one public location with each API in its own schedule
  • D. From one public location with all 10 APIs in a single schedule

正解:D

解説:
Explanation
To configure API Functional Monitoring to monitor the health of 10 public APIs periodically while minimizing operational overhead and cost, the developer should use one public location with all 10 APIs in a single schedule. A public location is a worker that runs in a CloudHub shared environment, which is cheaper and easier to maintain than a private location. A single schedule allows running all 10 APIs tests at the same time and frequency, which reduces complexity and resource consumption. References:
https://docs.mulesoft.com/functional-monitoring/fm-create-monitor#create-a-monitor


質問 # 45
A scatter-gather router is configured with four routes:Route A, B, C and D.
Route C false.

  • A. Error,errorMesage.payload.results ['2']
  • B. Payload ['2']
  • C. Payload failures['2']
  • D. Error,errorMessage,payload.failures['2']

正解:D

解説:
Explanation
The result of accessing route C failure is Error,errorMessage,payload.failures['2']. This is because a scatter-gather router returns an aggregated message that contains an array of results from each route and an array of failures from each route. The failures array contains error objects with information about each failed route execution. To access route C failure, which is the third route (index 2), the developer needs to use Error.errorMessage.payload.failures['2'] expression. References:
https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-reference#scatter-gather-output


質問 # 46
A Mule application deployed to a standardalone Mule runtime uses VM queues to publish messages to be consumed asynchronously by another flow.
In the case of a system failure, what will happen to in-flight messages in the VM queues that have been consumed?

  • A. For nay type of queue, the message will be processed after the system comes online
  • B. For persistent queues, the message will be processed after the system comes online
  • C. For any type of queue, the message will be lost
  • D. For transient queues, the message will be processed after the system comes online

正解:B

解説:
Explanation
In case of a system failure, in-flight messages in persistent VM queues that have been consumed will be processed after the system comes online. This is because persistent VM queues store messages on disk and guarantee delivery even if there is a system crash or restart. Therefore, any in-flight messages that have been consumed but not processed will be recovered from disk and processed when the system is back online.
References: https://docs.mulesoft.com/mule-runtime/4.3/vm-connector#persistent-queues


質問 # 47
Which configurations are required for HTTP Listener to enable mTLS authentication?

  • A. Set an appropriate reconnection strategy and use persistent connections for the listener
  • B. Set an appropriate truststore configuration and reconnection strategy for the listener
  • C. Set an appropriate keystore configuration and use persistent connections for the listener
  • D. Set an appropriate keystore and truststore configuration for the listener

正解:D

解説:
Explanation
To enable mTLS authentication for HTTP Listener, the developer needs to set an appropriate keystore and truststore configuration for the listener. The keystore contains the certificate and private key of the Mule application that are used to prove its identity to clients. The truststore contains the certificates of trusted clients that are allowed to access the Mule application. References:
https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#mutual-authentication


質問 # 48
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 'Error in processing your request
  • B. HTTP Status Code:500.
    Body 'Error in processing your request
  • C. HTTP Status Code:500.
    Body 'The HTTP CONNECTIVITY Error description
  • D. HTTP Status Code:200.
    Body 'Error in processing your request

正解:B

解説:
Explanation
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-runtime/4.3/error-handling#on-error-continue


質問 # 49
Refer to the exhibit.

The flow name is ''implementation'' with code for the MUnit test case.
When the MUnit test case is executed, what is the expected result?

  • A. The test throws an error and does not start
  • B. The test case passes
  • C. The test case fails with an unexpected error type
  • D. The test case fails with an assertion error

正解:D

解説:
Explanation
Based on the code snippet and MUnit test case below, when the MUnit test case is executed, the expected result is that the test case fails with an assertion error. This is because the assert-equals processor compares two values for equality, and fails if they are not equal. In this case, the expected value is 'Hello World', but the actual value returned by the implementation flow is 'Hello Mule'. Therefore, the assertion fails and an error is thrown. References: https://docs.mulesoft.com/munit/2.3/assert-equals-processor


質問 # 50
......

合格させるMuleSoft MCD-Level-2試験問題でテスト復刻エンジンとPDF:https://www.passtest.jp/MuleSoft/MCD-Level-2-shiken.html