Download Platform Developer 1 exam questions latest upload and more Exams Advanced Education in PDF only on Docsity!
1 / 68
Platform Developer 1 exam questions latest
upload
What is the benefit of the Lightning Component Framework? A. More pre-built components to replicate the Salesforce look and feel B. Better performance for custom Salesforce1 Mobile apps. C. More centralized control via server-side logic. D. Better integration with Force.com sites.: A. More pre-built components to replicate the Salesforce look and feel
Where can a developer call external javascript in a visualforce page. (Choose 2) A. B. C. D. 2 / 68 B. Add the user name to the Log Inspector C. Open the Progress tab in the Developer Console D.Open the Logs tab in the Developer Console: D. Open the Logs tab in the Developer Console
When Loading data into an org, what can a developer do to match records to update existing records? (Choose 2) A. Match an external Id Text field to a column in the imported file B. Match the Id field to a column in the imported file C. Match the Name field to a column in the imported file D. Match an auto-generated Number field to a column in the imported file.: A. Match an external Id Text field to a column in the imported file B. Match the Id field to a column in the imported file
What is the correct pattern to follow when programming in Apex on multi-tenant platform? A. Apex code is created in a separate environment from schema to reduce deployment errors. B. DML is performed on one record at a time to avoid possible data concur-rency issues. C. Queries select the fewest fields and records possible to avoid exceeding governor limits. D. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.: C. Queries select the fewest fields and records possible to avoid exceeding governor limits.
The sales management team requires that the Lead Source field of the Lead record be populated when a Lead is converted. What would a developer use to ensure that a user populates the LeadSource field prior to converting to a Lead? A. Validation rule B. Process builder C. Formula Field
4 / 68 if the current user will be able to create record on an object in Apex? A. By using the isCreatable() method B. By using the hasAccess() method C. By using the canCreatable() method D. By using the isInsertable() method: A. By using the isCreatable() method
- Which statement would a developer use when creating test data for prod-ucts and pricebooks? A. List objList= Test.loadData(Acccount.sObjectType, ',myResource'); B. IsTest(SeeAllData=false) C. Pricebook pb = new pricebook(); D. Id pricebookId = Test.getStandardPricebookId();: D. Id pricebookId = Test.getStandard-PricebookId();
- Which statement should a developer avoid using inside Procedural loops? (Choose 2) A. If(o.accountid = a.id) B. System.debug('Amount of CPU time (in ms) used so far:' + Lim-its.getCpuTime()); C. Update contactList D. List contacts = [select id, salutation, firstname, lastname, email from Con-tact where accountId = :a.Id]: C. Update contactList D. List contacts = [select id, salutation, firstname, lastname, email from Contact where accountId = :a.Id]
- A developer needs to know if all tests currently pass in a Salesforce environ-ment. Which feature can the developer use? Choose 2 answers. A. Salesforce UI Apex Test Execution B. Workbench Metadata Retrieval C. Developer Console D. ANT Migration Tool: A. Salesforce UI Apex Test Execution
5 / 68 C. Developer Console
- A hierarchy custom setting stores specific URL for each profile in sf. Which statement can a developer use to retrieve the correct URL for the current URl for the current user's profile and display this on a vf page? A. {!$Setup.Url_Settings c.URL c} B. {!$Setup.Url_Settings c[$Profile.Id].URL c} C. {!$Setup.Url_Settings_c.Instance[Profile.Id].URL c} D. {!$Setup.Url_Settings c[Profile.Id].URL c}: A. {!$Setup.Url_Settings c.URL c}
- What is a capability of the Force.com IDE? Choose 2 answers
7 / 68 a legacy system: A. Determine if a datetime field has passed using the NOW function
8 / 68 B. Determine which of three ditterent images to display using IF function E. Generate a link using the HYPERLINK function to a specific record in a legacy system
- In the lightning component framework, which resource can be used to fire events? A. Third-party Javascript code. B. Visualforce controller actions. C. Javascript controller actions. D. Third-party web service code.: C. Javascript controller actions. D. Third-party web service code.
- What is an important consideration when developing in multitenant envi-ronment? A. Unique domain names take the place of namespace for code developed for multiple orgs on multiple instances. B. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance. C. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance D.Polyglot persistence provides support for a global, multilingual user base in multiple orgs in multiple instances: C. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance
- A developer has the following Query Contact c = [Select id, firstname, lastname, email from Contact where last-name='Smith']; What does query return if there is no Contact with the last name 'Smith' A. An error that no rows are found
10 / 68 C. A contact initialized to null D. An empty List of Contacts: A. An error that no rows are found
- Where can custom roll up summary fields be created using Standard object relationships? A. On Account using Opportunity records B. On Account using Case records C. On Opportunity using Opportunity Product records D. On Campaign using Campaign Member records. E. On Quote using Order records: A. On Account using Opportunity records C. On Opportunity using Opportunity Product records D. On Campaign using Campaign Member records.
- Which scenario is invalid for executing by unit tests? A. Executing methods for negative test scenarios. B. Executing methods as different users. C. Loading test data in place of user input for Flows. D. Load the standard Pricebook ID using a system method.: C. Loading test data in place of user input for Flows.
- A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class? A. Add the @TestVisible attribute to the Apex class B. Add the SeeAllData attribute to the test class C. Add the SeeAllData atrribute to the test methods D. Add the @TestVisible attribute to the Apex methods: D. Add the @TestVisible attribute to the Apex methods
- When the value of a field in an account record is updated, which method will update the value of a custom field in all related opportunities? Choose 2 answers.
11 / 68 A. A cross-object formula field on the Account object. B. A Workflow Rule on the Account object. C. A process Builder on the Account object. D. An Apex trigger on the Account object.: C. A process Builder on the Account object. D. An Apex trigger on the Account object.
- What is an accurate statement about the variable scope? Choose 3 A. A variable can be defined at any point in a block B. Parallel blocks can use the same variable name C. Sub-blocks cannot reuse a parent block's variable name D.A static variable can restrict the scope to the current block if its values is null E. Sub-blocks can reuse a parent's block variable name if its value is null: A. A variable can be defined at any point in a block B. Parallel blocks can use the same variable name C. Sub-blocks cannot reuse a parent block's variable name
- How would a developer use Schema builder to delete a custom field from the Account object that was required for prototyping but is no longer need-ed? A.Delete the field from Schema Builder and then all references in the code will be removed. B. Mark the field for deletion in Schema Builder and then delete it from the declarative UI. C.Remove all references from the code and then delete the custom field from Schema Builder D. Remove all the references in the code and then the field will be removed from Schema Builder: C. Remove all references from the code and then delete the custom field from Schema Builder
- Which statement about change set deployment is accurate? (Choose 3)
13 / 68 C. They can be used to transfer Contact records D. They use an all or none deployment model E. They can be used only between related organizations: A. They require a deployment connection D. They use an all or none deployment model E. They can be used only between related organizations
- What is a capability of a standardSetController? (Choose 2) A. It allows pages to perform mass updates of records B. It enforces field-level security when reading large record sets C. It extends the functionality of a standard or custom controller D. It allows pages to perform pagination with large record sets: A. It allows pages to perform mass updates of records D. It allows pages to perform pagination with large record sets
- A developer wants to list all of the Tasks for each Account on the Account detail page. When a Task is created for a contact, what does the developer need to do to display the Task on? A. Create a Workflow Rule to relate the Task to the Contact's Account B. Nothing. The Task cannot be related to an Account and a Contact C. Create an Account formula field that displays the Task information D.Nothing. The Task is automatically displayed on the Account Page.: D. Nothing. The Task is automatically displayed on the Account Page.
- A developer needs to create a visualforce page that will override the stan-dard Account edit button. The page will be used to validate the accounts address using SOQL query. The page will also allow the user to make the edits to the address. Where would the developer write the Account address verification logic? A. In a Controller Extension
14 / 68 B. In a Standard Extension
16 / 68 only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement? A. Create a required Visualforce component
17 / 68 B. Create a required comments field C. Create a formula field D. Create a validation rule.: D. Create a validation rule.
- Which statement about the lookup relationship between a custom object and a standard object is correct? A. The Custom Object will be deleted when the referenced Standard Object is deleted B. The lookup Relationship cannot be marked as required on the page layout for the Custom Object C. The custom Object inherits security from the referenced Standard Object D. The Lookup relationship on the Custom Object can prevent the deletion of the Standard Object: D. The Lookup relationship on the Custom Object can prevent the deletion of the Standard Object
- When can a developer use a custom Visualforce page in a Force.com appli-cation? Choose 2 answers A. To modify the page layout settings for a custom object B. To create components for dashboards and layouts C. To deploy components between two organizations D. To generate a PDF document with application Data: B. To create components for dashboards and layouts D. To generate a PDF document with application Data
- Where can debug log filter settings be set? Choose 2 answers A. The Filters link by the monitored user's name within the web Ui. B. The Show More link on the debug log's record. C. On the monitored user's name. D.The Log Filters tab on a class or trigger detail page.: A. The Filters link by the monitored user's name within the web Ui. D. The Log Filters tab on a class or trigger detail page.
19 / 68 B. Debug Statement C. Time D. Exception: A. Namespace C. Time
- Which user can edit a record after it has been locked for approval? Choose 2 answers A. Any user with a higher role in the hierarchy B. An administrator C. Any user who approved the record previously D. An user who is assigned as the current approver: B. An administrator D. An user who is assigned as the current approver
- To Which primitive data type in Apex is a currency field automatically as-signed? A. Currency B. Integer C. Decimal D. Double: C. Decimal
- A developer executes following code in Console list flist = new list(); for(integer i=1;i<=200 ;i++){ flist.add(new Account(name='Test Acc'+i)); } insert flist; list Llist = new list(); for(integer i=201;i<=20000 ;i++){ Llist.add(new Account(name='Test Acc'+i));
20 / 68
insert Llist ;