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 7 / 10 · Domain 6: Testing

A team wants to deploy a validated component set to production without running the tests again, using the deployRecentValidation() call. Which requirement does the Metadata API Developer Guide give?

  1. The components were validated within the last 30 days, in any org that has the same metadata as the target
  2. The components were validated successfully for the target environment within the last 10 days, with passing tests
  3. The components were validated in a sandbox, whose result the call then applies to production in place of a new run
  4. The components were validated with the NoTestRun test level, the recorded result holding zero failing tests
Show the answer and explanation

Answer: B

Why this is correct
The guide describes deployRecentValidation() as a way to deploy components to production in less time by skipping the execution of Apex tests. The requirements are that the components have been validated successfully for the target environment within the last 10 days, that the Apex tests in the target org passed during the validation, and that code coverage requirements are met. With all tests or all local tests, overall coverage must be at least 75% and Apex triggers must have some coverage; with RunSpecifiedTests, each deployed class and trigger needs at least 75% on its own.

Why the other options are wrong
"The components were validated within the last 30 days, in any org that has the same metadata as the target" … The guide gives a period of the last 10 days, and the validation has to be for the target environment.
"The components were validated with the NoTestRun test level, the recorded result holding zero failing tests" … The guide says that, as part of the validation, Apex tests in the target org have passed, and that code coverage requirements are met.
"The components were validated in a sandbox, whose result the call then applies to production in place of a new run" … The guide says the components must have been validated successfully for the target environment, and the quick deployment goes to the same target environment.

Key points
A quick deployment reuses a validation for the same target within 10 days.

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