Platform Developer II Mock Test
Salesforce Certified Platform Developer II — Free Practice Exam
Progress: 0 / 50 answered
Scroll down & click Submit when done
1
Which design pattern ensures only one instance of a class is created and provides a global access point to it in Apex?
2
In the Apex Enterprise Patterns, which layer is responsible for encapsulating SOQL queries and abstracting data access from the service layer?
3
A developer needs to chain multiple Queueable Apex jobs so each one starts after the previous completes. What is the maximum depth of Queueable chaining in a synchronous context?
4
Which interface must a class implement to be used as a Batch Apex job that supports state across batch executions?
5
In LWC, which decorator is used to expose a component's property so it can be set by a parent component?
6
Which Apex design pattern allows you to define a family of algorithms, encapsulate each one, and make them interchangeable at runtime?
7
What is the purpose of Named Credentials in Salesforce integration?
8
Which SOQL technique should a developer use to avoid heap size limits when iterating over a large number of records in Apex?
9
In LWC Jest testing, which module is used to mock wire adapter responses?
10
Which Platform Event characteristic differentiates it from a standard custom object in terms of persistence?
11
To enforce CRUD and FLS checks in Apex code, which approach should a developer use in API version 56.0 and later?
12
What is the primary use of a Skinny Table in Salesforce?
13
Which integration pattern uses Salesforce Outbound Messaging to notify an external system when a record changes?
14
In Apex Enterprise Patterns, the Domain Layer wraps which object?
15
Which tool allows a developer to replay a transaction and step through Apex code line by line using actual logged data?
16
Which LWC lifecycle hook fires after the component is inserted into the DOM and all child components have rendered?
17
A developer wants to make a callout from a Batch Apex execute() method. What must the batch class implement in addition to Database.Batchable?
18
Which Custom Metadata Type advantage makes it superior to Custom Settings for storing configuration data that must be deployable via Change Sets or packages?
19
Which method in an LWC component is used to imperatively call an Apex method (not via @wire)?
20
Which approach is recommended for avoiding SOQL injection vulnerabilities when building dynamic SOQL queries in Apex?
21
Which Apex class is used to send a SOAP web service callout?
22
In an event-driven architecture using Platform Events, what ensures that a subscriber processes events at least once even if it goes offline temporarily?
23
Which statement correctly describes selective queries in Salesforce?
24
What is the Heroku Connect feature used for in a Salesforce-Heroku integration?
25
Which Apex pattern uses an interface to define object creation, allowing subclasses to decide which class to instantiate?
26
In LWC, how does a child component communicate an event to a parent component?
27
Which of the following is a valid trigger best practice in an enterprise trigger framework?
28
Which Apex annotation marks a method as available for callout from an external REST client?
29
What does the "with sharing" keyword enforce in an Apex class?
30
Which mechanism should be used to pass data between LWC components that are not in a parent-child relationship?
31
What is the default batch size for Database.executeBatch() if no size is specified?
32
Which Apex test annotation ensures a test method runs with a fresh governor limit context, isolated from other tests?
33
When does a Queueable Apex job run in relation to the transaction that enqueues it?
34
Which wire adapter retrieves metadata about a Salesforce object's fields in an LWC component?
35
What is the purpose of the @InvocableMethod annotation in Apex?
36
Which Salesforce security review requirement ensures that an AppExchange app does not access data beyond what is necessary?
37
Which Apex feature allows developers to mock HTTP callouts in unit tests without making actual callouts?
38
What is the maximum number of Apex classes and triggers that can be concurrently compiled/queued in Salesforce?
39
In a trigger framework, what is the purpose of a TriggerHandler base class?
40
What happens to uncommitted DML operations when an unhandled exception occurs in an Apex trigger?
41
Which governor limit is shared across all Apex code (triggers, classes) running in a single transaction?
42
Which Salesforce Connect adapter should be used to access data from an OData 4.0-compliant external system?
43
Which LWC feature enables a component to react to record changes made by other components on the same page without a full page reload?
44
Which Apex method is used to verify in a test that a specific exception type was thrown?
45
Which approach avoids hitting SOQL limits when a trigger on Opportunity needs to retrieve related Account fields?
46
What does the Apex Replay Debugger require to function?
47
In a Salesforce integration using REST, which HTTP method is idempotent and should be used to fully replace an existing resource?
48
What is a Continuation in Salesforce Apex used for?
49
Which approach should a developer use to prevent recursive trigger execution in a well-designed trigger framework?
50
Which Salesforce feature allows an LWC component to subscribe to real-time data changes published via Platform Events?
Answered 0 of 50 questions. You can submit at any time.