Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
A. ENUM
B. sObject
C. External ID
D. String
How can a developer set up a debug log on a specific user?
A. It is not possible to setup debug logs for users other than yourself.
B. Ask the user for access to their account credentials, log in as the user and debug the issue.
C. Create Apex code that logs code actions into a custom object.
D. Set up a trace flag for the user, and define a logging level and time period for the trace.
The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?
What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record? Select one of the following:
A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.
C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers
A. $Lightning.createComponent
B.
C. $Lightning.useComponent
D. $Lightning.use (Missed)
E.
A company wants to create an employee rating program that allows employees to rate each other. An employees average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task?
A. Create a trigger on the Rating object than updates a field on the Employee object.
B. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
C. Create a lookup relationship between the Rating and Employee object.
D. Create a master-detail relationship between the Rating and Employee objects.
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)
A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query case records in the org to get all values for the Status picklist field.
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?
A. Developer sandboxes
B. Scratch orgs
C. Full Copy sandboxes
D. Developer orgs
A Next Best Action strategy uses an Enchance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?
A. @InvocableMethod global static ListRecommendation getLevel(List
B. @InvocableMethod global static List> getLevel(List
C. @InvocableMethod global List> getLevel(List
D. @InvocableMethod global Recommendation getLevel (ContactWrapper input) { /*implementation*/ }
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List
A. Use variable binding and replace the dynamic query with a static SOQL. (Missed)
B. Use the escapeSingleQuote method to sanitize the parameter before its use. (Missed)
C. Use a regular expression expression on the parameter to remove special characters.
D. Use the @Readonly annotation and the with sharing keyword on the class.
A developer has javascript code that needs to be called by controller functions in multiple components by extending a new abstract component. Which resource in the abstract component bundle allows the developer to achieve this
A. Controller.js
B. Superrender.js
C. Rendered.js
D. Helper.js