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 questions
Answer options
A: OAuth 1.0
B: No Auth
C: bearer token Correct answer
D: API key
Correct Answer:
C. bearer token
Explanation

NetApp 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.

Why Incorrect

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.

References

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)

Scroll to Top