Which NSX authentication uses cookies for subsequent API calls instead of the username and password?
Show answerHide answer
Correct answer: D Session based authentication
Explanation
Explanation:VMware NSX (vDefend) provides multiple authentication methods for API access. Some methods require credentials with every request, while others establish a session and return a cookie or token. The method that specifically uses cookies for subsequent API calls improves performance and security by avoiding repeated transmission of credentials.
Correct Option:
D. Session based authentication –
This method first validates username/password credentials and returns a session cookie (JSESSIONID) to the client. All subsequent API calls must include this cookie rather than resending credentials. The cookie remains valid until logout or timeout, reducing authentication overhead and credential exposure.
Incorrect Options:
A. HTTP Basic authentication –
Basic authentication sends the username and password Base64-encoded in every API request header. It does not generate or use any cookie for subsequent calls. Each request is independently authenticated, which increases overhead and security risks without session management.
B. Principal Identity authentication –
This is used for service accounts and automation tools, typically relying on certificate-based authentication or predefined identities. It does not involve a cookie mechanism. Principal Identity is designed for machine-to-machine communication without interactive session cookies.
C. Certificate based authentication –
This method uses X.509 client certificates to authenticate each API request. No username/password or session cookie is involved. Every request includes the certificate for mutual TLS authentication, making it stateless and cookie-free by design.
Reference:
VMware NSX API Guide: "Authentication Methods" – section on Session-Based Authentication (using JSESSIONID cookie). Also covered in VMware vDefend Administration Guide, chapter on API Access and Security, and NSX-T 3.x/4.x documentation on session management.