In this blog post, we have mentioned sample practice questions for Salesforce platform developer 1 certification.
16.
Which three tools can deploy metadata to production?
Choose
3 answers.
a. Force.com IDE.
b. ChangeSet from
Sandbox.
c.
ChangeSet from Developer Org.
d.
Data Loader.
e. Metadata API.
17. Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?
a. The API name is
not changed and there are no other impacts.
b.
The API name of the field and the reference in the test class is updated.
c.
The API name of the field and the reference in the test class is changed.
d.
The API name of the field is changed, and a warning is issued to update the
class.
18.
How should a developer make sure that a child record on a custom object, with a
lookup to the Account object, has the same sharing access as its associated
account?
a.
Create a Sharing Rule comparing the custom object owner to the account owner.
b. Ensure that the
relationship between the objects is Master-Detail.
c.
Create a Validation rule on the custom object comparing the record owners on
both records.
d.
Include the sharing related list on the custom object page layout.
19.
Which SOQL query successfully returns the Accounts grouped by name?
a.
SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name.
b.
SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name.
c.
SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5.
d. SELECT Name,
Max(CreatedDate) FROM Account GROUP BY Name.
20.
A developer is asked to create a PDF quote document formatted using the
company’s branding guidelines, automatically save it to the Opportunity record.
Which
two ways should a developer create this functionality?
Choose
2 answers
a.
Create an e-mail template and use it in Process Builder.
b.
Create a visual flow that implements the company’s formatting.
c. Install an
application from the AppExchange to generate documents.
d. Create a
Visualforce page with custom styling.
21.
Which two strategies should a developer use to avoid hitting governor limits
when developing in a multi-tenant environment?
Choose
2 answers
a.
Use variables within Apex classes to store large amounts of data.
b.
Use collections to store all fields from a related object and not just
minimally required fields.
c. Use SOQL for
loops to iterate data retrieved from queries that return a high number of rows.
d. Use methods from
the “Limits” class to monitor governor limits.
22.
What are three characteristics of static methods?
Choose
3 answers
a. Initialized only
when a class is loaded.
b.
A static variable is available outside of the scope of an Apex transaction.
c. Allowed only in
outer classes.
d.
Allowed only in inner classes.
e. Are NOT
transmitted as part of the view state for a Visualforce page.
23.
How should a developer create a new custom exception class?
a. public class
CustomException extends Exception{}.
b.
public class CustomException implements Exception{}.
c.
CustomException ex = new (CustomException)Exception();
d.
(Exception)CustomException ex = new Exception();
24. A newly hired developer discovers that there are multiple triggers on the case object.
What
should the developer consider when working with triggers?
a. Trigger
execution order is not guaranteed for the same sObject.
b.
Trigger execution order is based on creation date and time.
c.
Unit tests must specify the trigger being tested.
d.
Developers must dictate the order of trigger execution.
25. Which three options allow a developer to use custom styling in a Visualforce page?
Choose
3 answers
a. <apex:
stylesheet> tag.
b.
<apex: style> tag.
c. A static
resource.
d.
<apex: stylesheets> tag.
e. Inline CSS.
26. A developer writes the following code:
List<Account>
acc = [SELECT Id FROM Account LIMIT 10];
Delete
acc;
Database.emptyRecycleBin
(acc);
System.
Debug (Limits.getDMLStatements () +’, ‘+
Limits.getLimitDMLStatements () );
What
is the result of the debug statement?
a.
2,200.
b.
1,150.
c.
1,100.
d. 2,150.
27.
What are two features of Heroku Connect?
Choose
2 answers
a.
Displaying data from an external data store via External Objects.
b. Real Time Sync
between Salesforce and Postgres.
c. Bidirectional
syncs, allowing data to be written into SFDC.
d.
Near Real Time Sync between Heroku Postgres and Salesforce.
28. How can a developer set up a debug log on a specific user?
a.
Ask the user for access to their account credentials log in as the user and
debug the issue.
b.
Create an Apex code that logs code actions into custom objects.
c. Set up a trace
flag for the user, and define a logging level and time and period for the
trace.
d.
It is not possible to setup debug logs for users other than yourself.
29. Which two Apex data types can be used to reference a salesforce record ID dynamically?
Choose
2 answers
a. External ID.
b.
Subject.
c.
ENUM.
d. String.
30. what should a developer use to implement an automated approval process submission for the case?
a.
Workflow rules.
b.
Scheduled apex.
c. Process builder.
d.
An assignment rules.
0 Comments