Salesforce Develop Exam 1 (1-25)

Description

Quiz on Salesforce Develop Exam 1 (1-25), created by Sean Kuo on 01/11/2017.
Sean Kuo
Quiz by Sean Kuo, updated more than 1 year ago
Sean Kuo
Created by Sean Kuo about 7 years ago
569
0

Resource summary

Question 1

Question
What is the result when a Visualforce page calls an APEX controller, which calls another Apex class, which then results in hitting a governor limit?
Answer
  • Any changes up to the error are saved
  • All changes are saved in the first Apex class
  • Any changes up to the error are rolled back
  • All changes before a savepoint are saved

Question 2

Question
A 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?
Answer
  • Open de Logs tab in the Developer Console
  • Open the Progress tab in the Developer Console
  • Add the user name in the Log Inspector
  • Select the Override Logs Triggers checkbox for the trigger

Question 3

Question
Which data structure is returned to a developer when performing a SOSL search?
Answer
  • A map of sObjects types to a list of lists of sObjects
  • A list of lists of sObjects
  • A map of sObjects types to a list of sObjects
  • A list of sObjects

Question 4

Question
A 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?
Answer
  • Add the test methods to existing test classes from previous
  • Create test classes to exercise the Visualforce page markup
  • Select “Fast Deployment” to bypass running all the tests
  • Select “Disable Parallel Apex Testing” to run all the tests

Question 5

Question
A 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?
Answer
  • Insert propertiesToCreate;
  • Database.Insert(PropertiesToCreate);
  • Database.insert(propertiesToCreate,false);
  • Database.Insert(PropertiesToCreate,System.ALLOW_PARTIAL);

Question 6

Question
When creating unit tests in Apex, which statement is accurate?
Answer
  • Triggers do not require any unit tests in order to deploy them from sandbox to production
  • Increased test coverage requires large test classes with many lines of code in one method
  • Unit tests with multiple methods result in all methods failing every time one method fails.
  • System Assert statements that do not increase code coverage

Question 7

Question
When 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?
Answer
  • For (variable : list_or_set) { … }
  • Do { … } While (Condition)
  • While (Condition) { … }
  • For (init_stmt^ exit_condition^ increment_stmt) { … }

Question 8

Question
A 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?
Answer
  • HTTP Callouts
  • Apex Triggers
  • Anonymous Blocks
  • Apex Controllers

Question 9

Question
When would a developer use a custom controller instead of a controller extension? Choose 2 answers
Answer
  • When a Visualforce page does not reference a single primary object
  • When a Visualforce page needs to replace the functionality of a standard controller
  • When a Visualforce page needs to add new actions to a standard controller
  • When a Visualforce page should not enforce permissions or field-level security

Question 10

Question
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
Answer
  • Name
  • FirstName
  • AccountId
  • LastName

Question 11

Question
A 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
Answer
  • after update
  • before insert
  • after insert
  • before update

Question 12

Question
An 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
Answer
  • Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
  • Create a method that performs a callout for a valid Account record, and call this method from within test methods.
  • Create a method that queries for valid Account records, and call this method from within test methods.
  • Create a method that creates valid Accounts records, and call this method from within test methods.

Question 13

Question
A 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?
Answer
  • Parent-Child
  • One-to-Many
  • Master-Detail
  • Lookup

Question 14

Question
On which object can an administrator create a roll-up summary field?
Answer
  • Any object that is on the detail side of a masterfdetail relationship
  • Any object that is on the child side of a lookup relationship
  • Any object that is on the master side of a masterfdetail relationship
  • Any object that is on the parent side of a lookup relationship

Question 15

Question
A 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?
Answer
  • The Apex Trigger is fired more than once
  • The Workflow Rule is fired more than once
  • Both the Apex trigger and Workflow Rule are fired only once
  • No changes are made to the data

Question 16

Question
What is a capability of the Developer Console?
Answer
  • Execute Anonymous Apex code, Create/Edit Code, view Debug Logs
  • Execute Anonymous Apex code, Run REST API, Deploy code changes
  • Execute Anonymous Apex code, Run REST API, Create/Edit Code
  • Execute Anonymous Apex code, Create/Edit Code, Deploy code changes

Question 17

Question
A 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?
Answer
  • Multiple child cases are created for each parent case in Trigger.new
  • The trigger fails if the Subject field on the parent is blank
  • A child case is created for each parent case in Trigger.new
  • The trigger enters an infinite loop and eventually fails

Question 18

Question
A 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?
Answer
  • Before Committing to database
  • After Trigger execution
  • Before Trigger execution
  • After Committing to database

Question 19

Question
The 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?
Answer
  • Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data
  • Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c
  • Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c data through the Job_Application_c object
  • Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data

Question 20

Question
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 needed?
Answer
  • Mark the field for deletion in Schema Builder and delete it from the declarative UI
  • Delete the field from Schema Builder and then all references in the code will be removed
  • Remove all references in the code and then the field will be removed from Schema Builder
  • Remove all references from the code and then delete the custom field from Schema Builder

Question 21

Question
Which component is available to deploy using Metadata API Choose 2 answers
Answer
  • Case Layout
  • Case Feed Layout
  • Account Layout
  • Console Layout

Question 22

Question
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
Answer
  • Create a process with Process Builder
  • Create a Workflow Rule with a field update
  • Create a Visualforce page
  • Create a Lightning Component

Question 23

Question
"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?
Answer
  • By using an Apex trigger with a DML Operation
  • By configuring a crossfobject field update with workflow
  • By changing Application_c.Status_c into formula field
  • By changing Application_c.Status_c into a rollfup summary field

Question 24

Question
What is true of a partial sandbox that is not true of a full sandbox? Choose 2 answers
Answer
  • Use of change sets
  • More frequent refreshes
  • Only includes necessary metadata
  • Limited to 5GB of data

Question 25

Question
What is the minimum log level needed to see user generated debug statements?
Answer
  • FINE
  • DEBUG
  • WARN
  • INFO
Show full summary Hide full summary

Similar

The SAT Math test essentials list
lizcortland
How to improve your SAT math score
Brad Hegarty
RE Keywords - Paper 1 - Religion and life
Kerris Linney
SFDC App Builder 1 (126-150)
Connie Woolard
SFDC App Builder 1 (26-50)
Connie Woolard
SFDC App Builder 1 (1-25)
Connie Woolard
SFDC App Builder (76-100)
Connie Woolard
SFDC App Builder 1 (176-200ish)
Connie Woolard
SFDC App Builder 1 (151-175)
Connie Woolard
SalesForce ADM 201 Study Quiz
Kristin Bunn
Quick tips to improve your Exam Preparation
James Timpson