How to Securely Consume External REST APIs in Dynamics 365?
Table of Contents
Question
Your company is planning to consume an external RESTful API to extend the functionality of their Microsoft Dynamics 365 finance and operations apps.
You need to ensure secure and reliable communication between the external service and the app.
What should you do?
Select only one answer.
A. Configure the external service to accept requests from any origin by enabling CORS.
B. Disable firewall settings to allow unrestricted access to the external service.
C. Implement OAuth 2.0 for authentication when consuming the RESTful API.
D. Use basic authentication with a username and password hardcoded into the application code.
Answer
C. Implement OAuth 2.0 for authentication when consuming the RESTful API.
Explanation
Implementing OAuth 2.0 is the correct method for secure authentication when consuming RESTful APIs. Hardcoding credentials is insecure and not recommended. Disabling firewall settings would compromise the security of the system. Enabling CORS (Cross-Origin Resource Sharing) is not related to authentication and does not ensure secure communication by itself.
Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 exam and earn Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification.