Question 531 of 1,750
Configuration Management and IaCmediumMultiple SelectObjective-mapped

DOP-C02 Configuration Management and IaC Practice Question

This DOP-C02 practice question tests your understanding of configuration management and iac. Examine the command output carefully: the correct answer depends on what the output actually shows, not on general recall alone. 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 company is using AWS CloudFormation to deploy a multi-tier application. The DevOps team wants to ensure that the database password is not exposed in the template or the console. Which two methods should they use to securely manage the password? (Choose TWO.)

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 CloudFormation parameter with the NoEcho property set to true.

Option B is correct because setting the `NoEcho` property to `true` on a CloudFormation parameter masks the password from console outputs and `DescribeStack` calls, preventing exposure in logs or the AWS Management Console. This is a straightforward way to handle sensitive input without external services, though it does not encrypt the value at rest in the template.

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.

  • Hardcode the password in the template and use a condition to only apply it in production.

    Why it's wrong here

    Hardcoding passwords is insecure.

  • Use a CloudFormation parameter with the NoEcho property set to true.

    Why this is correct

    NoEcho hides the parameter value in the console and logs.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Store the password in AWS Systems Manager Parameter Store and reference it with {{resolve:ssm:...}}

    Why it's wrong here

    Parameter Store can store secure strings, but the resolve syntax is not as secure as Secrets Manager dynamic references and does not have NoEcho automatically.

  • Use a dynamic reference to AWS Secrets Manager secret in the CloudFormation template.

    Why this is correct

    Dynamic references retrieve secrets at stack creation time without exposing them.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Pass the password as user data to the EC2 instance and encrypt the user data.

    Why it's wrong here

    User data is not a secure way to pass passwords.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse `NoEcho` with encryption, thinking it secures the value at rest, when it only masks output; or they incorrectly assume that Systems Manager Parameter Store's `{{resolve:ssm:...}}` syntax works universally in CloudFormation, when it requires the `ssm-secure` variant and has property-specific limitations.

Detailed technical explanation

How to think about this question

Under the hood, CloudFormation's `NoEcho` property works by replacing the parameter value with asterisks in all API responses and console outputs, but the value is still stored in plaintext in the CloudFormation template and can be retrieved by anyone with `DescribeStackResource` permissions on the stack. For stronger security, AWS Secrets Manager dynamic references (`{{resolve:secretsmanager:...}}`) fetch the secret at deployment time and never store it in the template, supporting automatic rotation and fine-grained IAM access control.

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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

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.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 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 DOP-C02 question test?

Configuration Management and IaC — This question tests Configuration Management and IaC — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use a CloudFormation parameter with the NoEcho property set to true. — Option B is correct because setting the `NoEcho` property to `true` on a CloudFormation parameter masks the password from console outputs and `DescribeStack` calls, preventing exposure in logs or the AWS Management Console. This is a straightforward way to handle sensitive input without external services, though it does not encrypt the value at rest in the template.

What should I do if I get this DOP-C02 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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More DOP-C02 practice questions

Last reviewed: Jul 4, 2026

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.

Loading comments…

Sign in to join the discussion.

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services 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 DOP-C02 exam.