A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code. What is the optimal way to store and retrieve the list?

QuestionsCategory: Certified Platform Developer IIA managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code. What is the optimal way to store and retrieve the list?
Admin Staff asked 4 months ago
A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code.
What is the optimal way to store and retrieve the list?

A. Store the information in Custom Metadata and query it with SOQL

B. Store the information in a List Custom Setting and access it with the getAll() method

C. Store the information in a List Custom Setting and query it with SOQL

D. Store the information in Custom Metadata and access it with the getAll() method








 

Suggested Answer: B

Community Answer: D

Reference:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm

This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.