Platform Developer 1: Debug and Deployment Tools

What is true regarding projects in the Force.com IDE?
Choose 2 answers.

A. Each developer will have the same set of files in their project
B. Resources in a Force.com project are copied into the local project for editing
C. Projects can work in online or offline modes
D. Compiling of APEX code is done locally

Developers may define the layout of panels in the Developer Console by using a built in perspective or creating a custom one. Which of the following statement is true about managing perspectives in the Developer Console?
Choose 2 answers.

A. By clicking Debug > Perspective Manager, a developer may use built in perspectives or use custom ones.
B. The default perspective is always Analysis and cannot be changed.
C. By default, perspectives available are All (All panels), Debug (contains Execution Log, Source and Variables panels), Log Only (Execution Log only) & Analysis (includes the Stack Tree, Execution Stack, Execution Log, and Execution Overview panels)
D. Existing perspectives cannot be modified. If a custom one is needed, the user may clone the existing one to create a new
one.

What capabilities are part of the developer console?
Choose 2 answers.

A. Executing SOQL and SOSL queries
B. Run unit tests and checking code coverage
C. Source code viewing but not editing
D. Creating change sets

A debug log is a tool that allow developers to keep track of all actions that a specific Salesforce instance is processing while the monitoring is turned on. Debug logs can contain information about the following options except:

A. HTTP callouts
B. Apex errors
C. Time-based workflows actions
D. Validation Rules

What are the different levels from lowest amount of information to highest?

A. NONE – ERROR – WARN – INFO – FINE – FINER – FINEST– DEBUG
B. NONE – INFO – ERROR – WARN –DEBUG – FINE – FINER – FINEST
C. NONE – FINE – FINER – FINEST – ERROR – WARN – INFO – DEBUG
D. NONE – ERROR – WARN – INFO – DEBUG – FINE – FINER – FINEST

Sending and receiving change sets can be done between all options except?
Choose 2 answers.

A. Sandbox to Sandbox.
B. Developer Sandbox to Production.
C. Developer Edition to Production.
D. Developer Edition to Developer Edition

The Checkpoints tab in the Developer Console displays a list of saved checkpoints and displays a snapshot of the state of objects in memory at the time the checkpoint was reached. What information about the checkpoint will it include?
Choose 2 answers.

A. Class
B. Line
C. View state
D. Debug Statement

A developer wants to see a variable value while debugging code by using a System.debug() method. In which section of the debug log can this be found?

A. Log Lines
B. Header
C. Execution Units
D. Code Units

Which of the following is not true about the Logs Tab in the Developer Console?

A. A developer may use the Logs tab in the Developer Console to access logs that include database events, Apex processing, workflow, callouts, and validation logic.
B. The Developer Console automatically polls for the current user debug logs and lists them in the Logs tab.
C. Logs are system enforced and are always recorded in the log tab, hence, users are not capable of turning them off.
D. By default, the Logs tab displays only new logs generated by the current user but a developer will have an option to see all debug logs saved in the organization, including newly generated logs created by other users.

What is true regarding the Force.com Migration Tool?
Choose 2 answers.

A. Good for traceability and auditing previously deployed changes
B. Preferred by anyone that is familiar with deployments in a scripting environment
C. Has a user interface that can be used by first time users.
D. Best to use in repetitive deployments using the same parameters.

What are valid considerations when deciding whether to use change sets or the Force.com Migration Tool?
Choose 2 answers.

A. Change sets are cloud based and do not require files to be brought to a local file system
B. Change sets are preferable for repetitive large deployments to multiple environments
C. Deployments can be scripted and scheduled with the Force.com Migration Tool
D. Changes sets are ideal when a source control system is used

Which features are available in the Force.com IDE?
Choose 2 answers.

A. Schema Builder
B. Process Builder
C. Schema Explorer
D. Approval Visualizer
E. Write and Execute Anonymous blocks

What is true regarding using the Force.com IDE for deploying code?
Choose 2 answers.

A. The Force.com IDE cannot be used for deploying code
B. The Force.com IDE can be used for deploying code but only from one sandbox to another
C. The Force.com IDE can be used to deploy code to production
D. The Force.com IDE can be used to selectively deploy metadata components to another org

Which of the following debug log sections contains the version of the API used during the transaction and the log category and level used to generate the log?

A. Log Lines
B. Header
C. Execution Units
D. Code Units

A developer is required to know the number of SOQL queries initiated in a single
transaction Apex trigger along with its limit usage. What debug level should the Apex Profiling category on developer’s trace flag contain to satisfy this requirement?

A. ERROR
B. FINER
C. FINEST
D. DEBUG

Which environment would be most appropriate to perform a test deployment and final regression testing, as well as stress and performance testing?

A. Staging
B. Production Support
C. Development
D. Quality Assurance

What is a debug level?

A. The debug level specifies the type of user the debug log will capture information for
B. The debug level specifies the set of log levels for log categories
C. The debug level specifies the type of information to record in the debug log
D. The debug level specifies the amount of information to record in the debug log

A developer has written an Apex Trigger. He tested it and the trigger is not functioning as expected. He now wants to debug the code. How can the developer accomplish this in the Developer Console?

A. Go to the Logs tab in Developer Console.
B. Go to the Anonymous Window in Developer Console.
C. Go to the Run Tests in Developer Console.
D. Go to the Progress tab in Developer Console.

How can a developer start and monitor debug logs via the Salesforce UI?

A. Setup > Debug Logs > New
B. Setup > User > Debug Logs > New
C. Setup > Company Information > Enable Debug Logs
D. Setup > Profile > Choose Profile > Enable Debug Logs

Given a sample code snippet below, on what line/s of code correspond/s to an execution unit of a debug log?
20:43:45.1 (1707921) | EXECUTION_STARTED
20:43:45.1 (1714356) | CODE_UNIT_STARTED | [EXTERNAL] | 01pO0000000Hury |
LeadBLTest.setUpTestData
20:43:51.574 (7549778580) | CODE_UNIT_FINISHED | LeadBLTest.setUpTestData
20:43:51.574 (7550987692) | EXECUTION_FINISHED

A. 1st & 2nd
B. 1st & 4th
C. 2nd only
D. 4th only

What is true in the debug log line below?
Choose 2 answers.
20:43:52.588 (7632137015) | LIMIT_USAGE | [137] | SOQL | 38 | 100

A. 20:43:52.588 (7632137015) corresponds to the timestamp of the log line.
B. The debug log line above was triggered when the code reached the 38th line.
C. It denotes that 137 SOQL queries was executed out of limit usage of 100.
D. LIMIT_USAGE is the name of the event that occurred.

Which of the following statements are false in regards to a Partial Copy and Full Copy Sandbox?
Choose 2 answers.

A. A Full copy sandbox has a shorter refresh interval than a Partial copy
B. A Full copy sandbox does not support templates and sampling
C. A Partial copy sandbox can store less data than a full copy sandbox
D. A Partial copy is best to use for performance and load testing

A developer would like to test his code with a sample of live data every week. Which type of sandbox should he use?

A. Partial Copy Sandbox
B. Production
C. Developer sandbox
D. Full Sandbox

A Full copy sandbox is most appropriate for which activities?
Choose 2 answers.

A. Performance Testing
B. Load Testing
C. Quality Assurance
D. Development

A managed package can be created in which type of environment?
Choose 2 answers.

A. Developer Edition
B. Partner Developer Edition
C. Developer Sandbox
D. Full Sandbox

Which of the following statements are true about trace flags?
Choose 2 answers.

A. Trace flags should be configured, along with the debug level, to activate debug logs for users, Apex classes, and Apex triggers.
B. Trace flags should only contain one specific debug level for each debug category
C. A trace flag includes a debug level, a start time, an end time, and a log type.
D. Trace flag configuration is only available in the Salesforce UI setup.

What is the minimum log level that a developer needs to use to see debug statements generated by the user using System.debug()?

A. NOTICE
B. FINER
C. DEBUG
D. FINEST

Which of the following is not a capability of the Force.com IDE?

A. Creating Change Sets
B. Running Apex Tests
C. Executing SOQL queries
D. Deploying metadata components from one org to another

When would a full copy sandbox be required?
Choose 2 answers.

A. Performance and Load Testing
B. Staging
C. Training
D. Integration Testing

Before deploying to production, what is true?
Choose 3 answers.

A. Development must be done in a developer edition or sandbox
B. It is a best practice to test in a dedicated testing environment with large sets of data
C. Testing cannot be completed in a developer edition
D. APEX Code must have sufficient code coverage

What information can the log inspector contain?
Choose 3 answers.

A. Stack Tree
B. Trace Flags
C. Execution Overview
D. Source
E. Methods

What are the recommended tools for deploying metadata from one org to another?
Choose 2 answers.

A. Unmanaged Packages
B. Data Loader
C. Metadata API
D. Change Sets
E. Force.com Migration Tool

The type of debugging information logged can be set for each log using log categories. Which of the following is not a debug log category?

A. Apex Code
B. Visualforce
C. Database
D. Component

As a customer developing a new force.com application that will include APEX code, what considerations are valid?
Choose 2 answers.

A. Development and Testing can be completed directly in the production environment
B. It is required that development, testing and production are in separate environments
C. At least 2 environments are required
D. It is a best practice to have separate development and testing environments.

What capabilities are part of the workbench?
Choose 3 answers.

A. Interacting with the REST API
B. Executing SOQL and SOSL queries
C. Describing Metadata and data
D. Inserting but not deleting Data
E. Restricting workbench access to sandbox environments only

A team of developers would like to create a commercially available Force.com app. In this case, which environments would be used?
Choose 2 answers.

A. A Developer Pro Sandbox
B. A Developer Edition
C. A Partner Developer Edition
D. A Partial Copy Sandbox

What are capabilities of the developer console?
Choose 3 answers.

A. Edit a Visualforce page
B. Execute Anonymous Apex code blocks
C. Execute API calls
D. View Debug Logs

The following types of trace flags can be used by a developer except?

A. User based
B. Class based
C. Trigger based
D. Lightning based

A developer can view and download Debug Logs using which of the following?
Choose 2 answers.

A. Developer Console
B. Instrumentation Console
C. Setup Debug Logs
D. Service Cloud Console

Which of the following components are not available to deploy using the Metadata API?
Choose 2 answers.

A. Fiscal Year
B. Currency Exchange Rates
C. Queues
D. Global Picklist

A developer would like to accelerate their development and deployment working with the Force.com platform and has installed Eclipse and added the Force.com IDE plugin. What are the benefits of using the Force.com IDE?
Choose 2 answers.

A. Metadata components can be modified
B. Any number of files can be deployed or retrieved at once
C. Updates of different developers can be synchronized
D. Apex tests can be easily run

Advertisements

Platform Developer 1: Data Modeling and Management

Your company has a requirement to track the vehicles assigned to work orders. Vehicles can exist without Work Orders and have a record owner. What kind of relationship should be created between Work Orders and Vehicles?

  1. Master Detail
  2. Lookup
  3. Picklist
  4. Hierarchy

A developer created a custom object named Project. Data from associated projects needs to be summarized on each Account. All associated projects should be deleted when an Account is deleted. How can the developer achieve this?

  1. Create a Lookup relationship field on Account
  2. Create a Master-Detail relationship field on Account
  3. Create a Lookup relationship field on Project.
  4. Create a Master-Detail relationship field on Project.

There is a requirement to track which Health Care Providers are related to which Hospitals. Hospitals are a type of account. Health Care Providers is a custom object. A Health Care Provider can be related to multiple Hospitals. A Hospital can be related to multiple Health Care Providers. How can this relationship be created?

  1. Create a master detail relationship field on the Health Care Provider object
  2. Create 2 master detail relationship fields one on the Health Care Provider object and one on the Account object
  3. Create an additional object to connect the other 2 objects and create 2 master detail relationship fields on that object
  4. Create 2 lookup relationship fields, one on the Health Care Provider object and one on the Account object

A developer needs to create a custom object related to Account. How can the developer ensure that all related records are also visible to users that have access to the parent Account?

  1. Create a Lookup relationship field on the Account.
  2. Create a Lookup relationship field on the Custom Object.
  3. Create a Master-Detail relationship field on the Account.
  4. Create a Master-Detail relationship field on the Custom Object.

A developer has to do a quick one time load of 100 custom object records into a
development environment. The data is in a csv file and each record contains 5 fields. Which tool would you recommend to use to load the data?

  1. Custom Object Import Wizard
  2. Data Import Wizard
  3. Data Loader
  4. Data API Tool

What is true regarding the user interface for different relationship types?
Choose 2 answers.

  1. When a lookup relationship to object B is defined on object A, data from object A can appear as a related list on page layouts
    for object B.
  2. When a lookup relationship to object B is defined on object A, data from object B can appear as a related list on page layouts
    of object A.
  3. When a master detail relationship is defined, data from the master or detail object can appear as a custom related list on
    page layouts for the other object.
  4. When a many to many relationship is defined between object A and B, data from object B can appear in a custom related list
    on page layouts of object A.

A developer would like to relate an external data object (Social Media Posts) to the contacts object in Salesforce to track every post the contact has made in the external platform. How can the developer achieve this?

  1. Create an indirect lookup relationship using a custom field with External ID and Unique attributes
  2. Create an external lookup relationship using a custom field with External ID and Unique attributes
  3. Create a master detail relationship and update the record ID through integration
  4. Create a lookup relationship and update the record ID through integration

Sam has completed a solution design and is ready to create the data model for a new application in Salesforce. There are a number of custom objects, each with a number of custom fields and relationships between the custom objects. What would you suggest to complete the task most efficiently? Choose 1 answer.

  1. Use the Schema Builder to create custom objects and fields and the Create->Objects in Setup to create relationships
  2. Use the Schema Builder to create custom objects, fields and relationships
  3. Use the Schema Builder to create objects, fields and relationships need to be created using the Create Custom Field in
    Setup
  4. Create the Custom objects, fields and relationships using the Create->Objects in Setup and use the Schema Builder to
    verify the data model was created correctly.

What are considerations for deciding between using Data Loader and the Data Import Wizard for loading data into a development environment?
Choose 3 answers.

  1. The number of records to be loaded
  2. If the data will need to be loaded multiple times
  3. If the object is supported by the Data Import Wizard
  4. If triggers should run on import of the data

A developer needs to update existing Account records using an import file. How can the records be matched so that the correct record is updated?
Choose 2 answers

  1. Match the record id field to a column in the import file
  2. Match the Account Name to a column in the import file
  3. Match the order of the data in the import file to the order of the records in Salesforce
  4. Match an external id field defined on the account object to a column in the import file

Universal Containers has tried the Schema Builder but has found that because there are too many objects and relationships displayed, it has long loading times and decided it is too difficult to work with. What features would you suggest to help with this issue?
Choose 3 answers

  1. If the ‘Hide Relationships’ option is selected, performance is improved
  2. The map can be used to navigate to objects of interest
  3. The filter can be used to only display objects of interest
  4. Fields can be hidden and only the objects displayed

What is true regarding record access in a master detail relationship?
Choose 2 answers.

  1. The detail object can have its own sharing rules
  2. The detail object can have a record owner
  3. The detail object inherits the sharing and security settings of the master record
  4. The owner of a detail object is automatically set to the owner of its associated master record

You are trying to decide whether to use a master-detail or lookup relationship between two objects. Which of the following considerations are false?
Choose 1 answer.

  1. In a master-detail relationship, if the master record is deleted, the detail records will all be deleted
  2. Child records in master-detail relationships on custom objects cannot be reparented
  3. Custom objects on the detail side of a master-detail relationship cannot have queues
  4. A custom object cannot be on the master side of a relationship with a standard object

Which amongst the following provides a dynamic environment for viewing and modifying objects and relationships?
Choose 1 answer.

  1. Schema Builder
  2. Process Builder
  3. Process Visualizer
  4. Approval Visualizer
  5. Flows

Which of the following is NOT a capability of the schema builder?

  1. Create a custom object
  2. Delete a custom object
  3. Create Lookup and master detail relationships
  4. Export the schema definition

Project managers would like to be able to record the total amount of hours each team member works on projects. A team member can be related to multiple projects and each project can have multiple team members. How can the developer achieve this?

  1. Create a lookup relationship on both objects to a junction object called Project Team Member.
  2. Create a master-detail relationship in the Project object to the Team Member object.
  3. Create a lookup relationship in the Team Member object to the Project object.
  4. Create a master-detail relationship on both objects to a junction object called Project Team Member.

The Salesforce Administrator is building an application and needs to create a master detail relationship between the standard object Account and a custom object. What is true regarding the relationship?
Choose 2 answers.

  1. The custom object can be on the master or detail side of the relationship
  2. The standard object can be on the master or detail side of the relationship
  3. The standard object is always the master
  4. The object on the detail side will inherit the security and sharing settings of the master object

A developer created a lookup relationship between the standard object Account and a custom object Feedback. Which statement is correct?

  1. If a feedback record is deleted, the account will also be deleted.
  2. Any user that can view the account records can also view the feedback records.
  3. If a feedback record is deleted, the account will not be deleted.
  4. The owner of the account record will be the owner its feedback record.

You have a requirement to associate a project manager to a project record. Project managers are defined as users in the application. What type of relationship would be most appropriate?

  1. Lookup Relationship
  2. Hierarchical Lookup Relationship
  3. Master Detail Relationship
  4. Many to Many Relationship

A developer is creating a Training application to track training courses and the enrollment of the candidates. Each candidate can enroll in multiple training courses at a time. A training course cannot be open unless a candidate is associated to it. How can the developer achieve this to prevent orphan records?

  1. Create a junction object to relate many candidates to many training courses through a master-detail relationship.
  2. Create a master-detail relationship in order to show the multiple candidates each training have.
  3. Create a lookup relationship in order to show the multiple trainings each candidate have.
  4. Create a junction object to relate many candidates to trainings parts through a lookup relationship.

Global Insurance has custom objects to represent Policies and Claims. A Policy can have zero or many Claims. A Claim is always related to a Policy. Claims are first assigned to a queue and then later assigned to different members of the claims team. What type of relationship would be used to relate these objects?

  1. Master-detail relationship
  2. Lookup relationship
  3. Self relationship
  4. Direct relationship

You are replacing a spreadsheet that tracks company resources and the employees that are assigned to the resources with a Salesforce App. Resources can be of different types, such as phones, vehicles and equipment. Each employee can be assigned multiple resources. After creating a custom object for Employee and Resource, what type of relationship would be appropriate to create?

  1. Lookup relationship
  2. Many to Many relationship
  3. Master Detail relationship
  4. Picklist relationship