How does OAuth strengthen REST API security compared to BasicAuth?
Which mechanism does OAuth use to strengthen REST API security when compared to BasicAuth?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests understanding of OAuth's token-based authorization model versus BasicAuth's credential-passing approach, with the common trap being confusing the transport-layer security (SSL/TLS) with the authorization mechanism itself.
OAuth strengthens REST API security by using access tokens instead of sending user credentials with every request, unlike BasicAuth which transmits username and password in each call. The community consensus confirms tokens as the core differentiator.
Option B (SSL) or D (TLS) is often chosen by candidates who conflate transport encryption with the authorization mechanism, failing to recognize that both BasicAuth and OAuth can use SSL/TLS equally.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
OAuth fundamentally replaces credential transmission with short-lived access tokens (bearer tokens) issued after initial authentication. These tokens are scoped, revocable, and do not expose the user's actual password to the resource server. Community comment [2] clearly explains that tokens eliminate the risk of credential interception on every subsequent API call, which is the primary vulnerability of BasicAuth.Why the Other Options Are Wrong
Options B (SSL) and D (TLS) are transport-layer encryption protocols that protect data in transit; both BasicAuth and OAuth can and should use them, so they do not differentiate OAuth's security model. Option C (Authentication) is incorrect because both BasicAuth and OAuth perform authentication — the key distinction is that OAuth uses token-based authorization for subsequent requests rather than re-sending credentials.Community Comment Notes
Comment [1] concisely captures the core distinction: BasicAuth sends username/password, while OAuth sends tokens. Comment [2] provides the most thorough explanation, highlighting that tokens are issued post-authentication and used for all subsequent requests, reducing credential exposure risk. All voters (100%) correctly selected option A, indicating strong community alignment.Official Reference
Exam Strategy
When comparing authentication mechanisms, focus on what is transmitted in each API request rather than transport-layer protections. Remember that OAuth's primary security advantage over BasicAuth is token-based delegation, not encryption — SSL/TLS applies to both equally.
Related Analysis
Practice All 350-401 Questions
Access 218 questions with complete answers and detailed explanations.
View Full 350-401 Practice Test →