A developer creates a token using the 'token create' command with the 'period=24h' flag. What type of token is created?
The period flag creates a periodic token.
Why this answer
The 'token create' command with the 'period=24h' flag creates a periodic token. Periodic tokens have a TTL that is automatically renewed by the client before expiration, but they do not have a maximum lifetime beyond the period itself. This is distinct from normal tokens, which have both a TTL and a max TTL, and root tokens, which are exempt from TTL enforcement.
Exam trap
HashiCorp often tests the distinction between the 'period' flag and the 'ttl' or 'max_ttl' flags; the trap here is that candidates confuse periodic tokens with normal tokens that have a TTL, or assume that 'period' sets a maximum lifetime rather than a renewal interval.
How to eliminate wrong answers
Option A is wrong because a root token is created using the 'root token generation' process (e.g., via operator init or recovery keys), not via the 'token create' command, and it has no TTL or period restrictions. Option C is wrong because an orphan token is created by using the 'orphan=true' flag with 'token create', not the 'period' flag; orphan tokens are not attached to a parent token but still have a TTL/max TTL. Option D is wrong because a batch token is created using the 'batch' flag (or via 'token create -type=batch'), not the 'period' flag; batch tokens are lightweight, non-renewable, and have no associated lease or period.