Authorisation — Who Enforces What — Concept Check
Questions on Authorisation — Who Enforces What. The frontend decides what to show; the backend decides what is allowed. Every rule needs to exist on both sides, and only one of them is security.
Questions in this quiz
8 questions on Authorisation — Who Enforces What — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A user successfully accesses an admin endpoint using curl, despite the admin link being hidden on the frontend. What is the likely issue?
- AThe user bypassed server authentication
- BThe endpoint URL was leaked
- CFrontend hiding does not enforce security
- DThe server has a misconfigured firewall
2.What happens if a frontend checks for user roles but the backend does not?
- AUsers will see 403 errors
- BUsers may access unauthorized data
- CThe application will crash
- DData will be encrypted
3.A developer implements role checks only on the client-side. What is the risk?
- AEnhanced security
- BUnauthorized data access
- CReduced server load
- DImproved performance
4.A service returns a full dataset and relies on the frontend to filter based on user role. What is a potential issue?
- AImproved data processing speed
- BSensitive data may be exposed
- CReduced server workload
- DIncreased network efficiency
5.Why is it problematic to store user roles in a JWT without frequent updates?
- ARole changes are delayed until token expiry
- BTokens become too large
- CJWTs are inherently insecure
- DIt complicates token generation
6.A developer believes hiding an admin link on the frontend secures the admin panel. Why is this incorrect?
- AIt reduces server load
- BFrontend hiding improves security
- CIt makes the UI cleaner
- DHidden links do not prevent direct access
7.What is a common vulnerability in web applications related to authorisation?
- AEndpoints use complex URLs
- BEndpoints check login but not ownership
- CEndpoints are not RESTful
- DEndpoints are too slow
8.How can sequential integer IDs in URLs lead to security issues?
- AThey allow easy enumeration of resources
- BThey require more storage
- CThey complicate URL parsing
- DThey improve query performance