CTA Q&A Flashcards
What Governance?
Setup Steering Committee who owns Vision, Strategy, Provides prioritisation, oversee project budgets and act as a final escalation point. It includes IT Leaders/ CIOs/ Directors across BUs and IT and Program/Project, Managers
Set up COE governance consisting of the executive sponsor, Prog team, Arch, Business and they define standards, Manages demand intake, Release Manage.
Setup ARB which includes SF Architects, EA other Arch. They define Project architectural and design stds and provide advice to Project Team
bullk api v2 - hows it different?
Bulk API 2.0 allows for:
*Easy-to-monitor job status.
*Automatic retry of failed records.
*Support for parallel processing.
*Auto batch management.
*All OAuth flows supported vs not supported (Need to use SOAP Login or get session id from OAuth flow then use it)
*CSV file format vs CSV, XML, JSON etc supported
*150 MB file size vs 10 MB file size
What is a Signed Request?
The Signed Request is a JSON object signed with HMAC SHA-256 and a shared secret. The request contains the consumer key, access token, the file ID/URL, timestamp and any other required contextual information. Example Request:
POST https://efnolfiles.farmers.com/download-file
Header->signed_request: 9Rpl6rE7R2bSNjoSfYdERk8nffmgtKQNhr5U/5eSJPI=.eyJjb250ZXh0Ijp7InVzZXIiOnsibGFuZ3V….
How to import Articles
before you can import Knowledge Base, you must first create a .csv file, a .properties file, and then a zip file.
It can have translation article too.
How to set up JWT token from Mule to SF?
- from SF generate certificate
- download the public key certificate and set up Connect app with it with Oauth setting
- pre-approval integration user profile/PS for this connected app
- Export the Key Store from SF and save it in Mule’s API app
- In Mule’s app SF connection setting, point to the keystore file and its password and save the client ID from the connected app, principle is Integration User account, as well as set SF Token endpoint
What is Apex Continuations?
Apex Continuations are a mechanism provided by the Salesforce platform that allow you to make asynchronous long-running requests to an external Web Service. This is not counted as maximum 10 concurrent synchronous callout which lasts more than 5 seconds
How to set up JWT token from Salesforce to Other web service?
- from SF generate certificate
- download the public key certificate
- Set up a client app in API gateway and load the public key certificate into trust store
4 Create a named credential, JWT token exchange for named principal - Issuer = client ID from the client App, subject = user, endpoint URL to the webservice address
- call out using named credential
Salesforce Concurrency
For inbound calls through SOAP/REST APIs, it is 25 concurrent calls with a duration of 20 seconds or longer.
For outbound Apex callouts with more than 5 seconds, you can only have 10 concurrent callouts at max.
Note. callout time is not counted
Quip Integration with Salesforce?
Creates Quip auth. provider
Creates Quip external data source
Creates Quip permission set
Creates Quip Integration Object Access permission set
Assigns Quip external data source to new permission sets
Configures Files Connect
Salesforce Security in Session Management?
1 Session Setting
2 Caching
3 Identity Verification
4 Clickjack Protection
5 Cross-Site Request Forgery (CSRF) protection
6 Content Security Policy (CSP) protection
7 Lightning Locker and Lightning Web Security (Beta)
8 XSS Protection
9 Content Sniffing Protection
10 Referrer URL Protection
11 Redirections
12 Session Security Levels
Transaction Security Actions and Notifications
1 Block
2 MFA challenge
3 Email Notification
4 In-app Notification
AWS Signature Version 4 Named Credential
Require AWS Access Key ID, AWS Secret Access Ke, AWS Region and AWS Service
Translation Workbench?
Use Translation Workbench to maintain translated values for metadata and data labels in your Salesforce org. Specify languages for translation and assign translators for each language.
Manage translated values for any Salesforce supported language.
Translators can maintain translations directly through the workbench, or you can export translation files for bulk translation imports.
Person Account?
SF Data model to implement B2C relationship.
It can’t be linked in a direct relationship to other accounts or they can’t be part of account hierarchy or they need to be manually enabled and once enabled they can’t be disabled
Contact OWD has to be Private or CBP,
some AppX packages may not support PA
storage - stored as Contact and Account
can be merged with only other PAs
Lead conversion - if Lead has Company field, then it will be converted to Biz Account
What to know about Asset?
1 Need turn on Asset Sharing from Asset Setting to use Sharing rule
2 Asset doesn’t take up data storage
3 Asset can build up Hierarchy
4 Asset Relationship object
Multi-Language on Community Steps?
1, Set default language
2, Add languages and set its options
3, Export and prepare the content for translation or translate directly on the page
4, import translated content
5 Add language selector on pages for unauthenticated users.
Ratio of Community Login Based License
1-20; 1k monthly logins will provision 20k login license in the org
Platform Event Replay ID?
1, populated when event is delivered to subscribers
2, Replay ID values not guaranteed in sequence
3, setReply(), by default -1, receive new events; -2 receive all events
How to replay Platform Event for failed connection?
ESB stores replay ID. To catch up missed events, ESB re-subscribe with a specific replay ID saved
Outbound Message?
1, SOAP based server endpoint
2, Custom Service listener at endpoint to accept OM from SF and send back acknowlegement
3, only 1 object
4, 1 Single SOAP message can contain up to 100 notifications
5, Only the most up-to-date information is sent to provide idempotency
6, Support Mutual Authentication
7, Messages are retried independent of their order in the queue. This might result in messages being delivered out of order.
8 can’t build an audit trail using outbound messages.While each message should be delivered at least once, it might be delivered more than once. Also, it might not be delivered at all if delivery cannot be done within 24 hours. Finally, as noted above, the source object might change after a notification is sent but before it is delivered, so the endpoint will only receive the latest data, not any intermediate changes.
Critical Limit
- Number of synchronous concurrent transactions for long-running transactions that last longer than 5 seconds — 10
- Bulk 2.0 Maximum data load per day —- 150 Mil, 10k jobs
- Internal Role —10k, External Role-500k
- W2L - 500 p/d, W2C 5k p/d
- Concurrent API request calls to SF over 20 seconds - 25
- Platform Event Publish -250k, Event Delivery 50k, by default.
- Platform Event Add on - 100k additional for Delivery p/d, 3 mil additional p/m
- Platform Event Message size - 1MB
What license is required for omni-channel?
License options that enable Omni:
Service Cloud
Digital Engagement
Service Cloud Voice
Workforce Engagement Management
Licenses 2/3/4 above are add-ons which can be sold on top of Sales or Service cloud licenses
High level DocuSign flow - what objects are created and maintained by DocuSign.
how to detect user signed the document?
Envelope and Receipient; Receipient to track user sign process. Use Trigger on it for further automation. Writeback is to update SF record based on custom tag set from docusign in the document, not for tracking
What consists of Sharing Table Record?
ParentID, ObjectAccessLevel, RowCause, User or Group ID
What is in the Sharing Table?
Role Hierarchy is not; Only the record owner and users above the owner in the role hierarchy are granted Full Access to the record. It is not possible to grant other users Full Access; Best use Without Sharing Apex for Apex Sharing
MFA for FB only and not for LinkedIn
At profile level set up ‘Session security level at login’ for profile at ‘High Assurance’
At setup level ‘Session Settings’ –> FB Session security level to ‘Standard’ but Linked in as High Assurance
So when user logs in with FB (example) user will have Standard security on login and based on profile it will need high assurance so it will ask for MFA.
Class vs Platform encryption
128 AES vs 256 AES algorithm
Fields can be masked vs cannot be masked
Cannot encrypt standard fields vs can encrypt some standard fields
Cannot encrypt files vs can encrypt files, attachments and contents
Cannot search vs can search
Cannot be used in workflow/approval process vs can be used
API Whitelisting (via connected app)
On the connected App, add the trusted IP ranges to filter out access to connected app based on IP.
Describe UA flow embedded SSO.
“UA Flow with embedded SAML -
SP initiated F-SSO – SF generates SSO request along with RelayState
user is redirected to IdP
IdP authenticates user, generates SAML , redirects to SP (ACS URL)
SP validates assertions, creates SF session and redirects to RelayState (/authorize)
OAUTH flow resume”
How to select a currency for record?
Each record has the currencyISO option to select.
Difference between federation authentication and delegated authentication
federation authentication cannot choose a subset of users but delegate one can.
Major risk for Delegated Authentication is: the password or token will be transferred from the web. server needs to protect the password.
The objects that can have ‘Controlled by Parent’ OWD settings are
Order, Contact (Contact only has CBP and Private), Asset, Activity (only CBP and Private), a few channel program and Contact Point objects.
To allow community users see each other in discussions
Community User Visibility from Sharing Setting,
and Allow Community user see others in Community Administration both need to be selected.
Why use a custom Close Date (Locked Date) instead of the standard Close Date?
While the opportunity is open, the user can set the opportunity Close Date to any date. When setting the opportunity Stage to Closed Won, the Close Date gets set to the current date. When setting the Stage to Closed Lost, it is not changed to the current date, which will affect the 7-day requirement.
Lead Conversion
Lead conversion needs convert lead permission, and also need access to account, contact and opportunity
related items on the Opportunity detail page sometimes take a long time to load and the page freezes until the records are loaded.
Enable Separate loading of related lists
Reduce the number of related list
Reduce the number of records in troubled related list
Reduce the fields displayed in troubled related list
Use Single Related list component to display those in separate tabs
The Sales Manager wants the ability to put any created opportunities that are in the pipeline under freeze, if the customer has any credit health issues and is deemed to be red account.
Flow Before Trigger on Oppty to check its account status to set a Oppty Freeze custom field to True, Update Record Type to Locked RT
Create VR on both Oppty and Oppty Product to prevent record save by checking this field
Create Locked RT and Locked Layout, removing all related list buttons
Note: users can still edit standard fields and only hit error after save
When a complaint is open for more than 7 days, a chatter feed should be posted to the Regional Manager.
Flow After Trigger on Case (Type =‘Complaint’) with Schedule Action to check case status after 7 Days, post Chatter if Case is not Closed
Can’t use Case escalation rule as it only notifies via email
PB can achieve this but poor performance
Schedule Flow can also be considered but it has limited schedule options
Resetting of passwords for internal staff should be prevented in Salesforce.
Enable delegated authentication then
Enable ‘Is Single Sign-On Enabled’ permission for the internal users
This will automatically prevent password reset to users
Recommend a solution to secure access to Salesforce in the event the user loses his/her mobile device. (MFA)
revoke their mobile oauth session
remove mobile phone from user record
Reset Okta MFA for the user
Ask SF admin to generate Temp Verification Code setting exp. time 1h-24h
what feature to use to integration an native app with Salesforce?
Mobile SDK? Preferred
connected app in SF user agent oauth flow (SAML, SSO)
- API directly
what advantage of mobile SDK over custom integration solution
SDK provides authentication authorisation natively
Offline mobile sync smart store encrypted db all other mobile services community support(need understand more) push notification (need understand more)
Use a website to capture lead
web to lead function - 500 a day
pardot form – like event registration marketing landing form? custom API build if the volume is large app exchange product for advance features
In data migration, how to keep the original created date, modified date history?
contact salesforce to enable some auditing feature to allow updating those fields based on the source data.
Set Audit Fields upon Record Creation
In data migration, how to accomplish loading the historical auditing information
cannot insert history tracking object
can use big object to store it or use EA to load those information for analytics purpose
what is skinny table, and pros and cons?
Skinny table is a feature to ask SF to create which consolidate the regular used fields (standard and custom) for same object to a dedicated table in the backend so performance can be improved for LDV object.
Pros:
performance of query, reporting , list view should be improved can contain 100 fields, support encrypted fields Full data sandbox can automatically have it after refresh
Cons:
developer type of sandboxes won’t have it - can contact SF Any field type change requires contact to SF to recreate it can’t get field from other objects maintenance overhead Read is better but DML is worse as SF needs to DML on two tables Only support a few Standard objects Account, Contact, Opportunity, Lead, and Case objects
SF file limit
2GB on desktop, 100 MB from mobile
Does In-app guidance support translation and what rich media supported?
Yes, via translation workbench. Pic and Video (Embed)
how to allow CC user to create account, contact and person account?
The only issue is the ownership. CC user can be the owner of contact but not the other two. So use a before RTFlow to assign the ownership to an internal user would be the solution.
For household model, a household account can be created behind the scene and associate two PAs with it. Using Sharingset user.account.householdaccount = xxx.account.householdaccount to share records
Can you create records via Rest API which has duplication rule enabled and trigger it?
No. DuplicateRuleHeader is only available in SOAP API which allows you to handle duplicate records properly.
How to allow Email send to be draft and approved before sending out?
1 enable ‘Email Draft Service’ from support setting
2 Create Send Action on Email Message object
3. Create Approval Process on EM object and use Send Action as final approval action.
How to make VF email for multi language?
- Create custom labels for each sentence you want to send, and provide a translation for every language you would like to send the emails in.
- Include the required custom labels into your Visualforce email template.
- Select the desired language for the language attribute of messaging:emailTemplate.
Lightning Locker Vs Lightning Web Security?
1 Cross-namespace component use
2 No need to use wrapper to interact with global objects to secure component
3 Improve Performance as it doesn’t use secure wrapper
4 Better support of 3party javascript
5 Compatible with standard javascript as it evolves
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/security_lwsec_locker_comparison
Owner Based Sharing Rule if Criteria is based on a queue?
Then it excludes the records owned by individuals in the queue, thus only share records owned by the queue. Therefore, need create a public group and use queue to contain it, and then use OBSR on this public group to share with same public group.
Or role as first option
How to get Question from Community to have faster response?
Enable ‘Question-to-Case’ in Support Setting
Moderators can use this ‘Escalate to Case’ action
Motivation mechanism on Community?
Enable gamification by setting up Recognition Badges and Reputation as well as leaderboard
SF JIT Controller Types?
Standard Controller (not apex). Can’t handle duplication.
Customised Controller (Apex) Auth.SAMLJitHandler
SF Connect Limit
20k call out per hour and 100k records returned per hour
SF Notification Limit
10k per hour
The Tax ID for the dealership should only be visible to Channel Managers and their management chain and every effort must be made to prevent inadvertent access to the Tax ID
Use an encrypted field. Not enough information to recommend Platform Encryption though you can make that case if you feel that CB needs/desires key management. Make sure the candidate understands that you can can’t include tax ID as part of a SOQL where clause. Field Level Security isn’t good enough since value could be accidentally shown as a result of bad apex code
how to create custom Auth. provider
1 set up an app with third party
2 create custom metadata type to store third party attributes
3 builder Apex class (AuthProviderPluginClass) to implement a custom auth provider
4 configure the Auth. Provider as Custom authentication provider with reg handler class from the step 3
5 update the app to use the callback URL generated by SF
What Device Mobile publisher doesn’t support?
Android tablet is not supported currently
Big object catches
1 Big objects support only object and field permissions.
2 Once you’ve deployed a big object, you can’t edit or delete the index. To change the index, start over with a new big object.
3 SOQL relationship queries are based on a lookup field from a big object to a standard or custom object in the select field list (not in filters or subqueries).
4 Big objects support custom Salesforce Lightning and Visualforce components rather than standard UI elements (home pages, detail pages, list views, and so on).
5 You can create up to 100 big objects per org. The limits for big object fields are similar to the limits on custom objects, and depend on your org’s license type.
6 Big objects don’t support transactions that include big objects, standard objects, and custom objects.
To support the scale of data in a big object, you can’t use triggers, flows, processes, and the Salesforce app.
Einstein Recommendation Builder
You can recommend anything (Recommended Items) to anyone (Recipients) by connecting two Salesforce objects. You can connect any two standard or custom Salesforce objects (including managed package objects).
with your one request being passed about to a multitude of processing consumers, how do we keep track of the transaction?
use a Correlation ID
Exceeding W2L limit solution?
Create LWC component and put it on any EC page that guest user can access. Ensure guest user profile has permission to create lead.
The allocation should happen based on the closest distance between the medical practitioner practice and the patient’s address.
Apex BT; Location based SOQL to calculate then assign case lookup field
Difference between High Volume EO and EO?
1 can’t write to High Volume EO as it doesn’t have record ID generated by Salesforce
Access via Lightning Experience
Access via the Salesforce mobile app
Appearance in Recent Items lists
Record feeds
Reports and dashboards
Writable external objects
Distribute Mobile Publisher App process
1 Request a Salesforce managing package for the app
2 Install the Salesforce managed Package
3 Request a Beta version of your app
4 Submit app for review or make changes
How is Shield Platform Encryption different from the out-of-the-box Classic Encryption solution?
Classic Encryption only lets you protect a special type of custom text field, which you create for that purpose (example: SS#,PCI-DSS). Shield Platform Encryption allows you to encrypt a variety of widely-used standard fields, along with some custom fields and files/attachments. Classic Encrypted custom fields use AES-128 bit keys while Platform Encryption uses HSM-protected AES-256 bit keys to encrypt/decrypt customer’s data.
Org strategy changes from Single org to multi-org, what need to be called out?
1 RH simplified, 2 LDV reduced 3, Governance, local COEs with central COP if the process are quite difference per org 4 security and visibility
For CC user to access the second master of a Junction object, they need be the owner of that record.
From Spring 22, CBSR can include records owned by CC users.
Account team on Person Account?
Yes, and it at least needs to be Partner license
TCRM Trending Limits?
1 Maximum number of trended datasets per user 5
2 Maximum number of rows per snapshot 100k
3 Maximum number of rows in the report to be trended 500,000 for admins, 100,000 for non-admins
4. Maximum total number of rows in a trended dataset 5 MM
5. Maximum monthly number of rows for all snapshots per org 40MM
5mil dataset, 40mil in a org. Doing trending within TCRM without using a report as source can overcome this. No row limit for TCRM
How does Marketing Cloud works with Multi Salesforce org scenario?
MC now can be upgraded to a Multi-Org account.
1. 1 BU connects to 1 SF Org, up to 5, otherwise performance degradation
2. Multi-BU can connect to same SF org, suitable for regions maintaining their own BUs in Single Org scenario
How sign request secures?
SF signs the sign request with client secrete and canvas app uses canvas sdk to verify.
what’s the only way to restrict user record access?
OWD, now also with restriction rule
Profile object edit permission vs Sharing Rule Read/Write Vs Sharing Group Read/Write
If profile object access is read only, users can only read even if sharing rule or sharing group give them Write access.
If profile object access is Edit, users can only edit a record if sharing rule also has Read/Write access. However it can always edit the record owned by a community users even if sharing set via sharing group gives it Read access only.
How to use Restriction Rule?
1, for draft, unpublished records, use restriction rule with Public read only OWD for the external users who can only see published records.
2. It can even hide detail object record in a M-D relationship.
3. For standard object, only contract, task, event are supported
4. Five rules per object