Testing, Debugging and Deployment 4 Flashcards

(12 cards)

1
Q

Sending and receiving change sets can be done between which of the following? Choose 2 answers.

A. Developer Sandbox to Production
B. Developer Edition to Developer Edition
C. Sandbox to Sandbox
D. Developer Edition to Production

A

A, C
✅ A. Change sets can be sent from a sandbox to a production org if they are part of the same Salesforce organization.

✅ C. Change sets can also be used between sandboxes, like from a development sandbox to a QA sandbox.

❌ B. Developer Editions are standalone environments and not connected, so change sets cannot be used between them.

❌ D. Developer Edition to Production is not supported for change sets — use Salesforce DX, CLI, or Metadata API instead.

🔗 Deploy Changes with Change Sets
🔗 Trailhead: Change Set Development Lifecycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are valid considerations when deciding whether to use change sets or Salesforce CLI? Choose 2 answers.

A. Like change sets, Salesforce CLI can deploy metadata between related orgs only
B. Deployments can be scripted and scheduled with Salesforce CLI
C. Change sets are preferable for repetitive large deployments to multiple environments
D. Change sets are cloud-based and do not require files to be downloaded locally

A

B, D
✅ B. Salesforce CLI supports scripting and automation, making it ideal for scheduled or CI/CD-based deployments.

✅ D. Change sets are fully cloud-based, configured within the Salesforce UI, and don’t require any local metadata downloads.

❌ A. Unlike change sets, Salesforce CLI can deploy to unrelated orgs as long as you have credentials or auth set up.

❌ C. Change sets are manual and slow, and not suitable for repetitive large deployments — CLI or packages are better.

🔗 Salesforce CLI Documentation
🔗 Trailhead: App Deployment with Salesforce CLI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sarah is trying to debug the automation behavior of an object which has a process and an escalation rule defined. The object does not have any associated Apex code defined. Which log event types should she set to a more detailed level to help her debug the problem? Choose 2 answers.

A. Apex Code
B. Workflow
C. Database
D. Validation

A

B, C
✅ B. Workflow logs are essential to capture automation events triggered by Process Builder and Escalation Rules, as both are processed under the workflow engine.

✅ C. The Database log event provides visibility into what records are created, updated, or deleted — useful for verifying the effects of automation.

❌ A. Apex Code is unnecessary since there is no Apex involved in this scenario.

❌ D. Validation is not directly relevant, as the problem is tied to automation and not rule enforcement.

Events related to processes and escalation rules both use the Workflow log event to record data. Setting the Database event might also provide information about what data is being stored in the database. Validation events provide data about validation rules. Apex Code events are only helpful when Apex code is involved.

🔗 Salesforce Debug Log Event Types
🔗 Debug Log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A developer is exploring the capabilities of Tooling API while working on the development of an app. Compared to the metadata API, which of the following is more of a typical use case for Tooling API?

A. Creating the definition of a custom object
B. Using ApexLog to access a debug log
C. Deploying configurations using an XML file

A

B
✅ B. Tooling API is commonly used to access ApexLog records and fetch debug logs, which is essential during active development and debugging.

❌ A. Creating custom objects is handled through the Metadata API, not Tooling API.

❌ C. Deployments using XML files (like package.xml) are part of the Metadata API workflow.

🔗 When to Use Tooling API
🔗 Understanding Metadata API

Which API Do I Use?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A developer working for Cosmic Solutions would like to propagate the deletion of a custom object from a developer sandbox to the production org used by the company. Which Salesforce feature or tool can be used for this requirement?

A. Data Loader
B. Unmanaged Package
C. Change Set
D. Salesforce CLI

A

D
✅ D. Salesforce CLI supports destructive deployments via destructiveChanges.xml, allowing deletion of metadata like custom objects, fields, layouts, etc. across environments.

❌ A. Data Loader is only for data — not metadata or object structures.

❌ B. Unmanaged packages can’t manage deletions or updates after deployment.

❌ C. Change Sets do not support deleting metadata — only additions and modifications.

🔗 Salesforce CLI Setup Guide
🔗 project convert source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is true in the change set development model?

A. Salesforce CLI is used to deploy changes from a sandbox org to the production org.
B. A deployment connection is established between a Developer edition org and production org.
C. A code repository serves as the source of truth and used to track changes made to the org.
D. Declarative and programmatic changes are performed and tested in sandbox orgs.

A

D
✅ D. In the change set development model, changes are made and tested in sandbox orgs before being deployed to production via change sets.

❌ A. The CLI is used in the source-driven model, not with change sets.

❌ B. Change sets only work between related orgs, like sandbox → production. Not with Developer Edition.

❌ C. Using a code repository as the source of truth is part of source-driven development, not change set-based workflows.

🔗 Aprender a probar, desarrollar y publicar versiones
🔗 Trailhead: Change Set Development Lifecycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Joyce is a Salesforce developer who has recently started working for Cosmic Shipping Services. For various reasons, the Apex code coverage in the company’s production org has dropped below 75%, and a plan is being made to fix this. Joyce has just completed an unrelated and urgent change in an Apex class, which needs to be deployed to the production org. She has written a test class that covers 97% of the class she has updated. What should she do to successfully deploy the change set containing the Apex class?

A. Temporarily disable Apex code coverage checks until the deployment completes.
B. Submit a support case to Salesforce to allow the change set to be deployed without sufficient code coverage.
C. Select ‘Run specified tests’ and enter the name of the test class.
D. Use the Developer Console to update the code in the production org directly.

A

“C
✅ C. By selecting ‘Run specified tests’ and specifying the test class that covers the updated class, Joyce ensures that only that class’s coverage is evaluated, not the org-wide average — which allows deployment even if the org is under 75%.

❌ A. There is no way to disable Apex coverage checks in production.

❌ B. Salesforce does not approve support cases for bypassing required coverage.

❌ D. Direct changes in production are not allowed if coverage falls below 75%.

🔗 Monitor Deployments
🔗Running a Subset of Tests in a Deployment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which environment would be the most appropriate to perform a test deployment and final regression testing, as well as stress and performance testing?

A. Development
B. Production Support
C. Quality Assurance
D. Staging

A

D
✅ D. The Staging environment closely mimics production and is ideal for final regression testing, stress testing, and deployment validation before going live.

❌ A. Development is used for initial builds and unit testing, not regression or performance.

❌ B. Production Support is intended for emergency fixes, not for testing.

❌ C. QA is good for functional testing, but often lacks real-world data conditions or full configurations.

🔗 Sandbox Types and Templates
🔗

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A Salesforce developer would like to be familiar with the different org types in order to identify the available options when choosing an org for a new project. Which of the following are valid org types in Salesforce? Choose 3 answers.

A. Scratch Pro org
B. Partner Developer Edition org
C. Scratch org
D. Trial Production org
E. Enterprise Developer Edition org

A

B, C, D
✅ B. Partner Developer Edition org is used by Salesforce partners for app development and testing with partner-level access.

✅ C. Scratch orgs are temporary orgs created using Salesforce DX for agile development and testing.

✅ D. Trial Production orgs simulate production orgs and are used for demos or evaluations.

❌ A. “Scratch Pro org” is not a valid Salesforce org type.

❌ E. “Enterprise Developer Edition org” is not an official org type.

🔗 Developer Edition or Sandbox Environment?
🔗 Manage Scratch Orgs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A company needs to deploy its metadata from one environment to another. What are the recommended tools that can be used in this scenario?

A. Salesforce CLI, Mass Transfer Records, and Code Builder
B. Mass Transfer Records, Data Loader, and Visual Studio Code
C. Change sets, Salesforce CLI, and Visual Studio Code
D. Data Loader, Code Builder, and Change sets

A

C
✅ C. To deploy metadata, Salesforce supports:
- Change sets for point-and-click deployments between related orgs,
- Salesforce CLI for automated/scripted deployments,
- Visual Studio Code as a development IDE with Salesforce DX support.

❌ A/B/D include tools like Mass Transfer Records and Data Loader, which are used for data operations, not metadata.

Change sets, which are accessed via the Salesforce user interface, are used to deploy changes between related environments such as a sandbox org and its production org, or another sandbox org.

Salesforce CLI, which is a command-line interface built on top of the Metadata API, Salesforce Extensions for Visual Studio Code, and Code Builder are recommended and modern tools that can be used for migrating metadata between related or unrelated orgs.

The Mass Transfer Records tool is used for transferring records in bulk from one owner to another. Data Loader is used for importing or exporting records and not for migrating metadata.

🔗 Choose Your Tools for Developing and Deploying Changes
🔗 Trailhead: App Deployment with Salesforce CLI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A developer would like to test his code with a sample of live data every week. He needs a room for a maximum of 4GB amount of data, including reports. Which type of sandbox should he use?

A. Partial Copy Sandbox
B. Production
C. Full Sandbox
D. Developer Sandbox

A

“A
✅ A. Partial Copy Sandbox is ideal for testing with real data samples and supports up to 5 GB of storage. It also allows weekly refreshes and includes data via templates, making it the best fit for this use case.

❌ B. Production is not a sandbox and should never be used for testing or development.

❌ C. Full Sandbox is more suited for UAT and full data replication, with a long refresh interval (29 days).

❌ D. Developer Sandbox has only 200 MB of data storage and n

A partial copy sandbox can be refreshed with a sample of production data every 5 days and can store up to 5GB of object records, Documents, and Attachments and a maximum of 10,000 records per selected object. A full copy sandbox can only be refreshed every 29 days. A developer or developer pro sandbox does not have any production data when refreshed.

Sandbox Licenses and Storage Limits by Type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In which of the following operations does Salesforce recommend using a full copy sandbox? Choose 2 answers.

A. Training
B. Integration Testing
C. Staging
D. Performance and Load Testing

A

C, D
✅ C. Staging is an ideal use case for Full Sandboxes as it allows full-scale simulation of production environments for UAT and final validations.

✅ D. Performance and Load Testing require production-like data volumes and behavior, which Full Sandboxes provide.

❌ A. Training does not typically require a full replica of production and can be done in Partial or Developer Pro sandboxes.

❌ B. Integration Testing does not necessarily require full data and can be done in smaller sandbox types.

🔗 Sandbox Types and Templates
🔗

How well did you know this?
1
Not at all
2
3
4
5
Perfectly