Download Salesforce Certified Platform Developer I.CRT-450.TestKing.2018-12-02.31q.vcex

Vendor: Salesforce
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I
Date: Dec 02, 2018
File Size: 20 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. 
How should the Developer overcome this problem?
  1. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
  2. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
  3. Use Test.loadData() and a Static Resource to load a standard Pricebook.
  4. Use @TestVisible to allow the test method to see the standard PriceBook.
Correct answer: A
Question 2
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.) 
  1. ENUM
  2. sObject
  3. External ID
  4. String
Correct answer: AD
Explanation:
Question 3
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
  1. Performance Tree tab under Stack Tree panel
  2. Execution Tree tab under Stack Tree panel
  3. Timeline tab under Execution Overview panel
  4. Save Order tab under Execution Overview panel
Correct answer: C
Question 4
A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. 
Which two environments meet the requirements for testing? (Choose two.)
  1. Developer Sandbox
  2. Full Sandbox
  3. Developer Edition
  4. Partial Sandbox
  5. Developer Pro Sandbox
Correct answer: BD
Question 5
A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard. 
Which approach should the developer use to accomplish this declaratively?
  1. A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
  2. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
  3. A Process Builder process that updates a field on the timecard when a timecard entry is created
  4. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
Correct answer: B
Question 6
A developer encounters APEX heap limit errors in a trigger. 
Which two methods should the developer use to avoid this error? (Choose two.)
  1. Use the transient keyword when declaring variables.
  2. Query and store fields from the related object in a collection when updating related objects.
  3. Remove or set collections to null after use.
  4. Use SOQL for loops instead of assigning large queries results to a single collection and looping through the collection.
Correct answer: AD
Question 7
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
  1. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.
  2. Test data is inserted once for all test methods in a class.
  3. Records created in the @testSetup method cannot be updates in individual test methods.
  4. The @testSetup method is automatically executed before each test method in the test class is executed. 
Correct answer: D
Question 8
What is the requirement for a class to be used as a custom Visualforce controller?
  1. Any top-level Apex class that has a constructor that returns a PageReference
  2. Any top-level Apex class that extends a PageReference
  3. Any top-level Apex class that has a default, no-argument constructor
  4. Any top-level Apex class that implements the controller interface
Correct answer: D
Question 9
A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. 
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?
  1. controller=“Case” and extensions=“myControllerExtension”
  2. extensions=“myControllerExtension”
  3. controller=“myControllerExtension”
  4. standardController=“Case” and extensions=“myControllerExtension”
Correct answer: D
Question 10
A newly hired developer discovers that there are multiple triggers on the case object. 
What should the developer consider when working with triggers?
  1. Developers must dictate the order of trigger execution.
  2. Trigger execution order is based on creation date and time.
  3. Unit tests must specify the trigger being tested.
  4. Trigger execution order is not guaranteed for the same sObject.
Correct answer: D
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!