- A
Embed secrets directly in the container image using COPY instructions.
Why wrong: Embedding secrets in the image makes them accessible to anyone with image access and violates principle of least privilege.
- B
Pass secrets as build arguments in the Docker build command.
Why wrong: Build arguments are stored in image layers and can be retrieved using docker history.
- C
Use a secure secret store like HashiCorp Vault and retrieve secrets at runtime via API.
A secret store provides dynamic, audited, and encrypted access to secrets without embedding them in code or images.
- D
Store secrets as environment variables in the Docker Compose file.
Why wrong: Environment variables in Docker Compose can be read during container inspection and may be leaked in logs.
Quick Answer
The answer is to use a secure secret store like HashiCorp Vault and retrieve secrets at runtime via API. This approach is correct because it decouples sensitive data—such as database credentials—from application code and container images, following the core principle of secret management for Docker containers. By authenticating to Vault’s REST API at runtime, microservices can fetch dynamic, encrypted secrets without ever embedding them in a Dockerfile or environment variable, which eliminates the risk of exposure in image layers or version control. On the Cisco DevNet Associate 200-901 exam, this tests your understanding of secure application deployment patterns within containerized environments on UCS, often appearing as a scenario where a team must avoid hardcoded credentials. A common trap is selecting “environment variables at container start,” which still leaves secrets visible in process listings or logs. Memory tip: think “Vault decouples, runtime retrieves”—the secret never sleeps in the image.
200-901 Application Deployment and Security Practice Question
This 200-901 practice question tests your understanding of application deployment and security. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A DevOps team is deploying a microservices application on Cisco UCS using Docker containers. They need to ensure that secrets such as database credentials are securely managed without hardcoding them in the application code or container images. Which approach should they use?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Use a secure secret store like HashiCorp Vault and retrieve secrets at runtime via API.
Option C is correct because it follows the principle of secret management by decoupling sensitive data from application code and container images. HashiCorp Vault provides a centralized, encrypted secret store with dynamic secrets, access policies, and audit logging, allowing the microservices to authenticate and retrieve credentials at runtime via its REST API, eliminating the need to hardcode secrets.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Embed secrets directly in the container image using COPY instructions.
Why it's wrong here
Embedding secrets in the image makes them accessible to anyone with image access and violates principle of least privilege.
- ✗
Pass secrets as build arguments in the Docker build command.
Why it's wrong here
Build arguments are stored in image layers and can be retrieved using docker history.
- ✓
Use a secure secret store like HashiCorp Vault and retrieve secrets at runtime via API.
Why this is correct
A secret store provides dynamic, audited, and encrypted access to secrets without embedding them in code or images.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Store secrets as environment variables in the Docker Compose file.
Why it's wrong here
Environment variables in Docker Compose can be read during container inspection and may be leaked in logs.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Cisco often tests the misconception that environment variables in Docker Compose or build arguments are secure enough for secrets, but the trap here is that these methods leave secrets exposed in plaintext within the image layers, logs, or runtime environment, whereas a dedicated secret store like Vault provides encryption, rotation, and access control.
Detailed technical explanation
How to think about this question
Under the hood, HashiCorp Vault uses a secure backend (e.g., Consul, integrated storage) to store secrets encrypted at rest with a master key, and it supports dynamic secrets (e.g., short-lived database credentials) that expire after use, reducing the risk of credential leakage. The microservice typically authenticates to Vault using a token, Kubernetes service account, or TLS certificate, then retrieves secrets via the Vault API (e.g., `GET /v1/secret/data/myapp`), often with a sidecar like Vault Agent to handle token renewal and secret injection. In a real-world scenario, this approach is critical for compliance with standards like PCI-DSS or SOC 2, where secrets must never appear in logs, images, or source code.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Application Deployment and Security — study guide chapter
Learn the concepts, then practise the questions
- →
Application Deployment and Security practice questions
Targeted practice on this topic area only
- →
All 200-901 questions
505 questions across all exam domains
- →
Cisco DevNet Associate 200-901 study guide
Full concept coverage aligned to exam objectives
- →
200-901 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related 200-901 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Software Development and Design practice questions
Practise 200-901 questions linked to Software Development and Design.
Understanding and Using APIs practice questions
Practise 200-901 questions linked to Understanding and Using APIs.
Cisco Platforms and Development practice questions
Practise 200-901 questions linked to Cisco Platforms and Development.
Application Deployment and Security practice questions
Practise 200-901 questions linked to Application Deployment and Security.
Infrastructure and Automation practice questions
Practise 200-901 questions linked to Infrastructure and Automation.
Network Fundamentals practice questions
Practise 200-901 questions linked to Network Fundamentals.
200-901 fundamentals practice questions
Practise 200-901 questions linked to 200-901 fundamentals.
200-901 scenario practice questions
Practise 200-901 questions linked to 200-901 scenario.
200-901 troubleshooting practice questions
Practise 200-901 questions linked to 200-901 troubleshooting.
Practice this exam
Start a free 200-901 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this 200-901 question test?
Application Deployment and Security — This question tests Application Deployment and Security — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use a secure secret store like HashiCorp Vault and retrieve secrets at runtime via API. — Option C is correct because it follows the principle of secret management by decoupling sensitive data from application code and container images. HashiCorp Vault provides a centralized, encrypted secret store with dynamic secrets, access policies, and audit logging, allowing the microservices to authenticate and retrieve credentials at runtime via its REST API, eliminating the need to hardcode secrets.
What should I do if I get this 200-901 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more ways this is tested on 200-901
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. During a security audit, an engineer discovers that a CI/CD pipeline is storing API keys in plain text in environment variables. Which best practice should be implemented to mitigate this risk?
medium- A.Store secrets in a .env file and add it to the repository with restricted access.
- B.Encrypt the environment variables using a tool like openssl and store the key elsewhere.
- ✓ C.Use a dedicated secrets management service like HashiCorp Vault or AWS Secrets Manager and retrieve secrets at runtime.
- D.Remove the API keys from the pipeline and require manual entry each time a build runs.
Why C: Option C is correct because dedicated secrets management services like HashiCorp Vault or AWS Secrets Manager provide secure storage, access control, and audit logging for sensitive data. They allow the CI/CD pipeline to retrieve API keys at runtime via authenticated API calls, ensuring secrets are never stored in plain text in environment variables or configuration files. This approach aligns with the principle of least privilege and eliminates the risk of exposure through source code or build logs.
Keep practising
More 200-901 practice questions
- A company uses a CI/CD pipeline to deploy network configurations. The pipeline includes a stage that runs automated test…
- Which TWO statements about REST API design best practices are correct?
- A network engineer is using the Cisco Meraki API to retrieve a list of SSIDs for a specific network. The API returns an…
- When designing a REST API client for a Cisco DNA Center deployment, which authentication method should be used to obtain…
- A Python script uses the Cisco Meraki API to create a new network and then immediately attempts to configure an SSID on…
- A DevOps team manages a multi-site Cisco Meraki network with 50 MX appliances and 200 MR access points. They use a Pytho…
Last reviewed: Jun 11, 2026
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.