Argo Workflows artifacts: CAPA practice questions
An artifact in Argo Workflows is a file or a directory that one step produces and another step, or a person, reads later. Parameters carry small string values; artifacts carry data that belongs in object storage, such as a build output, a dataset or a report.
By Ibrahim Yesilay · Published · Updated
Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.
What Argo Workflows artifacts covers in CAPA
An artifact in Argo Workflows is a file or a directory that one step produces and another step, or a person, reads later. Parameters carry small string values; artifacts carry data that belongs in object storage, such as a build output, a dataset or a report. Most artifact features need an artifact repository, for example an S3-compatible bucket such as MinIO, Google Cloud Storage, Azure Blob Storage or Alibaba Cloud OSS.
A template declares an output artifact with a name and the path inside its container where the file will be. When the main container finishes, the wait container uploads that path to the repository. A later step declares an input artifact with a path where the file should appear, and its from field points at the producer, for example {{steps.generate.outputs.artifacts.result}} in a steps template or the tasks prefix inside a DAG. The init container of the consuming Pod downloads the file before the main container starts. Artifacts can also be hardwired from a Git repository, an HTTP URL or a bucket key without any earlier step, and an artifact marked optional does not fail the step when the file is missing.
The workflow controller chooses which repository to use in a fixed order. An artifactRepositoryRef on the workflow wins; otherwise the artifact-repositories ConfigMap in the workflow's namespace is used when it carries the default-artifact-repository annotation; otherwise the repository configured in the controller ConfigMap applies. When a repository is configured that way, a key-only artifact only needs a key, and the bucket and credentials come from the configuration. The documentation recommends this as the normal style because it keeps storage settings out of every workflow.
By default an artifact is packed as a tarball and gzipped. An archive block changes that: none: {} stores the file as it is, and tar with a compression level tunes the gzip step. Uploaded artifacts are not removed automatically unless artifact garbage collection is set. The artifactGC strategy can be OnWorkflowCompletion or OnWorkflowDeletion at the workflow level, and a single artifact can override it, for example with Never to keep it. The garbage collection Pods need their own permissions to delete objects in the bucket.
Key points
- Output artifacts are uploaded by the wait container; input artifacts are downloaded before the main container starts.
- Artifacts are tar and gzip archived by default; archive none stores the raw file.
- artifactRepositoryRef beats the namespace artifact-repositories ConfigMap, which beats the controller default.
- artifactGC deletes stored artifacts on workflow completion or deletion, and Never keeps a single artifact.
Three sample questions
12 CAPA questions on Argo Workflows artifacts, 12 with explanations. How practice works
Question 1
inputs:
artifacts:
- name: data
path: /tmp/data
s3:
bucket: my-bucket
key: data.csv- A.The configuration is correct
- B.The path should be relative
- C.The s3 configuration needs credentials
- D.The name field is unnecessary
Correct answer: A
Sources: Argo Workflows docs: Artifacts, Argo Workflows docs: Fields
Question 2
archiveLogs field in a workflow spec?- A.To save logs to a persistent volume
- B.To enable log aggregation
- C.To save logs as an artifact
- D.To compress log files
Correct answer: C
Sources: Argo Workflows docs: Configuring Archive Logs, Argo Workflows docs: Fields
Question 3
- A.S3
- B.Git
- C.Artifactory
- D.MongoDB
Correct answer: D
Sources: Argo Workflows docs: Configuring Your Artifact Repository
Practice this topic
Focus mode keeps every question on Argo Workflows artifacts until you leave it. 10 free guest answers, then a free account; no credit card.
Or open CAPA practice across all topics.
Sources
The explanation above was checked against these official documents.
- Argo Workflows docs: Artifacts (checked 2026-10-28)
- Argo Workflows docs: Configuring your artifact repository (checked 2026-10-28)
- Argo Workflows docs: Key-only artifacts (checked 2026-10-28)
- Argo Workflows docs: Hardwired artifacts (checked 2026-10-28)
- Argo Workflows docs: Architecture (checked 2026-10-28)