Salesforce Certified Development Lifecycle and Deployment Architect — Question 28
Metadata API supports deploy() and retrieve() calls for file-based deployment.
Which two scenarios are the primary use cases for writing code to call retrieve() and deploy() methods directly? (Choose two.)
Answer options
- A. Team development of an application in a Developer Edition organization. After completing development and testing, the application is distributed via Lightning Platform AppExchange.
- B. Development of a custom application in a sandbox organization. After completing development and testing, the application is then deployed into a production organization using Metadata API.
- C. Development of a custom application in a scratch org. After completing development and testing, the application is then deployed into an upper sandbox using Salesforce CLI (SFDX).
- D. Development of a customization in a sandbox organization. The deployment team then utilize the Ant Migration Tool to deploy the customization to an upper sandbox for testing.
Correct answer: B, D
Explanation
Option B is correct because it describes a scenario where the Metadata API is used to move an application from a sandbox to production after development. Option D is also correct as it highlights the use of the Ant Migration Tool for deployment, which is a common practice in testing scenarios. Options A and C involve distribution methods that do not directly relate to the Metadata API's retrieve() and deploy() functions.