Skip to main content

CISSP practice question · Identity and Access Management (IAM)

A nightly batch job on a company server must call a partner's API. No human user is involved, and the job acts on its…

A nightly batch job on a company server must call a partner's API. No human user is involved, and the job acts on its own behalf rather than for any user. Which OAuth 2.0 grant fits?

  • AAuthorization code grant with PKCE
  • BClient credentials grant
  • CDevice authorization grant
  • DRefresh token grant
Show the answer and explanation

Correct answer: B) Client credentials grant

The client credentials grant is for machine-to-machine access where the client is acting for itself; user-facing grants exist to obtain a user's delegated consent.

Why each option is right or wrong

  • A) Incorrect. The authorization code grant involves a user signing in and consenting through a browser redirect. With no user present, there is no one to authorize the request.
  • B) Correct. In the client credentials grant (RFC 6749 section 4.4) a confidential client authenticates to the authorization server with its own credentials and receives an access token for its own access. It fits server-to-server jobs with no user.
  • C) Incorrect. The device grant lets a user approve access for an input-constrained device, such as a smart TV, from another device. It still needs a human to approve.
  • D) Incorrect. A refresh token grant renews an access token that was already obtained through another grant. It is not a way to obtain the initial authorization for a client.
Exam domain
Identity and Access Management (IAM) · 13% of CISSP
Question type
Multiple choice (one answer)

Practise the full CISSP exam

This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.