Certified Platform Developer v1.0

Page:    1 / 4   
Exam contains 60 questions

As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.
Which two technologies are built on a framework that fully supports the business requirement? (Choose two.)

  • A. Aura Components
  • B. Visualforce Components
  • C. Lightning Web Components
  • D. Visualforce Pages


Answer : AC

A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug_c.
As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able to report multiple bugs and bugs can also be reported by multiple companies.
What is needed to allow this reporting?

  • A. Junction object between Bug_c and Account
  • B. Master-detail field on Bug_c to Account
  • C. Roll-up summary field of Bug_c on Account
  • D. Lookup field on Bug_c to Account


Answer : A

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller? (Choose three.)

  • A. Test.setCurrentPage(pageRef);
    B.ApexPages.currentPage().getParameters().put(‘input’, ‘TestValue’)
  • C. public ExtendedController(ApexPages. StandardController cntrl) { }
  • D. insert pageRef


Answer : ABC

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.

Which is the correct implementation?

  • A.
  • B.
  • C.
  • D.


Answer : D

A Salesforce administrator used Flow Builder to create a flow named “accountOnboarding”. The flow must be used inside an Aura component.
Which tag should a developer use to display the flow in the component?

  • A. lightning-flow
  • B. aura:flow
  • C. lightning:flow
  • D. aura-flow


Answer : C

A Lightning component has a wired property, searchResults, that stores a list of Opportunities.
Which definition of the Apex method, to which the searchResults property is wired, should be used?

  • A. @AuraEnabled (cacheable=true)
    public List<Opportunity> search(String term) { /*implementation*/ }
  • B. @AuraEnabled (cacheable=false)
    public List<Opportunity> search(String term) { /*implementation*/ }
  • C. @AuraEnabled(cacheable=true)
    public static List<Opportunity> search(String term) { /*implementation*/ }
  • D. @AuraEnabled(cacheable=false)
    public static List<Opportunity> search(String term) { /*implementation*/ }


Answer : C

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.
What would be the best solution for this requirement?

  • A. Use a custom Lightning Web component to make a callout to validate the fields on a third party system.
  • B. Submit a REST API Callout with a JSON payload and validate the fields on a third party system
  • C. Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid
  • D. Use an Approval Process to enforce the completion of a valid email address using an outbound message action


Answer : C

Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component? (Choose three.)

  • A. Import the SVG as a content asset file.
  • B. Import the static resource and provide a JavaScript property for it.
  • C. Upload the SVG as a static resource.
  • D. Reference the import in the HTML template.
  • E. Reference the property in the HTML template.


Answer : BCE

Universal Containers is developing a new Lightening web component for their marketing department. They want to ensure that the component is fine tuned and provides a seamless user experience.
What are some benefits of using the Lightning Component framework?

  • A. Better performance due to client-side rendering
  • B. Easy integration with third-party libraries
  • C. Compatibility with all web browsers
  • D. Automatic support for accessibility standards


Answer : ABD

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

  • A. Use the Flow Properties page
  • B. Use the Code Coverage Setup page
  • C. Use the ApexTestResult class
  • D. Use SOQL and the Tooling API


Answer : D

A developer created a Lightning web component called statusComponent to be inserted into the Account record page.
Which two things should the developer do to make this component available? (Choose two.)

  • A. Add <target>lightning_RecordPage</target> to the statusComponent.js file
  • B. Set isExposed to true in the statusComponent.js-meta.xml file
  • C. Add <target>lightning_RecordPage</target> to the startusComponent.js-meta.xml file.
  • D. Add <masterLabel>Account</masterLabel> to the statusComponent.js-meta.xml file.


Answer : BC

What are two ways for a developer to execute tests in an org? (Choose two.)

  • A. Metadata API
  • B. Developer Console
  • C. Tooling API
  • D. Bulk API


Answer : BC

A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank.
Which automation allows the developer to satisfy this requirement in the most efficient manner?

  • A. An error condition formula on a validation rule on Opportunity
  • B. An Apex trigger on the Opportunity object
  • C. An approval process on the Opportunity object
  • D. A record trigger flow on the Opportunity object


Answer : A

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat:

What are two ways the developer can update the method to prevent a SOQL injection attack? (Choose two.)

  • A. Use variable binding and replace the dynamic query with a static SOQL
  • B. Use the escapeSingleQuotes method to sanitize the parameter before its use
  • C. Use the @ReadOnly annotation and the with sharing keyword on the class
  • D. Use a regular expression expression on the parameter to remove special characters


Answer : AB

An Apex method, getAccounts, that returns a list of Accounts given a searchTerm, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?

  • A. @wire (getAccounts, { searchTerm: ‘$searchTerm’} )
    accountList;
  • B. @wire (getAccounts, ‘searchTerm’)
    accountList;
  • C. @AuraEnabled(getAccounts, { searchTerm: ‘$searchTerm’} )
    accountList;
  • D. @AuraEnabled(getAccounts, ‘$searchTerm’)
    accountList


Answer : A

Page:    1 / 4   
Exam contains 60 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy | Amazon Exams | Cisco Exams | CompTIA Exams | Databricks Exams | Fortinet Exams | Google Exams | Microsoft Exams | VMware Exams