Salesforce Certified Platform Development Lifecycle and Deployment Architect Practice Questions

Salesforce Certified Platform Development Lifecycle and Deployment Architect exam preparation

Salesforce Certified Platform Development Lifecycle and Deployment Architect practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Platform Development Lifecycle and Deployment Architect free question 10 / 10 · Domain 8: Operating

One org that holds a shared unlocked package had a packaged component deleted locally by an admin. What happens to that component when a new version of the package is installed as an upgrade?

  1. The component is re-created, but a component with the same API name in the org is kept as it is
  2. The upgrade stops with an error, and the admin has to restore the component before installing again
  3. The component is re-created during the upgrade, and a same-named component already in the org is overwritten
  4. The component stays deleted, the upgrade skipping anything that the admin has removed from the target org
Show the answer and explanation

Answer: C

Why this is correct
The guide describes what to expect for metadata changes in a package upgrade. Metadata introduced in the new version is installed as part of the upgrade. If an upgraded component has the same API name as a component already in the target org, the component is overwritten with the changes. If a component in the upgrade was deleted from the target org, the component is re-created during the upgrade.

Why the other options are wrong
"The component stays deleted, the upgrade skipping anything that the admin has removed from the target org" … The guide says that if a component in the upgrade was deleted from the target org, the component is re-created during the upgrade.
"The upgrade stops with an error, and the admin has to restore the component before installing again" … The guide says the component is re-created during the upgrade. It doesn't describe the upgrade stopping.
"The component is re-created, but a component with the same API name in the org is kept as it is" … The guide says that if an upgraded component has the same API name as a component already in the target org, the component is overwritten with the changes.

Key points
Upgrades overwrite same-named components and re-create deleted ones.

Go to the Salesforce Certified Platform Development Lifecycle and Deployment Architect practice app (10 free questions; purchase unlocks all questions)

See the full practice set