题目内容

Which is true about third-party authentication between a requester and a provider?

A. Once completed, the requester can do anything you can do on the provider
B. If your credentials on the requester are compromised, your credentials on the provider are also compromised
C. If the provider revokes access, the requester no longer has any of your info
D. Access can be time-limited to expire on a pre-set date

查看答案
更多问题

Which of the following is/are true regarding JavaScript's prototype inheritance?(i) It can be used to mimic class inheritance(ii) If a property of an object does not exist, this property is checked for up the prototype chain(iii) Every object inherits from exactly one prototype object, including Object (the empty object)(iv) The keyword null is returned when we reach the top of the prototype chain and the property has not been found

A. i and ii
B. ii and iii
C. i, ii, and iv
D. i, ii, iii, and iv

OmniAuth defines a handful of RESTful endpoints your app must provide to handle authentication with a variety of third parties. To add a new auth provider, you create a gem that works with that provider. Which statement is FALSE about OmniAuth?

A. OmniAuth is itself compliant with OCP Using OmniAuth helps your app follow
B. OCP (with respect to 3rd-party authentication)
C. OmniAuth is an example of the Template pattern
D. OmniAuth is an example of the Strategy pattern

Which is true about a class's observance of the Single Responsibility Principle?

A. In general, we would expect to see a correlation between poor cohesion score and poor SOFA metrics
B. Low cohesion is a possible indicator of an opportunity to extract a class
C. If a class respects SRP, its methods probably respect SOFA
D. If a class's methods respect SOFA, the class probably respects SRP

The Rails ActiveRecord caching machinery nicely separates the logic for cache expiration from the rest of the app by adding ActiveRecord hooks to expire stale data. This is an example of effective use of the ---- design pattern.

A. Observer
B. Strategy
C. Factory
D. Singleton

答案查题题库