Salesforce Develop Exam 1 (1-25)

Descrição

Quiz sobre Salesforce Develop Exam 1 (1-25), criado por Sean Kuo em 01-11-2017.
Sean Kuo
Quiz por Sean Kuo, atualizado more than 1 year ago
Sean Kuo
Criado por Sean Kuo aproximadamente 7 anos atrás
570
0

Resumo de Recurso

Questão 1

Questão
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?
Responda
  • 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

Questão 2

Questão
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?
Responda
  • 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

Questão 3

Questão
Which data structure is returned to a developer when performing a SOSL search?
Responda
  • 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

Questão 4

Questão
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?
Responda
  • 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

Questão 5

Questão
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?
Responda
  • Insert propertiesToCreate;
  • Database.Insert(PropertiesToCreate);
  • Database.insert(propertiesToCreate,false);
  • Database.Insert(PropertiesToCreate,System.ALLOW_PARTIAL);

Questão 6

Questão
When creating unit tests in Apex, which statement is accurate?
Responda
  • 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

Questão 7

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

Questão 8

Questão
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?
Responda
  • HTTP Callouts
  • Apex Triggers
  • Anonymous Blocks
  • Apex Controllers

Questão 9

Questão
When would a developer use a custom controller instead of a controller extension? Choose 2 answers
Responda
  • 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

Questão 10

Questão
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
Responda
  • Name
  • FirstName
  • AccountId
  • LastName

Questão 11

Questão
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
Responda
  • after update
  • before insert
  • after insert
  • before update

Questão 12

Questão
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
Responda
  • 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.

Questão 13

Questão
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?
Responda
  • Parent-Child
  • One-to-Many
  • Master-Detail
  • Lookup

Questão 14

Questão
On which object can an administrator create a roll-up summary field?
Responda
  • 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

Questão 15

Questão
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?
Responda
  • 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

Questão 16

Questão
What is a capability of the Developer Console?
Responda
  • 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

Questão 17

Questão
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?
Responda
  • 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

Questão 18

Questão
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?
Responda
  • Before Committing to database
  • After Trigger execution
  • Before Trigger execution
  • After Committing to database

Questão 19

Questão
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?
Responda
  • 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

Questão 20

Questão
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?
Responda
  • 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

Questão 21

Questão
Which component is available to deploy using Metadata API Choose 2 answers
Responda
  • Case Layout
  • Case Feed Layout
  • Account Layout
  • Console Layout

Questão 22

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

Questão 23

Questão
"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?
Responda
  • 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

Questão 24

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

Questão 25

Questão
What is the minimum log level needed to see user generated debug statements?
Responda
  • FINE
  • DEBUG
  • WARN
  • INFO

Semelhante

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