SLM Integration and Automation 3 — Questions and Answers
Question 1: A hotel chain wants third-party partners to redeem loyalty points on behalf of members. Which API security model is most appropriate?
- Username-password OAuth flow with shared credentials
- Connected App with OAuth 2.0 JWT Bearer Token flow (Correct answer)
- Basic authentication using the admin account
- API key stored in URL query parameters
Correct answer: Connected App with OAuth 2.0 JWT Bearer Token flow
The OAuth 2.0 JWT Bearer Token flow supports server-to-server integration without user interaction and follows Salesforce security best practices for partner integrations.
Question 2: When configuring a Loyalty Management integration that must respect partner-specific point conversion rates, where should these rates be stored for dynamic retrieval?
- Hardcoded in the Apex integration class
- Custom Metadata Types accessible at runtime (Correct answer)
- CSV file uploaded to Salesforce Files
- Embedded in the Flow screen component
Correct answer: Custom Metadata Types accessible at runtime
Custom Metadata Types store configuration data that can be queried at runtime in Apex or Flows, making them ideal for partner-specific conversion rate management.
Question 3: Which Salesforce Loyalty Management object stores the record of points earned or spent during a transaction?
- LoyaltyProgramMember
- TransactionJournal (Correct answer)
- MemberCurrency
- LoyaltyPartnerProduct
Correct answer: TransactionJournal
The TransactionJournal object records each accrual or redemption event, capturing points amounts, activity dates, and related member information.
Question 4: A loyalty program integration fails intermittently due to API governor limits. Which strategy best mitigates this for high-volume accrual processing?
- Switch to synchronous Apex triggers for all transactions
- Use the Bulk API with asynchronous processing and retry logic (Correct answer)
- Increase the API limit by contacting Salesforce support immediately
- Process all transactions in a single synchronous REST call
Correct answer: Use the Bulk API with asynchronous processing and retry logic
The Bulk API processes large volumes of records asynchronously with built-in job monitoring, and retry logic handles transient failures without hitting synchronous governor limits.
Question 5: In a Loyalty Management Flow, which invocable action is used to check a member's current point balance before approving a redemption?
- getMemberBenefits
- getLoyaltyMemberCurrencies (Correct answer)
- checkRedemptionEligibility
- evaluateTierBenefits
Correct answer: getLoyaltyMemberCurrencies
The getLoyaltyMemberCurrencies invocable action retrieves the current balance of all currency types for a specified loyalty program member.
Question 6: Which event should trigger an automatic tier re-evaluation when a member's qualifying points cross a tier threshold mid-year?
- A nightly scheduled batch job only
- A real-time Platform Event published after each transaction journal entry (Correct answer)
- A weekly report run by the loyalty administrator
- A manual override by a customer service agent
Correct answer: A real-time Platform Event published after each transaction journal entry
Publishing a Platform Event after each TransactionJournal creation allows a subscriber Flow or process to immediately evaluate tier qualification without waiting for batch jobs.
Question 7: When integrating Loyalty Management with a mobile app, which Salesforce feature enables the mobile app to display real-time point updates without repeated API polling?
- Salesforce Reports API
- Streaming API via CometD long-polling (Correct answer)
- Bulk API asynchronous query
- Metadata API change tracking
Correct answer: Streaming API via CometD long-polling
The Salesforce Streaming API uses CometD long-polling to push data changes to subscribed clients in near real time, avoiding repeated polling.
A hotel chain wants third-party partners to redeem loyalty points on behalf of members.
Which API security model is most appropriate?