PD1 Integration Architecture 3 — Questions and Answers
Question 1: Which Salesforce API is BEST suited for loading millions of records from an external data warehouse into Salesforce?
- REST API
- SOAP API
- Bulk API 2.0 (Correct answer)
- Streaming API
Correct answer: Bulk API 2.0
Bulk API 2.0 is optimized for loading large volumes of data asynchronously with high throughput.
Question 2: What is the purpose of a Named Credential in Salesforce integrations?
- To store OAuth tokens inside Apex code
- To define the endpoint URL and authentication details for external callouts securely (Correct answer)
- To create inbound API endpoints for external systems to call Salesforce
- To manage connected app OAuth scopes
Correct answer: To define the endpoint URL and authentication details for external callouts securely
Named Credentials store the endpoint URL and authentication settings, removing hardcoded credentials from Apex code.
Question 3: An external system needs to subscribe to Salesforce record change events. Which API feature enables this?
- Bulk API
- Change Data Capture (CDC) (Correct answer)
- SOAP API query
- REST API polling
Correct answer: Change Data Capture (CDC)
Change Data Capture publishes change events when Salesforce records are created, updated, deleted, or undeleted, allowing external subscribers to react in real time.
Question 4: What is the recommended way to expose a custom Apex class as a REST web service?
- Use the @RestResource annotation with a urlMapping parameter on the class (Correct answer)
- Extend the webService keyword in the class declaration
- Use the @AuraEnabled annotation on the class
- Register the class as a Remote Action
Correct answer: Use the @RestResource annotation with a urlMapping parameter on the class
@RestResource(urlMapping='/myservice/*') on the class and @HttpGet/@HttpPost on methods expose Apex as a REST endpoint.
Question 5: A developer implements a callout in a Queueable class. How many callouts can a single Queueable job make?
- 1
- 10
- 100 (Correct answer)
- Unlimited within the HTTP callout governor limits
Correct answer: 100
A Queueable job can make up to 100 HTTP callouts, respecting the standard callout limits per transaction.
Question 6: When Salesforce acts as the OAuth 2.0 provider and an external app requests access, which flow is typically used for server-to-server integrations without user interaction?
- Authorization Code Flow
- Implicit Flow
- JWT Bearer Token Flow (Correct answer)
- Device Flow
Correct answer: JWT Bearer Token Flow
JWT Bearer Token Flow allows server-to-server OAuth 2.0 authentication without user interaction, using a signed JWT assertion.
Question 7: Which Remote Site Setting configuration is required before Salesforce Apex can make an outbound HTTP callout?
- The external URL must be added to Remote Site Settings or a Named Credential must be used (Correct answer)
- No configuration is needed; all URLs are allowed by default
- Only HTTPS URLs require Remote Site Settings
- Remote Site Settings are only required for SOAP callouts
Correct answer: The external URL must be added to Remote Site Settings or a Named Credential must be used
Every external endpoint URL must be whitelisted in Remote Site Settings or referenced via Named Credential before Apex callouts will succeed.
Which Salesforce API is BEST suited for loading millions of records from an external data warehouse into Salesforce?