Courseiva

SF-PD2 Testing, Debugging, and Deployment Practice Question

A developer is preparing to deploy a change set from a sandbox to production. The change set includes a new custom object, its fields, a Visualforce page, and an Apex controller. After uploading the change set, the developer notices that the custom object and fields are missing from the change set components. What is the most likely reason?

⚠ Common exam trap

The trap here is assuming that change sets automatically include dependent components like custom objects and fields when related components are added.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The custom object and fields were not explicitly added to the change set when it was created.

Change sets do not automatically include dependencies. When a developer adds a Visualforce page or Apex class, the associated custom object and fields are not added automatically. The developer must manually add each component. Therefore, the missing object and fields are due to them not being explicitly added during change set creation.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The change set was created in a sandbox that is not the source of the custom object and fields.

    Why it's wrong here

    Change sets are created in a sandbox and can include components from that sandbox. The source sandbox must be the one where the components exist. If the developer created the change set in a different sandbox, the components would not be available. However, the scenario does not indicate that; it simply states the components are missing, which is more likely due to not adding them.

  • ✓

    The custom object and fields were not explicitly added to the change set when it was created.

    Why this is correct

    Change sets require manual selection of components. Even if the custom object and fields are referenced by other components, they are not automatically included. The developer must add them individually. This is the most likely reason they are missing. The other components (Visualforce page, Apex controller) were added, but the object and fields were overlooked.

  • ✗

    The custom object and fields are only available in the sandbox and cannot be deployed to production.

    Why it's wrong here

    Custom objects and fields can be deployed to production via change sets. There is no restriction that prevents them from being deployed. This option is incorrect because it falsely claims they are sandbox-only. The real issue is that they were not included in the change set.

  • ✗

    The custom object and fields were not added to the change set because they are not supported in change sets.

    Why it's wrong here

    Custom objects and fields are supported in change sets. The issue is not that they are unsupported; rather, they must be explicitly added to the change set. The developer likely forgot to include them when creating the change set. This option incorrectly states that they are not supported, which is false.

About these practice questions

One of 226 original SF-PD2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Salesforce exam blueprint

This SF-PD2 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SF-PD2 exam.