DEVELOPMENT-LIFECYCLE-AND-DEPLOYMENT-ARCHITECT practice question 27 of 30

An Architect is working on a Universal Containers project, and due to security concerns they cannot provide the Architect with production access…

Full set: 227 questions
An Architect is working on a Universal Containers project, and due to security concerns they cannot provide the Architect with production access. Instead, a central release management team will be responsible for performing production deployments for all development teams. How should an Architect leverage the Metadata API to ensure any metadata components necessary to deploy the project's functionality are properly communicated to the release management team?
Answer options
A: Create a change set in each sandbox and download the package.xml file for the release management team
B: Provide a spreadsheet of all components and utilize the metadata API's readMetadata call
C: Provide the Release Management team a copy of the audit trail from the sandbox you wish to deploy from
D: Send a package.xml file with associated metadata in a .zip file to the Release Management team Correct answer
Correct Answer:
D. Send a package.xml file with associated metadata in a .zip file to the Release Management team
Explanation

The Metadata API's deploy() function requires a specific format: a .zip file containing a package.xml manifest file and directories with the corresponding metadata components. The package.xml file explicitly lists every component to be deployed. The architect should prepare this .zip package, which is a self-contained, version-controllable artifact, and provide it to the release management team. This ensures a clear, complete, and deployable set of instructions for the team that has production access.

Why Incorrect

A. Change sets are a UI-based deployment tool and do not produce a downloadable package.xml or .zip file suitable for a Metadata API tool.
B. The readMetadata call is for retrieving metadata, not deploying it. A spreadsheet is not a machine-readable deployment manifest for the API.
C. The setup audit trail is a log of changes and is not a deployable artifact; it's unsuitable for constructing a precise deployment.

References

1. Salesforce Developer Documentation. (2023). Metadata API Developer Guide. The "Deploying and Retrieving Metadata" section specifies the required structure of the .zip file for the deploy() call, which includes the package.xml manifest and component files.

2. Salesforce CLI Command Reference. (2023). sf project deploy start. The documentation for this command, which uses the Metadata API, shows that it operates on a set of source files and a manifest, which are typically packaged for deployment.

3. Salesforce Developer Documentation. (2023). Sample package.xml Manifest Files. This page provides examples of the package.xml file, which is the core component for defining a package to be deployed via the Metadata API.

Scroll to Top