15 Auth & Security questions from the FastAPI bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.named permission strings declared on a dependency and checked against a token to enforce fine-grained access
B.the security class that reads a bearer token from the Authorization header and powers the docs login flow
C.a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
D.the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
2. Which term means: "the security class that reads a bearer token from the Authorization header and powers the docs login flow"?
Mid
A.Security scopes
B.Security helper
C.OAuth2PasswordBearer
D.JWT
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.OAuth2PasswordBearer — a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
B.OAuth2PasswordBearer — named permission strings declared on a dependency and checked against a token to enforce fine-grained access
C.OAuth2PasswordBearer — the security class that reads a bearer token from the Authorization header and powers the docs login flow
D.OAuth2PasswordBearer — the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
4. What is JWT?
Mid
A.a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
B.the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
C.the security class that reads a bearer token from the Authorization header and powers the docs login flow
D.a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
Answer + AI explanation with Pro
5. Which term means: "a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request"?
Mid
A.Security helper
B.HTTPException
C.Security scopes
D.JWT
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.JWT — named permission strings declared on a dependency and checked against a token to enforce fine-grained access
B.JWT — a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
C.JWT — a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
D.JWT — the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
7. What is Security scopes?
Senior
A.a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
B.the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
C.the security class that reads a bearer token from the Authorization header and powers the docs login flow
D.named permission strings declared on a dependency and checked against a token to enforce fine-grained access
Answer + AI explanation with Pro
8. Which term means: "named permission strings declared on a dependency and checked against a token to enforce fine-grained access"?
Senior
A.Security helper
B.HTTPException
C.Security scopes
D.JWT
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Security scopes — the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
B.Security scopes — a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
C.Security scopes — a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
D.Security scopes — named permission strings declared on a dependency and checked against a token to enforce fine-grained access
Answer + AI explanation with Pro
10. What is HTTPException?
Junior
A.the security class that reads a bearer token from the Authorization header and powers the docs login flow
B.a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
C.named permission strings declared on a dependency and checked against a token to enforce fine-grained access
D.the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
11. Which term means: "the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized"?
Junior
A.HTTPException
B.Security helper
C.JWT
D.Security scopes
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.HTTPException — named permission strings declared on a dependency and checked against a token to enforce fine-grained access
B.HTTPException — a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
C.HTTPException — a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
D.HTTPException — the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
13. What is Security helper?
Mid
A.a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
B.named permission strings declared on a dependency and checked against a token to enforce fine-grained access
C.a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
D.the security class that reads a bearer token from the Authorization header and powers the docs login flow
Answer + AI explanation with Pro
14. Which term means: "a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI"?
Mid
A.Security scopes
B.OAuth2PasswordBearer
C.Security helper
D.HTTPException
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Security helper — a compact signed token, carrying encoded claims, commonly issued at login and verified on each protected request
B.Security helper — the security class that reads a bearer token from the Authorization header and powers the docs login flow
C.Security helper — a specialized form of Depends that injects a credential provider and also records the scheme in the generated OpenAPI
D.Security helper — the exception raised to return an error response with a chosen status code and detail, such as 401 for unauthorized
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Auth & Security question come with Pro.