Curated

Software Development Security (8.1–8.5)

0 votes

Questions53

  1. Question 51

    Software Development Security

    A team wants to ensure no single developer can merge code into the main branch alone. Which repository control best achieves this?

    Show the answer

    Correct answerD. Require approved pull requests before merging

    AWhy not this: Signing authenticates the author but does not stop that author from merging their own change.

    BWhy not this: Secret scanning detects credentials in commits but does not require a second reviewer.

    CWhy not this: Backups aid recovery after loss or tampering but do not control who can merge.

    DWhy this is right: Branch protection with required approvals prevents any one person from merging to main alone.

    Branch protection that requires an approved pull request enforces a second reviewer before code reaches main. Commit signing only proves who authored a commit; the author can still merge it unreviewed.

    Open this question
  2. Question 52

    Software Development Security

    Firewall rules across many cloud networks are configured by hand on each device, and the rule sets have drifted out of consistency. Which approach BEST applies software-defined security to fix this?

    Show the answer

    Correct answerD. Push rules from a central controller to all enforcement points

    AWhy not this: A hardware firewall per network is still configured device by device, so the manual inconsistency remains.

    BWhy not this: Rate limiting protects an API from abuse and does not manage firewall rules across networks.

    CWhy not this: Static analysis finds source-code weaknesses and does nothing to rule consistency across network devices.

    DWhy this is right: A central software controller programs every enforcement point from one policy, so rules stay consistent and are applied automatically.

    Software-defined security moves control logic into a central software controller that programs enforcement points through APIs, so every device gets the same rules automatically. Hardware appliances at each edge would still need separate manual configuration, so drift would continue.

    Open this question
  3. Question 53

    Software Development Security

    A team builds cloud environments from deployment templates. Security wants firewall rules and access controls created and applied identically on every build, with no manual steps. Which approach BEST meets this need?

    Show the answer

    Correct answerD. Declare the security controls in the templates

    AWhy not this: A manual checklist depends on people, so controls can be missed or applied differently on each build.

    BWhy not this: Throttling limits API abuse and does not provision firewall rules or access controls for an environment.

    CWhy not this: Static analysis finds source-code flaws and does not create or enforce infrastructure controls.

    DWhy this is right: Controls declared in templates are created by software on each build, so they are consistent, versioned and automated.

    Software-defined security expresses controls as code, so declaring them in templates (infrastructure as code) makes the same controls deploy automatically every time. A manual checklist can be skipped or applied inconsistently, so it fails the no-manual-steps requirement.

    Open this question