Which annotation makes an Apex class available as a RESTful web service?
A@HttpInvocable
B@RemoteAction
C@RestResource(urlMapping='/myService/*')
D@AuraEnabled(cacheable=true)
The values ‘High’, ‘Medium’, and ‘Low’ have been identified as common values for multiple picklists on different objects.
What approach can a developer use to simplify maintenance of the picklists and their values, while also limiting the values to only those mentioned above?
ACreate the Picklist on each object as a required field and select “Display values alphabetically, not in the order entered”.
BCreate the Picklist on each object and add a validation rule to ensure data integrity.
CCreate the Picklist on each object and select “Restrict picklist to the values defined in the value set”.
DCreate the Picklist on each object and use a Global Picklist Value Set containing the values.
How can a developer verify the test coverage of autolaunched Flows before deploying them in a change set?
AUse the Flow Properties page
BUse the Code Coverage Setup page
CUse the ApexTestResult class
DUse SOQL and the Tooling API
A Salesforce administrator created a flow named “accountOnboarding” by using Flow Builder. The flow must be embedded in an Aura component.
Which tag should a developer use to render the flow in that component?
Alightning-flow
Baura:flow
Clightning:flow
Daura-flow
QuestionQ6
Developer Fundamentals
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ7
Developer Fundamentals
QuestionQ8
Testing, Debugging, and Deployment
QuestionQ9
Developer Fundamentals
QuestionQ10
Developer Fundamentals
QuestionQ11
Process Automation and Logic
QuestionQ12
Testing, Debugging, and Deployment
QuestionQ13
Developer Fundamentals
QuestionQ14
Developer Fundamentals
QuestionQ15
User Interface
QuestionQ16
Testing, Debugging, and Deployment
QuestionQ17
Process Automation and Logic
QuestionQ18
Testing, Debugging, and Deployment
QuestionQ19
Process Automation and Logic
QuestionQ20
User Interface
QuestionQ21
Developer Fundamentals
QuestionQ22
Process Automation and Logic
QuestionQ23
Process Automation and Logic
QuestionQ24
Testing, Debugging, and Deployment
QuestionQ25
Developer Fundamentals
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Ad
Want a break from the ads?
Go ad-free and unlock Learn Mode, Exam Mode, AstroTutor AI and every premium tool — everything you need to walk in prepared, and confident.
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed-package application. One application module lets a user calculate body fat through the Apex class BodyFat and its calculateBodyFat() method. The product owner wants to ensure that consumers of the application can access this method when creating customizations outside the ISV’s package namespace.
Which approach should a developer use to ensure that calculateBodyFat() is accessible outside the package namespace?
ADeclare the class as global and use the public access modifier on the method.
BDeclare the class as public and use the global access modifier on the method.
CDeclare the class and method using the global access modifier.
DDeclare the class and method using the public access modifier.
A developer has an integer variable named maxAttempts. The developer must ensure that, once maxAttempts is initialized, it retains its value for the duration of the Apex transaction while allowing the variable's state to be shared across trigger executions.
How should the developer declare maxAttempts to satisfy these requirements?
ADeclare maxAttempts as a member variable on the trigger definition.
BDeclare maxAttempts as a constant using the static and final keywords.
CDeclare maxAttempts as a variable on a helper class.
DDeclare maxAttempts as a private static variable on a helper class.
A developer must create a baseline set of data—Accounts, Contacts, Products, and Assets—for a complete suite of Apex tests, so they can test isolated requirements for different Salesforce case types.
Which approach can efficiently generate the required data for every unit test?
AAdd @IsTest(seeAllData=true) at the start of the unit test class.
BUse @TestSetup with a void method.
CCreate test data before Test.startTest() in the unit test.
DCreate a mock using the HttpCalloutMock interface.
Universal Containers has an order system that uses an Order Number to identify orders for customers and service agents. Order records will be imported into Salesforce.
How should the Order Number field be defined in Salesforce?
AIndirect Lookup
BExternal ID and Unique
CLookup
DDirect Lookup
A developer is building a page that lets users create multiple Opportunities. The developer must determine the current user’s default Opportunity record type and set specific default values for that record type before inserting the record.
How can the developer determine the current user’s default record type?
ACreate the opportunity and check the opportunity.recordType, which will have the record ID of the current user’s default record type, before inserting.
BUse Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping () is true.
CQuery the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method?
DUse the Schema.userInfo.Opportunity.getDefaultRecordType () method.
Universal Containers needs to back up all data and attachments in its Salesforce org monthly.
Which approach should a developer use to satisfy this requirement?
ASchedule a report
BUse the Data Loader command line
CCreate a Schedulable Apex class
DDefine a Data Export scheduled job.
What should a developer use to correct a Lightning web component bug in a sandbox?
AForce.com IDE
BExecute Anonymous
CVS Code
DDeveloper Console
What are two methods a developer can use to obtain the status of an enqueued job for a class that implements the Queueable interface?
Choose two
AView the Apex Status page
BQuery the AsyncApexJob object
CView the Apex Jobs page
DView the Apex Flex Queue
Which annotation should a developer apply to an Apex method so that it can be wired to a property in a Lightning web component?
A@RemoteAction (cacheable=true)
B@AuraEnabled
C@AuraEnabled (cacheable=true)
D@RemoteAction
A developer is using Agentforce Dev Assistant, but inline autocomplete is unavailable.
What are two possible causes?
Choose two
AVSCode Inline Suggest is not enabled.
BTelemetry settings are misconfigured.
CAuto Completions are toggled off.
DVSCode has been idle for 1 hour.
What are two methods a developer can use to run tests in an org?
Choose two
AMetadata API
BDeveloper Console
CTooling API
DBulk API
Which action, by default, causes a before trigger to run for Accounts?
AImporting data using the Data Loader and the Bulk API
BUpdating addresses using the Mass Address update tool
CConverting Leads to Contacts
DRenaming or replacing picklists
What is written to the debug log if a QueryException occurs during a call to the aQuery method in the following example?
AQuerying Accounts.Custom Exception.
BQuerying Accounts.Query Exception.
CQuerying Accounts.Custom Exception.Done.
DQuerying Accounts.Query Exception.Done.
Which statement should be used so that certain records in a list can be inserted even when other records fail to insert?
Ainsert (records, false)
BDatabase.insert (records, true)
Cinsert records
DDatabase.insert (records, false)
As part of developing a new feature, a developer must build a responsive application that can respond to touch events and will run on stateful clients.
Which two technologies are built on a framework that fully supports this business requirement?
Choose two
AAura Components
BVisualforce Components
CLightning Web Components
DVisualforce Pages
Which two benefits result from using declarative customizations rather than code?
Choose two
ADeclarative customizations cannot generate run time errors.
BDeclarative customizations automatically generate test classes.
CDeclarative customizations generally require less maintenance.
DDeclarative customizations automatically update with each Salesforce release.
Universal Containers chooses to use purely declarative development to build a new Salesforce application.
Which two options can be used to create the business-logic layer for this application?
Choose two
ARecord-Triggered Flow
BValidation Rules
CBatch Jobs
DRemote Actions
In which two locations can a developer find status information for batch or future methods?
Choose two
AApex Jobs
BPaused Flow Interviews component
CDeveloper Console
DApex Flex Queue
A developer needs to import 500 Opportunity records into a sandbox.
Why should the developer use Data Loader rather than Data Import Wizard?
AData Loader runs from the developer’s browser.
BData Import Wizard can not import all 500 records.
CData Loader automatically relates Opportunities to Accounts.
DData Import Wizard does not support Opportunities.
Which three Salesforce resources are accessible from a Lightning web component?
Community Discussion