nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #47

To create a non-root token with time-to-live (TTL) set to 30 minutes but with no max TTL which flag would you use?

The correct answer is A. -ttl=30n. To set a token's time-to-live (TTL) to 30 minutes, you would use the -ttl=30m flag, with the 'no max TTL' property typically managed by other configuration or policy settings allowing indefinite renewal.

Submitted by renata2k· Apr 18, 2026Administer Vault

Question

To create a non-root token with time-to-live (TTL) set to 30 minutes but with no max TTL which flag would you use?

Options

  • A-ttl=30n
  • B-explicit-max-ttl=0
  • C-orphan
  • DNone of the above

How the community answered

(37 responses)
  • A
    84% (31)
  • B
    5% (2)
  • C
    3% (1)
  • D
    8% (3)

Why each option

To set a token's time-to-live (TTL) to 30 minutes, you would use the `-ttl=30m` flag, with the 'no max TTL' property typically managed by other configuration or policy settings allowing indefinite renewal.

A-ttl=30nCorrect

The `-ttl=30m` flag correctly sets the token's initial time-to-live to 30 minutes as specified. The property of 'no max TTL' means the token can be renewed indefinitely up to its parent's limits, which is often configured via a policy or by using the `-explicit-max-ttl=0` flag, but `-ttl=30m` specifically addresses the initial TTL requirement.

B-explicit-max-ttl=0

The `-explicit-max-ttl=0` flag sets the token's explicit maximum TTL to zero, meaning it can be renewed indefinitely up to its parent's limits, but it does not specify the initial TTL of 30 minutes, which is a separate requirement.

C-orphan

The `-orphan` flag creates a token without a parent, which is a different concern than setting its TTL or max TTL.

DNone of the above

Option A is the correct flag for setting the initial TTL.

Concept tested: Vault token creation with TTL

Source: https://developer.hashicorp.com/vault/docs/commands/token/create#options

Topics

#Vault Tokens#TTL#Token Management#CLI

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice