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 8 / 10 · Domain 7: Releasing

A team has created an unlocked package version, but its Apex code coverage is below the requirement for release. Where can the team install that version, according to the Salesforce DX Developer Guide?

  1. In scratch orgs and production orgs, since sandboxes need a released version to receive a package install
  2. In production and in each sandbox, as the coverage requirement applies to the promotion step and not to installs
  3. In no org at all, so the team has to raise the coverage and create a new version before any install is possible
  4. In scratch orgs and sandboxes, but the version can't be promoted and released until the coverage requirement is met
Show the answer and explanation

Answer: D

Why this is correct
The guide says that before you can promote and release an unlocked package, the Apex code must meet a minimum 75% code coverage requirement. Package versions that don't meet code coverage requirements can be installed only in scratch orgs and sandboxes. You can promote package versions only if they're validated and meet the code coverage requirements.

Why the other options are wrong
"In production and in each sandbox, as the coverage requirement applies to the promotion step and not to installs" … The guide says package versions that don't meet code coverage requirements can be installed only in scratch orgs and sandboxes.
"In scratch orgs and production orgs, since sandboxes need a released version to receive a package install" … The guide says versions below the requirement can be installed only in scratch orgs and sandboxes. Production isn't on the list.
"In no org at all, so the team has to raise the coverage and create a new version before any install is possible" … The guide allows installs of such versions in scratch orgs and sandboxes. It says you can promote package versions only if they're validated and meet code coverage requirements.

Key points
Below the coverage line, a version stays in scratch orgs and sandboxes.

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