Building Applications and Solutions with Microsoft 365 Core Services (legacy) — Question 38

You are developing a Microsoft Office Add-in for Word.
You need to persist the user state across sessions by using the Office JavaScript API.
Which two objects can you use to persist the state? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

Answer options

Correct answer: C, D

Explanation

The correct answers are C (Settings) and D (CustomProperties) because these objects are designed to store data specific to the add-in and can persist across sessions. Options A (CustomXMLParts) and B (RoamingSettings) do not fulfill the requirement for persisting user-specific state in the context of an Office Add-in for Word.