Quiz Questions - Answers Quiz Questions - Answers
Quiz Questions - Answers Quiz Questions - Answers
A : Passwords
B : Encrypted passwords
C : Authorization tokens
D : Cookies
Answer
Answer: C - Authorization tokens. OAuth doesn’t share passwords but instead uses authorization tokens to prove
identities.
A : True
B : False
Answer
Answer: B - False. Google will limit access to the application to only the scope the application requests. For example, if a
user only grants access to their email and profile picture then the applicaiton can only access the user’s email and profile
picture. Any attempt to use other Google services (e.g. the user’s calendar) will fail.
A : When the user clicks the "Sign in with Google" button in the /login page.
B : When the /login page first renders.
C : When the /login page renders and an authorization code exists as a query parameter of the URL.
D : When the user clicks the "Sign In" button in the app header.
Answer
Answer: C - When the /login page renders and an authorization code exists as a query parameter of the URL.
Answer
Answer: A - It provides access to the Apollo client instance.
5. What does the authUrl query field in our API return when resolved
successfully?
Answer
Answer: D - An authentication URL from Google’s servers where users are directed to and can provide their account
information and authorize our app.
Answer
Answer: A - onCompleted() is executed when the query/mutation successfully completes.
7. The onError() callback function result of the useQuery and useMutation Hooks
allows us to specify how we want a component to handle network-related
functionality.
A : True
B : False
Answer
Answer: B - False. The onError() callback function is executed in the event of a query/mutation error.