Quiz
Salesforce Develop Exam 1 (1-25)
Questions in this quiz (25)
1What is the result when a Visualforce page calls an APEX controller, which calls another Apex class, which then results in hitting a governor limit?
- AAny changes up to the error are saved
- BAll changes are saved in the first Apex class
- CAny changes up to the error are rolled back
- DAll changes before a savepoint are saved
2A developer created an Apex trigger using the Developer Console and now wants to debug code.
How can the developer accomplish this in the Developer Console?- AOpen de Logs tab in the Developer Console
- BOpen the Progress tab in the Developer Console
- CAdd the user name in the Log Inspector
- DSelect the Override Logs Triggers checkbox for the trigger
3Which data structure is returned to a developer when performing a SOSL search?
- AA map of sObjects types to a list of lists of sObjects
- BA list of lists of sObjects
- CA map of sObjects types to a list of sObjects
- DA list of sObjects
4A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning: “Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required”. What can the developer do to successfully deploy the new Visualforce page and extension?
- AAdd the test methods to existing test classes from previous
- BCreate test classes to exercise the Visualforce page markup
- CSelect “Fast Deployment” to bypass running all the tests
- DSelect “Disable Parallel Apex Testing” to run all the tests
5A developer needs to create records for the object Property__c. The developer creates the following code block: (image)
Which line of code will the developer insert at line 03 to ensure that at least some records are created, even if a few records have errors and fall to be created?
- AInsert propertiesToCreate;
- BDatabase.Insert(PropertiesToCreate);
- CDatabase.insert(propertiesToCreate,false);
- DDatabase.Insert(PropertiesToCreate,System.ALLOW_PARTIAL);
6When creating unit tests in Apex, which statement is accurate?
- ATriggers do not require any unit tests in order to deploy them from sandbox to production
- BIncreased test coverage requires large test classes with many lines of code in one method
- CUnit tests with multiple methods result in all methods failing every time one method fails.
- DSystem Assert statements that do not increase code coverage
7When the number of records in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .lenght() method call?
- AFor (variable : list_or_set) { … }
- BDo { … } While (Condition)
- CWhile (Condition) { … }
- DFor (init_stmt^ exit_condition^ increment_stmt) { … }
8A developer has a block of code that omits any statements that indicates whether the code block should execute with or without sharing .
What will automatically obey the organizationfwide defaults and sharing settings for the user who executes the code in the Salesforce organization?- AHTTP Callouts
- BApex Triggers
- CAnonymous Blocks
- DApex Controllers
9When would a developer use a custom controller instead of a controller extension? Choose 2 answers
- AWhen a Visualforce page does not reference a single primary object
- BWhen a Visualforce page needs to replace the functionality of a standard controller
- CWhen a Visualforce page needs to add new actions to a standard controller
- DWhen a Visualforce page should not enforce permissions or field-level security
10Which standard field needs to be populated when a developer inserts new Contact records programmatically?
- AName
- BFirstName
- CAccountId
- DLastName
11A developer needs to automatically populates the Reports To field in a contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? Choose 2 answers
- Aafter update
- Bbefore insert
- Cafter insert
- Dbefore update
12An org has different Apex Classes that provide Accounts Related functionality. After a new validation rule is added to the Account object, many of the test methods fail
What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Choose 2 answers- ACreate a method that loads valid Account records from a Static Resource, and call this method within test methods.
- BCreate a method that performs a callout for a valid Account record, and call this method from within test methods.
- CCreate a method that queries for valid Account records, and call this method from within test methods.
- DCreate a method that creates valid Accounts records, and call this method from within test methods.
13A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.
Which kind of relationship would a developer use to relate the Account to the Warehouse?- AParent-Child
- BOne-to-Many
- CMaster-Detail
- DLookup
14On which object can an administrator create a roll-up summary field?
- AAny object that is on the detail side of a masterfdetail relationship
- BAny object that is on the child side of a lookup relationship
- CAny object that is on the master side of a masterfdetail relationship
- DAny object that is on the parent side of a lookup relationship
15A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for the object.
What happens when a user updates a record?- AThe Apex Trigger is fired more than once
- BThe Workflow Rule is fired more than once
- CBoth the Apex trigger and Workflow Rule are fired only once
- DNo changes are made to the data
16What is a capability of the Developer Console?
- AExecute Anonymous Apex code, Create/Edit Code, view Debug Logs
- BExecute Anonymous Apex code, Run REST API, Deploy code changes
- CExecute Anonymous Apex code, Run REST API, Create/Edit Code
- DExecute Anonymous Apex code, Create/Edit Code, Deploy code changes
17A developer has the following trigger that fires after insert and creates a child Case Whenever a new Case is created: (image).
What happens after the code block executes?
- AMultiple child cases are created for each parent case in Trigger.new
- BThe trigger fails if the Subject field on the parent is blank
- CA child case is created for each parent case in Trigger.new
- DThe trigger enters an infinite loop and eventually fails
18A developer wrote a Workflow email alert on case creation so that an email is sent to the case owner manager when a case is created.
When will the email be sent?- ABefore Committing to database
- BAfter Trigger execution
- CBefore Trigger execution
- DAfter Committing to database
19The Review_c object has a lookup relationship up to the Job_Application_c object. The Job_Application_c object has a master-detail relationship up to the Position_c object. The relationship field names are based on the auto populated defaults.
What is the recommended way to display field data from the related Review_c records on a Visualforce page for a single Position_c record?- AUtilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data
- BUtilize the Standard Controller for Position_c and a Controller Extension to query for Review_c
- CUtilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c data through the Job_Application_c object
- DUtilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data
20How would a developer use Schema Builder to delete a custom field from the Account object that was required for prototyping but is no longer needed?
- AMark the field for deletion in Schema Builder and delete it from the declarative UI
- BDelete the field from Schema Builder and then all references in the code will be removed
- CRemove all references in the code and then the field will be removed from Schema Builder
- DRemove all references from the code and then delete the custom field from Schema Builder
21Which component is available to deploy using Metadata API
Choose 2 answers- ACase Layout
- BCase Feed Layout
- CAccount Layout
- DConsole Layout
22What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
- ACreate a process with Process Builder
- BCreate a Workflow Rule with a field update
- CCreate a Visualforce page
- DCreate a Lightning Component
23"A sObject named Application_c has a lookup relationship to another subject named Position_c. Both Application_c and Position_c have a picklist field named Status_c.
When Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?- ABy using an Apex trigger with a DML Operation
- BBy configuring a crossfobject field update with workflow
- CBy changing Application_c.Status_c into formula field
- DBy changing Application_c.Status_c into a rollfup summary field
24What is true of a partial sandbox that is not true of a full sandbox?
Choose 2 answers- AUse of change sets
- BMore frequent refreshes
- COnly includes necessary metadata
- DLimited to 5GB of data
25What is the minimum log level needed to see user generated debug statements?
- AFINE
- BDEBUG
- CWARN
- DINFO
Information
- Description
- Quiz on Salesforce Develop Exam 1 (1-25), created by Sean Kuo on 01/11/2017.
- Author
- Sean Kuo
- Language
- English
- Views
- 638
- Tags
- Rating
- No ratings yet Rate this quiz