Q
A company uses Dynamics 365 Finance.
You need to cache values for a specific record.
Which collection class should you use?
Select only one answer.
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
Explanation
The correct answer is:
✅ Map
✅ Explanation:
When you need to cache values for a specific record in Dynamics 365 Finance (X++), the most appropriate collection class is:
✔️
Map
Why Map?
-
Mapis a key-value pair collection. -
You can store a record ID (or any unique identifier) as the key, and the associated data (like a cached value or object) as the value.
-
It allows for efficient retrieval based on the key, making it perfect for caching scenarios.
❌ Why the other options are incorrect:
-
List
❌ Ordered collection without key-based lookup. You'd have to iterate to find a record — not efficient for caching. -
Set
❌ Holds unique values but doesn't store key-value pairs, so you can't map values to a specific record. -
Struct
❌ Used to group related fields together (like a lightweight object), but not suitable for storing multiple records or caching by key.
✅ Final Answer:
✔ Map
Want to remember what you got wrong?
Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.
- Save your progress & streak
- Topic-wise quizzes & scores
- Bookmark tricky questions
- Printable MCQ sets
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.