Salesforce Develop Exam 1 (1-25)

Beschreibung

Quiz am Salesforce Develop Exam 1 (1-25), erstellt von Sean Kuo am 01/11/2017.
Sean Kuo
Quiz von Sean Kuo, aktualisiert more than 1 year ago
Sean Kuo
Erstellt von Sean Kuo vor etwa 7 Jahre
570
0

Zusammenfassung der Ressource

Frage 1

Frage
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?
Antworten
  • 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

Frage 2

Frage
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?
Antworten
  • 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

Frage 3

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

Frage 4

Frage
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?
Antworten
  • 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

Frage 5

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

Frage 6

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

Frage 7

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

Frage 8

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

Frage 9

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

Frage 10

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

Frage 11

Frage
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
Antworten
  • after update
  • before insert
  • after insert
  • before update

Frage 12

Frage
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
Antworten
  • 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.

Frage 13

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

Frage 14

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

Frage 15

Frage
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?
Antworten
  • 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

Frage 16

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

Frage 17

Frage
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?
Antworten
  • 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

Frage 18

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

Frage 19

Frage
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?
Antworten
  • 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

Frage 20

Frage
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?
Antworten
  • 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

Frage 21

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

Frage 22

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

Frage 23

Frage
"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?
Antworten
  • 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

Frage 24

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

Frage 25

Frage
What is the minimum log level needed to see user generated debug statements?
Antworten
  • FINE
  • DEBUG
  • WARN
  • INFO
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

The SAT Math test essentials list
lizcortland
How to improve your SAT math score
Brad Hegarty
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
RE Keywords - Paper 1 - Religion and life
Kerris Linney
Quick tips to improve your Exam Preparation
James Timpson