Praxis Academy
Home › Platform Administrator II › Environment Management and Deployment

Platform Administrator II practice questions: Environment Management and Deployment

Environment Management and Deployment is 7% of the Salesforce Certified Platform Administrator II exam. It covers sandbox types, change sets, packages and DevOps Center. Try these 4 free questions, then open each answer to see why every option is right or wrong.

01

A Full sandbox was refreshed 28 days ago, and a project manager wants it refreshed again right away to pick up new configuration for testing. What should the admin tell the project manager?

  1. Full sandboxes must wait at least 29 days between refreshes, so with only 28 days elapsed the refresh cannot be started yet.
  2. Full sandboxes can be refreshed whenever needed, because the 29-day limit applies only to Partial Copy sandboxes.
  3. A case with Salesforce Support is required to lift the refresh restriction for urgent projects.
  4. The refresh will queue itself and start automatically at exactly 29 days with no admin action.
Show answer

Answer: A

A. Full sandboxes must wait at least 29 days between refreshes, so with only 28 days elapsed the refresh cannot be started yet. ✓Correct. Full sandboxes have a 29-day minimum refresh interval, so the admin has to wait at least one more day.
B. Full sandboxes can be refreshed whenever needed, because the 29-day limit applies only to Partial Copy sandboxes.Incorrect. The 29-day interval belongs to Full sandboxes; Partial Copy sandboxes use a 5-day interval.
C. A case with Salesforce Support is required to lift the refresh restriction for urgent projects.Incorrect. A support case is not the normal way around the interval; it simply has to elapse.
D. The refresh will queue itself and start automatically at exactly 29 days with no admin action.Incorrect. Refreshes never queue automatically; the admin starts them manually once the interval has passed.

Why: Minimum refresh intervals are 1 day for Developer and Developer Pro, 5 days for Partial Copy, and 29 days for Full sandboxes, which copy all production data and metadata. The refresh option becomes available again only once day 29 is reached.

02

Validating a change set from a Developer sandbox into production fails with an error that test code coverage is under the required level. Which two statements accurately describe the code coverage rules for production deployments? (Choose 2)

  1. Unit tests must cover at least 75% of all Apex code in the org for a production deployment.
  2. Each Apex trigger needs at least 1% code coverage to be part of a production deployment.
  3. Every Apex trigger in the org needs some test coverage (at least one test method must exercise it) for the deployment to succeed.
  4. Coverage tests can be skipped in production by turning on the 'Deploy without Running Tests' option in the change set settings.
Show answer

Answer: A, C

A. Unit tests must cover at least 75% of all Apex code in the org for a production deployment. ✓Correct. At least 75% of Apex lines must be covered before Apex can be deployed to production, measured across all Apex in the org, not just the change set.
B. Each Apex trigger needs at least 1% code coverage to be part of a production deployment.Incorrect. The source treats the trigger rule as 'some coverage' tested by at least one method, not a stated 1% threshold; the 75% figure is the org-wide requirement.
C. Every Apex trigger in the org needs some test coverage (at least one test method must exercise it) for the deployment to succeed. ✓Correct. Beyond the 75% org-wide rule, each trigger must have some coverage; a trigger at zero fails the deployment even when overall coverage exceeds 75%.
D. Coverage tests can be skipped in production by turning on the 'Deploy without Running Tests' option in the change set settings.Incorrect. Per the source, skipping tests is not available for production; production deployments always run tests and must meet the 75% threshold.

Why: Production deployments require two things: at least 75% coverage across all Apex code in the org (a cumulative figure), and some coverage on every Apex trigger. A trigger at 0% blocks the deployment even when overall coverage is 75% or higher. Tests should create their own test data rather than depend on live records.

03

An admin builds a schedule-triggered Flow that should run every night at midnight. It works in sandbox testing, but after a change set deployment to production the Flow never runs. What is the most likely explanation?

  1. Change sets cannot carry Scheduled Flows, so they have to be rebuilt by hand in production.
  2. Change sets deploy flows as Inactive; Scheduled Flows must also be activated manually in production, and in some cases a new 'Start Date' must be set for the schedule after activation.
  3. After a change set deployment, Scheduled Flows are paused for 30 days while Salesforce checks the schedule against maintenance windows.
  4. The sandbox and production orgs use different time zones, so the midnight schedule never fires in production's time zone.
Show answer

Answer: B

A. Change sets cannot carry Scheduled Flows, so they have to be rebuilt by hand in production.Incorrect. Scheduled Flows deploy in change sets as normal flow metadata.
B. Change sets deploy flows as Inactive; Scheduled Flows must also be activated manually in production, and in some cases a new 'Start Date' must be set for the schedule after activation. ✓Correct. The Flow lands Inactive, and for a Scheduled Flow the start date and time may also need to be set or confirmed after activation.
C. After a change set deployment, Scheduled Flows are paused for 30 days while Salesforce checks the schedule against maintenance windows.Incorrect. Salesforce has no 30-day post-deployment pause for scheduled flows.
D. The sandbox and production orgs use different time zones, so the midnight schedule never fires in production's time zone.Incorrect. Time zones could shift when the Flow runs, but a Flow that never runs at all points to the Inactive status after deployment.

Why: Scheduled Flows need two post-deployment steps: activate the Flow in the target org (every deployed Flow arrives Inactive), then confirm or set the schedule's start date and time in production. Both belong on the deployment checklist.

04

A change set with custom Apex classes and triggers is validated in production. Overall code coverage is 80%, but one Apex trigger has 0% coverage. What happens to the validation?

  1. It passes, because overall coverage exceeds 75% and coverage per trigger is not checked separately.
  2. It fails, because every Apex trigger in the org needs some code coverage (above 0%), even when overall coverage is above 75%.
  3. It passes with a warning, letting the admin deploy as long as the coverage is fixed within 30 days.
  4. It passes in sandbox and fails only in production, a known Salesforce platform limitation.
Show answer

Answer: B

A. It passes, because overall coverage exceeds 75% and coverage per trigger is not checked separately.Incorrect. Trigger coverage is checked on its own; a 0% trigger fails validation and deployment regardless of overall coverage.
B. It fails, because every Apex trigger in the org needs some code coverage (above 0%), even when overall coverage is above 75%. ✓Correct. Alongside the 75% overall rule, Salesforce requires some coverage on every trigger, so a trigger at 0% fails the validation.
C. It passes with a warning, letting the admin deploy as long as the coverage is fixed within 30 days.Incorrect. There is no warning-and-grace-period option; 0% trigger coverage fails validation immediately.
D. It passes in sandbox and fails only in production, a known Salesforce platform limitation.Incorrect. Per the source, the coverage check applies the same way in both environments; this is not a known sandbox/production discrepancy.

Why: Production deployment enforces two coverage rules: at least 75% across all Apex, and more than 0% on every Apex trigger. Breaking either one fails the deployment, so a single untested trigger blocks it no matter how high the overall figure is.

Find out if you're ready to pass

Take the free Platform Administrator II diagnostic: 20 questions, no account needed. Then unlock all 180 questions, full practice exams and the study guide.

Start the free diagnosticSee plans

Other sections of this exam