Salesforce Develop Exam 1 (1-25)

Descripción

Test sobre Salesforce Develop Exam 1 (1-25), creado por Sean Kuo el 01/11/2017.
Sean Kuo
Test por Sean Kuo, actualizado hace más de 1 año
Sean Kuo
Creado por Sean Kuo hace más de 6 años
548
0

Resumen del Recurso

Pregunta 1

Pregunta
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?
Respuesta
  • 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

Pregunta 2

Pregunta
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?
Respuesta
  • 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

Pregunta 3

Pregunta
Which data structure is returned to a developer when performing a SOSL search?
Respuesta
  • 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

Pregunta 4

Pregunta
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?
Respuesta
  • 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

Pregunta 5

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

Pregunta 6

Pregunta
When creating unit tests in Apex, which statement is accurate?
Respuesta
  • 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

Pregunta 7

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

Pregunta 8

Pregunta
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?
Respuesta
  • HTTP Callouts
  • Apex Triggers
  • Anonymous Blocks
  • Apex Controllers

Pregunta 9

Pregunta
When would a developer use a custom controller instead of a controller extension? Choose 2 answers
Respuesta
  • 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

Pregunta 10

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

Pregunta 11

Pregunta
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
Respuesta
  • after update
  • before insert
  • after insert
  • before update

Pregunta 12

Pregunta
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
Respuesta
  • 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.

Pregunta 13

Pregunta
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?
Respuesta
  • Parent-Child
  • One-to-Many
  • Master-Detail
  • Lookup

Pregunta 14

Pregunta
On which object can an administrator create a roll-up summary field?
Respuesta
  • 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

Pregunta 15

Pregunta
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?
Respuesta
  • 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

Pregunta 16

Pregunta
What is a capability of the Developer Console?
Respuesta
  • 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

Pregunta 17

Pregunta
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?
Respuesta
  • 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

Pregunta 18

Pregunta
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?
Respuesta
  • Before Committing to database
  • After Trigger execution
  • Before Trigger execution
  • After Committing to database

Pregunta 19

Pregunta
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?
Respuesta
  • 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

Pregunta 20

Pregunta
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?
Respuesta
  • 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

Pregunta 21

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

Pregunta 22

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

Pregunta 23

Pregunta
"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?
Respuesta
  • 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

Pregunta 24

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

Pregunta 25

Pregunta
What is the minimum log level needed to see user generated debug statements?
Respuesta
  • FINE
  • DEBUG
  • WARN
  • INFO
Mostrar resumen completo Ocultar resumen completo

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 (26-50)
Connie Woolard
SFDC App Builder 1 (126-150)
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
SalesForce ADM 201 Study Quiz
Kristin Bunn
SFDC App Builder 1 (151-175)
Connie Woolard
Quick tips to improve your Exam Preparation
James Timpson