SF-PD2 Testing, Debugging, and Deployment Practice Question
Exhibit
{ "policy": "deny_all", "action": "deploy", "target": "prod" }Refer to the exhibit. A developer encounters this policy during a deployment attempt via the CI/CD pipeline. What does this indicate about the deployment process?
⚠ Common exam trap
Exam candidates often misinterpret deployment governance policies as syntax bugs or expired user credentials rather than pipeline rules.
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 deployment is being blocked by a governance policy.
The JSON policy indicates that the environment is locked against direct deployment actions, likely as a security measure to prevent unauthorized changes. This requires the developer to use a standard release path, such as moving code through a staging environment or obtaining specific approvals. Understanding these governance policies is crucial for maintaining compliance and security in large-scale enterprise deployments.
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 developer needs to increase the CI/CD pipeline timeout.
Why it's wrong here
A timeout error occurs when a process takes longer than the allowed limit. A policy-based denial is a security configuration issue, not a performance issue. Adjusting timeouts will not override the explicit 'deny_all' policy that is preventing the deployment from proceeding to the production environment.
- ✓
The deployment is being blocked by a governance policy.
Why this is correct
The JSON output is a clear indicator that a security policy is actively blocking the action. The 'deny_all' policy ensures that no direct deployments are permitted to production, forcing developers to follow a secure, compliant path such as a pull request process or a release manager approval.
- ✗
The source code has syntax errors preventing the deployment.
Why it's wrong here
Syntax errors would result in a compilation error message, not a policy-based denial. This JSON output clearly signifies a governance restriction, not a code-level failure. The deployment is being stopped before the code is even evaluated for syntax, due to the overarching organizational security rules.
- ✗
The Salesforce org is currently in read-only mode.
Why it's wrong here
Read-only mode for an org is a temporary status usually associated with maintenance windows. It would result in a system-level error message, not a structured policy-based refusal in JSON format. The current error is a standard indicator of a defined CI/CD security policy in effect.
Visual reference
About these practice questions
This SF-PD2 question is part of Courseiva's 226-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.