MCD-LEVEL-1 practice question 27 of 30

A mule project contains MySQL database dependency . The project is exported from Anypoint Studio so that it can be deployed to Cloudhub. What export options needs to be selected to create the smallest deployable archive that will successfully deploy to Cloudhub?

Full set: 235 questions
Answer options
A: Select both the options 1) Attach project sources 2) Include project module and dependencies
B: No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
C: Select only below option 2) Include project module and dependencies Correct answer
D: Select only below option 1) Attach project sources
Correct Answer:
C. Select only below option 2) Include project module and dependencies
Explanation

When exporting a Mule application from Anypoint Studio to deploy to CloudHub, the generated JAR file must contain all necessary dependencies (such as the MySQL database connector and its associated JDBC driver) to run successfully in the cloud environment. Selecting "Include project modules and dependencies" ensures these required libraries are packaged into the deployable archive. To fulfill the requirement of creating the smallest possible deployable archive, you must omit the "Attach project sources" option, as the raw source code (XML files, uncompiled Java classes) is not required by the Mule runtime to execute the application.

Why Incorrect

A: Attaching project sources includes unnecessary raw source files, which increases the archive size and violates the requirement for the smallest deployable archive. B: Failing to include dependencies will result in a deployment or runtime failure on CloudHub due to the missing MySQL JDBC driver. D: Attaching sources without including dependencies will cause runtime errors due to missing libraries and does not provide a successfully deployable archive.

References

1. MuleSoft Official Documentation: "Anypoint Studio" -> "Export a Project as a Deployable Archive". Section: "Export Options".

2. MuleSoft MCD Level 1 Courseware: "Deploying and Managing APIs" -> "Deploying Mule Applications to CloudHub".

Scroll to Top