An administrator needs to store a secret API token in Ansible Automation Controller so that it can be used in job templates without exposing the token in plain text. Which type of credential should be used?
Trap 1: Machine credential
Incorrect. Machine credential is for SSH authentication, not for storing arbitrary secrets.
Trap 2: Network credential
Incorrect. Network credential is for network device authentication (e.g., SNMP).
Trap 3: Cloud credential
Incorrect. Cloud credential is for cloud provider authentication (e.g., AWS, Azure).
- A
Vault credential
A Vault credential stores the API token as an encrypted secret in Automation Controller, injecting it into job templates at runtime without exposing plaintext. This satisfies the requirement to use the token in job templates while keeping it concealed.
- B
Machine credential
Why it fails: Incorrect. Machine credential is for SSH authentication, not for storing arbitrary secrets.
- C
Network credential
Why it fails: Incorrect. Network credential is for network device authentication (e.g., SNMP).
- D
Cloud credential
Why it fails: Incorrect. Cloud credential is for cloud provider authentication (e.g., AWS, Azure).