Режими тренування
Спробуйте різні формати для кращого засвоєння матеріалу
Питання тесту
Ознайомтесь з питаннями перед проходженням. Варіанти відповідей приховані для кращої підготовки.
Запитання 1
Один варіант відповідіWhat is the primary reason access tokens should be kept in memory rather than persisted to disk in a React Native app?
Запитання 2
Один варіант відповідіWhy is `expo-secure-store` preferred over `AsyncStorage` for storing refresh tokens?
Запитання 3
Один варіант відповідіIn the access/refresh token pattern, why is the access token designed to be short-lived (e.g., 5-15 minutes)?
Запитання 4
Один варіант відповідіWhat problem does "refresh token rotation" specifically address?
Запитання 5
Один варіант відповідіWhy shouldn't sensitive clinical/PHI data be persisted via `redux-persist` using its default storage engine in a healthcare RN app?
Запитання 6
Один варіант відповідіWhat is the purpose of adding a biometric re-confirmation step (e.g., Face ID) on top of an already-valid OAuth session when the app returns from background?
Запитання 7
Один варіант відповідіIn the "single-flight" refresh pattern, what problem is being solved when multiple API calls receive a 401 simultaneously?
Запитання 8
Один варіант відповідіWhat is the main security benefit of sender-constrained tokens (e.g., via DPoP or mTLS client certificates) over a standard bearer refresh token?
Запитання 9
Один варіант відповідіWhy is certificate pinning relevant to protecting tokens, even though tokens are already stored securely on-device?
Запитання 10
Один варіант відповідіIf a refresh token is stolen by an attacker but rotation/reuse-detection somehow fails to catch it, which mechanism still bounds the potential damage?
Запитання 11
Один варіант відповідіWhich library combination is most appropriate for implementing a PKCE-compliant OAuth/OIDC login flow in an Expo-managed React Native app, while avoiding an embedded login WebView?
Запитання 12
Один варіант відповідіYou need to store a refresh token securely in an Expo-managed RN app. Which snippet correctly does this using `expo-secure-store`?
Запитання 13
Один варіант відповідіIn an RTK Query setup, where is the correct place to implement the single-flight token-refresh-on-401 logic?
Запитання 14
Один варіант відповідіWhich approach correctly implements certificate pinning for API calls handling PHI in a React Native app?
Запитання 15
Один варіант відповідіA teammate suggests storing both the access token and refresh token together in a single `expo-secure-store` entry as a JSON string to simplify the code. What's the main concern with this approach?