Copado-Extension-Builder practice question 4 of 15

Why do you need to create Custom Metadata Types?

Full set: 69 questions
Answer options
A: To store the data records and generate a JSON file.
B: To create a new StandardResource record and link your static resource. Correct answer
C: To create a custom DevOps pipeline and deploy changes to Heroku only.
D: To configure custom metadata records for your Job Template.
Correct Answer:
B. To create a new StandardResource record and link your static resource.
Explanation

Custom Metadata Types are used to store an extension's configuration settings, such as API keys, endpoint URLs, or behavior flags. Unlike custom objects or custom settings, records of Custom Metadata Types are considered metadata. This is crucial for extensions because it allows their configuration to be easily packaged, deployed, and upgraded across different Salesforce orgs. This makes the extension configurable by administrators without requiring code changes, which is a best practice for building scalable and maintainable Copado extensions.

Why Incorrect

A. Transactional data is typically stored in custom objects, not in Custom Metadata Types, which are for setup and configuration data.
C. The user interface for an extension is defined using Lightning Web Components or other UI frameworks, not Custom Metadata Types.
D. Business logic is executed by Apex classes. Custom Metadata Types can store parameters for the logic but do not execute it.

References

1. Copado Documentation, "Extension Development (Custom Integrations) > Build Your First Extension > Create the Custom Metadata Types". This section details creating Custom Metadata Types to hold the configuration for a new job step, stating they are used to "store the configuration of your extension."

2. Salesforce Developer Documentation, "Custom Metadata Types". This document explains that custom metadata records are deployable, packageable, and can be upgraded, which are key reasons for their use in application configuration.

Scroll to Top