What are two considerations for deploying from a sandbox to production? Choose 2 answers
What are two considerations for deploying from a sandbox to production? Choose 2 answers
A . Should deploy during business hours to ensure feedback can be quickly addressed.
B . All triggers must have at least one line of test coverage.
C . least 75% of Apex code must be covered by unit tests.
D . Unit tests must have calls to the System.assert method.
Answer: B, C
Explanation:
When deploying Apex code to production, the following considerations are required:
Option B: All triggers must have at least one line of test coverage.
Salesforce mandates that every trigger has some test coverage.
Reference: "All Apex code must have 75% test coverage, and all triggers must have some test coverage in order to be deployed to production."
― Salesforce Help: Deployment Testing Requirements
Option C: At least 75% of Apex code must be covered by unit tests.
Salesforce requires that 75% of your Apex code is covered by tests.
Reference: "At least 75% of your Apex code must be covered by unit tests, and all of those tests must complete successfully."
― Salesforce Help: Deployment Testing Requirements Why Other Options Are Incorrect:
Option A: Deploying during business hours is not a technical requirement and may not be best practice due to potential impact on users.
Option D: While using System.assert is good practice, it’s not a strict requirement for deployment.
Latest DEX-450 Dumps Valid Version with 456 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund