NS0-402 practice question 5 of 15
You are sending API commands to NetApp Cloud Manager. In this scenario, which type of authorization is used?
Full set: 58 questionsNetApp Cloud Manager uses a bearer token for API authentication and authorization. To interact with the API, a user must first obtain a refresh token from the Cloud Manager UI. This refresh token is then used to request a short-lived access token (the bearer token). Every subsequent API request must include this access token in the Authorization header, prefixed with "Bearer". This mechanism ensures that all API calls are securely authenticated and authorized, following the OAuth 2.0 framework.
A. OAuth 1.0: The described bearer token flow is characteristic of the OAuth 2.0 framework, not the older, more complex signature-based OAuth 1.0 protocol.
B. No Auth: This is incorrect. Accessing and managing cloud resources via an API requires a secure authentication method to prevent unauthorized actions.
D. API key: Cloud Manager uses a dynamically generated, short-lived bearer token for authorization, not a static, long-lived API key that is typically used for simpler authentication schemes.
1. NetApp Cloud Manager Documentation: Get started with Cloud Manager API. Under the "Authentication and authorization" section, it explicitly states: "Cloud Manager uses a bearer token for API authentication. You need to include the token in the Authorization header when you send an API request." It further details the process of obtaining the refresh token and then the access token (bearer token). (Source: NetApp Official Documentation)
2. NetApp Cloud Manager Documentation: Log in to the API. This section provides the cURL command example for obtaining the access token, which is then used as a bearer token: curl -X POST "https://cloudmanager.cloud.netapp.com/auth/token/acquire" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"refreshToken\": \"\"}". The output is an accessToken used in subsequent calls. (Source: NetApp Official Documentation)
Keep practicing
Take the free NS0-402 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other NS0-402 practice questions
- Question 1You are writing an Ansible playbook and using the official NetApp modules. You must provi…
- Question 2You have deployed your application to an NKS cluster in your on-premises environment with…
- Question 4You must have a firewall adjusted to allow Ansible to work with ONTAP and Element softwar…
- Question 6After a ransomware attack, you are asked to block known ransomware file extensions and to…
- Question 7A customer has a legal requirement to hold data that has a 30-year retention period. The …
- Question 8You are currently working as an infrastructure administrator. Your business is undergoing…
