nerdexam
SalesforceSalesforce

PDI · Question #6

PDI Question #6: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #6. The question stem and answer options stay visible for context.

Submitted by neha2k· Apr 18, 2026Logic and Process Automation

Question

A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } | Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user's default record type? ns

Options

  • AQuery the Profile where the ID equals userInfo.getProfileID() and then use the
  • BUse Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types,
  • CUse the Schema.userlnfo.Opportunity.getDefaultRecordType() method. < Create the opportunity

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Apex#Schema Class#Record Types#Metadata
Full PDI PracticeBrowse All PDI Questions