CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Oct-2024

Topic 1 : Exam Pool A

Which SOQL query successfully returns the Accounts grouped by name?


A.

SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name


B.

SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name


C.

SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name


D.

SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5





B.
  

SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name



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.)


A.

Developer Sandbox


B.

Full Sandbox


C.

Developer Edition


D.

Partial Sandbox


E.

Developer Pro Sandbox





B.
  

Full Sandbox



D.
  

Partial Sandbox



A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned
to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)


A.

Make an outbound web services call to the SOAP API.


B.

Hardcode the ID as a constant in an Apex class.


C.

Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.


D.

Execute a SOQL query on the RecordType object.





C.
  

Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.



D.
  

Execute a SOQL query on the RecordType object.



The operation manager at a construction company uses a custom object called Machinery to manage the usage
and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to
different constructions jobs, and track the dates and costs associated with each job. More than one piece of
machinery can be assigned to one construction job. What should a developer do to meet these requirements?


A.

Create a lookup field on the Construction Job object to the Machinery object.


B.

Create a lookup field on the Machinery object to the Construction Job object.


C.

Create a junction object with Master-Detail Relationship to both the Machinery object and the
Construction Job object.


D.

Create a Master-Detail Lookup on the Machinery object to the Construction Job object





A.
  

Create a lookup field on the Construction Job object to the Machinery object.



Which approach should a developer use to add pagination to a Visualforce page?


A.

A StandardController


B.

The Action attribute for a page


C.

The extensions attribute for a page


D.

A StandardSetController





D.
  

A StandardSetController



How should a developer create a new custom exception class? 


A.

public class CustomException extends Exception{}


B.

CustomException ex = new (CustomException)Exception();


C.

public class CustomException implements Exception{}


D.

(Exception)CustomException ex = new Exception();





A.
  

public class CustomException extends Exception{}



What are two benefits of the Lightning Component framework? (Choose two.)


A.

It simplifies complexity when building pages, but not applications.


B.

It provides an event-driven architecture for better decoupling between components.


C.

It promotes faster development using out-of-box components that are suitable for desktop and mobile
devices.


D.

It allows faster PDF generation with Lightning components.





B.
  

It provides an event-driven architecture for better decoupling between components.



C.
  

It promotes faster development using out-of-box components that are suitable for desktop and mobile
devices.



What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?


A.

Account0.Phone=333-8781, Account1.Phone=333-8780


B.

Account0.Phone=888-1515, Account1.Phone=999-2525


C.

Account0.Phone=333-8780, Account1.Phone=333-8781


D.

Account0.Phone=888-1515, Account1.Phone=999-1515





C.
  

Account0.Phone=333-8780, Account1.Phone=333-8781



What is the requirement for a class to be used as a custom Visualforce controller?


A.

Any top-level Apex class that has a constructor that returns a PageReference


B.

Any top-level Apex class that extends a PageReference


C.

Any top-level Apex class that has a default, no-argument constructor


D.

Any top-level Apex class that implements the controller interface





D.
  

Any top-level Apex class that implements the controller interface



A platform developer at Universal Containers needs to create a custom button for the Account object that,
when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.)


A.

action


B.

renderAs


C.

standardController


D.

readOnly


E.

extensions





A.
  

action



B.
  

renderAs



C.
  

standardController




Page 1 out of 39 Pages