Build Solution Flashcards
Cosmic Travels uses a Workforce Management System (WFM) for performance management. When a performance review record is created for a particular employee in the system, a corresponding review record should be automatically created for the employee in Salesforce. An Apex web service is being developed in Salesforce for this use case. A custom process in the WFM system can call the web service automatically when a new performance review record is created. However, the developer is concerned about the possibility of errors and record duplication when the web service is called by the custom process. What should be recommended by the company’s Solution Architect to ensure that the integration is resilient?
Choose 1 answer.”
A. Use the Salesforce SOAP API instead of the Apex web service.
B. Use a middleware tool to retry calls to Salesforce that result in errors.
C. Implement a custom retry mechanism in the custom process used by the WFM system.
C
Cosmic Lights has a RESTful service in its employee management system that is used by a system administrator to perform operations such as getting a list of employee records, creating a new employee record, and updating the information of an existing employee. The company’s HR director would like to make these operations available to HR managers via a custom user interface in Salesforce. For this requirement, which of the following considerations apply to the use of a custom Lightning web component associated with an Apex controller?
Choose 1 answer.
A. REST callouts can be performed using HTTP methods such as GET, POST, and PUT.
B. The built-in Http class can be used to handle the response of a REST/HTTP request.
C. A CSP Trusted Site must be defined for the web service endpoint for the Apex callout.
A
A global sales company needs to have the capability to push bulk data from its org to a third-party business intelligence platform. To handle errors when sending data to the third-party platform, the implementation should include an error handling or retry mechanism. In its previous implementations related to other data integrations, a middleware has been used. Which of the following is a valid consideration regarding the requirement?
Choose 1 answer.”
A. External Services, which supports error handling or retry mechanisms out-of-the-box, should be used to push data in bulk
B. The middleware should perform the data sending, and the error handling or retry mechanism should be handled using Apex
C. Apex can be used to push bulk data to the external system, but an error handling or retry mechanism needs to be developed
C
A company uses Shield Platform Encryption to secure sensitive data in their records, which are stored in their org that is integrated with a third-party accounting platform for syncing records, including the secured data, using Change Data Capture. When data changes are made in the encrypted fields in Salesforce, change events are generated and stored in the event bus for up to three days. Which of the following actions should be performed to ensure that the sensitive data remains secure in the event bus?
Choose 1 answer.”
A. Set up a reverse proxy server to automatically encrypt change events payload.
B. Use the Apex Crypto class to ensure sensitive data is encrypted in the event bus.
C. Create an event bus tenant secret and enable encryption in Salesforce Setup.
C
Cosmic Service Solutions uses Salesforce for case management. A Lightning web component allows support supervisors to monitor various aspects of the support workflow. When a case is closed successfully by one of the support agents, an alert must be displayed to their supervisor in the Lightning web component. Using platform events with the latest version of Streaming API is being considered for this use case. Which of the following considerations is applicable?
Choose 1 answer.”
A. The Lightning web component must use the lightning/empApi module to subscribe to the event.
B. The platform event messages are stored for 24 hours and are not lost when a client is disconnected.
C. Socket timeout and reconnect timeout are applicable to the Salesforce authentication session.
A
A developer of Cosmic Express is writing Apex code for making a SOAP callout to an order management system for tracking customer orders. However, it has been identified that WS-Security is not supported in Apex SOAP callouts to external systems and poses a security risk. Which of the following options is an alternative recommended by Salesforce to address this limitation?
Choose 1 answer.”
A. Set up a reverse proxy server in order to secure and protect the client’s identity in the transaction.
B. Add WS-Security headers to the outbound SOAP request via the Apex Crypto class.
C. Inject WS-Security credentials into the transaction stream using a security/XML gateway.
C
The administrator of Cosmic Grocery is setting up an Experience Cloud site for the company’s customers. The site is being built using the ‘Customer Service’ template. Other than the default option that would allow customers to log in using the assigned username and password, which of the following options is available for authenticating the site’s customers?
Choose 1 answer.”
A. Unified Authentication
B. Certificate-Based Authentication
C. SAML Single Sign-On (SSO)
C
Cosmic Solutions uses an external payroll application that contains timesheets and pay data of employees. Employees can access basic information about their company role on their record in Salesforce. A custom object named Employee__c has been created. The HR director would like to give them access to the information in the payroll application which has a REST-based API. Which of the following is a valid consideration related to authentication for using an external service for this requirement?
Choose 1 answer.”
A. A certificate must be generated in Salesforce to authenticate an external service with the external system.
B. The Authorization header of the HTTP request handled by the external service must be defined using Apex.
C. The external service must use a named credential in order to authenticate and authorize requests.
C
A company that uses Salesforce manages a customer loyalty program and wants to use a flow to generate external object records when the membership status of a Contact record is updated. However, the new flow encountered an error as soon as a qualified contact was updated. Which of the following statements is valid for the given scenario?
Choose 1 answer.”
A. Flow Builder does not support external object records.
B. The record-triggered flow may have encountered a mixed DML error.
C. External object records should be created synchronously.
B
Cosmic Express uses a dedicated project management system (PMS) but recently started using a custom object named ‘Project__c’ in Salesforce for managing certain types of projects. Project records are automatically synchronized between Salesforce and the PMS using a batch data synchronization job. A project team can consist of several members. When a new team member is added to a project, information about their role and responsibilities is added to a ‘Text Area (Long)’ field on the project record in Salesforce. This information needs to be sent to the PMS automatically so that it can be stored on the corresponding project record in the external system. A SOAP endpoint can be configured in the PMS for this use case. Which of the following statements are valid regarding the use of outbound message actions in this scenario?
Choose 1 answer.”
A. The outbound message can be sent in the context of a Contact record.\n
B. The session ID can be sent in the outbound message to allow callbacks.\n
C. The generated WSDL defines the message that is returned by the PMS.
B
A company sends batches of records to Salesforce using Bulk API for processing. Upon checking the state of a job to determine if the operation has been completed in Salesforce, a "Failed" state was received for a batch. What does the failed state imply in the given scenario?
Choose 1 answer.”
A. The operation has not been completed, and processing of the records is still in progress
B. The operation has failed, but some of the records may have been processed successfully
C. The failed state indicates that all the records failed, and the batch needs to be resubmitted
B
A company in the education sector uses batch Apex to retrieve course, exam, and customer data updates from a web portal into their Salesforce org. Which of the following statements are valid regarding how errors can be handled or relayed when they occur in the batch Apex operation?
Choose 1 answer.”
A. Batch Apex can be configured to publish a platform event when errors occur
B. Errors can be relayed in the same transaction where the operation was initiated
C. Batch Apex has built-in error handling and will retry the operation when it fails
A
Cosmic Marketing Solutions uses Salesforce and has a Change Data Capture client that is subscribed to receive change events, which contain information about their company programs. However, the Change Data Capture client sometimes receives what is called a gap event instead of the expected change event when a qualifying record is updated in Salesforce. Which of the following is a valid statement regarding this type of event?
Choose 1 answer.”
A. The gap event is sent to notify the client that the change event will be delayed due to internal issues.
B. Salesforce is unable to publish the event message as the change event size may be too large.
C. The Change Data Capture client should use the gap event to re-authenticate itself with Salesforce.
B
An e-commerce website wants to perform load testing to determine how its applications would behave during user peak times due to their upcoming promotional campaign that is anticipated by thousands of customers globally. Which of the following statements related to the test is valid?
Choose 1 answer.”
A. The round-trip time of a request is measured and evaluated
B. The application hardware, database, or network will be adjusted
C. The tests should run one application at a time only
A
When a team of sales users at Cosmic Software Solutions needs to work on a new project, the assigned project supervisor creates a record of a custom object named ‘Project__c’ in Salesforce. The record is then created manually in the project management system (PMS) used by the company. The Sales Director would like to automate the record creation by integrating the two systems. When a record is created in Salesforce, record details need to be sent to the PMS so that the same record can be created in the other system automatically. The PMS has a RESTful service that can be used for record creation. Which of the following is a valid consideration for using a record-triggered flow that invokes an external service action to meet this requirement?
Choose 1 answer.”
A. An Apex action must be defined in the record-triggered flow to invoke the external service.
B. A remote site setting must be created to authenticate the external service endpoint.
C. The record-triggered flow can use an asynchronous path to invoke the action.
C