Take this test with no time limit and a set of 15 questions to check your preparation readiness for the Platform Dev I Certification Exam.
Would you encourage my sore eyes to make more mocks with some coffee?
0 of 15 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 15 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
A developer needs to prevent the creation of request orders when certain conditions exist in the system. A requestlogic class exist to check the condition.
What is the correct implementation ?
A developer wants to retrieve the contacts and user with the email address ‘dev@uc.com’.
Which SOSL statement should the developer use ?
Given the following anonymous block:
List
For(Case thisCase : [Select Id, Status FROM Case LIMIT 50000]){
thisCase.Status =”Working”;
casestoUpdate.add(thisCase);
}
try{
Database.update(casestoUpdate, false);
}catch(Exception e){
System.debug(e.getMessage,());
}
What should a developer consider for an environment in that has over 10,000 case records ?
List
for(Case thisCase :[Select Id, Status FROM Case LIMIT 50000]){
thisCase.Status =’Working’;
casesToupdate.add(thisCase);
}
try{
Database.update(casestoUpdate,false);
}catch(Exception e){
System.debug(e.getMessage());
}
What should the developer consider for an environment that has over 10000 Case records?
Which code in a visualforce page and/ or controller might present a security vulnerability?
Which statement generate a list of leads and contact that have a field with the phrase “ACME” ?
Developer must create a draw list class that provide capabilities defined in the sortable and drawable interfaces.
Public interface table {
void sort ();
}
public Interface drawable{
}
Which is the correct implementation ?
A developer is tasked to perform security review of the contactsearch Apex class that exist in the system. Within the class the developer identifies the following method as a security threat :
List
return Database.query(SELECT Id,FirstName,LastName FROM Contact WHERE LastName Like
%’+lastName+’%’);
}
What are the two ways the developer can update the method to prevent SOQL injection attack ?
Choose 2 answer
A developer created a visualforce page and custom controller to display the account type field as shown below :
Custom controller code:
public class customCtrl{
private Account theAccount;
Public string actType;
public customctrl () {
theAccount =[ SELECT Id, TYPE FROM Account
WHERE Id = :ApexPages.currentPage().getParameter().get (‘id’)];
actType =theAccount.TYPE;
}
}
Visualforce page snippet:
The account type is {!actType}
the value of the account type field is not being displayed correctly on the page. Assuming the custom control is properly referenced on the the visualforce page, what should the developer do to correct the problem?
The following Apex method is a part of the ContactService class that is called from a trigger:
public static void setBussinessUnitToEMEA(Contact thisContact) {
thisContact.Bussiness_Unit__c = ‘EMEA’ ;
update thisContact;
}
how should the developer modify the code to ensure best practice are met ?
A dveloper is debugging the following code to determine why accounts are not being created.
Account a = new Account (Name = ‘A’);
Datebase.insert(a, false);
How should the code be Altered to help debug the issue ?
What is the maximum number of SOQL queries used by the following code ?
List
for(Account a :aList){
List
}
Which three code line are required to create a lightning component on a visualforce page ?
Choose 3 answers
An approval process is defined in the Expense_Item__c object. A bussiness rule dictataes that whatever a user changes the status to ‘submitted’on an ‘Expense’_Report__c record,all the Expense_Item__c records related to the expense report must enter the approval process individually.
Which approve should be used to ensure the business requirement is met ?
A custom picklist field,Food_Preference__c,exists on a custom object.
The picklist contain the following option: ‘Vegan’,’kosher’,’No prefernce’.
The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved ?