Curated

Security Architecture 1 (2.1–2.2)

0 votes

Questions66

  1. Question 51

    Security Architecture

    Unit tests with mocked dependencies pass for both an API gateway and a new token-validation service. Before staging, the team must confirm the two components work correctly together, including when the service returns a deny decision or an error. Which two actions BEST do this? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Run tests against the gateway and the service deployed together in an isolated test environmentD. Assert that the gateway blocks requests when the real service returns a deny or an error response

    AWhy not this: Unit tests with a mocked gateway isolate one component, so they cannot reveal problems in how the two really interact.

    BWhy not this: A canary release is a gradual production rollout, not a pre-staging check of component interaction.

    CWhy this is right: Deploying both components together lets tests exercise the real interface between them, which is what integration testing covers.

    DWhy this is right: Checking that the gateway handles the real service's deny and error responses tests the interaction behaviour between the two components.

    Integration testing exercises real components together and checks how they handle each other's outputs, including denials and errors. Higher unit coverage with a mocked gateway still never tests the real interaction, and a canary release is a production rollout step, not a pre-staging interaction test.

    Open this question
  2. Question 52

    Security Architecture

    A pipeline's DAST stage fails a build because of a reflected XSS finding. After the developer commits a fix, what should the pipeline do to verify that this specific finding is closed?

    Show the answer

    Correct answerB. Rerun the failed DAST test on the rebuilt artifact and gate promotion on it

    AWhy not this: A developer's claim is unverified; closing on it skips the automated retest that provides evidence.

    BWhy this is right: Automatically rerunning the failed test on the new build is the retest that proves the specific finding is closed.

    CWhy not this: A canary release exposes real users to the fix and is a rollout technique, not a retest of one finding.

    DWhy not this: Regression testing checks that existing features still work; it does not confirm the XSS finding is gone.

    Automated retest reruns the same failed test against the new build and blocks promotion until it passes, proving the finding is closed. A regression suite checks unrelated functionality, not whether this finding was fixed.

    Open this question
  3. Question 53

    Security Architecture

    A developer writes tests that feed a date-parsing function malformed, empty and boundary values and check each return value, with no other component running. Which testing activity is this?

    Show the answer

    Correct answerB. Unit testing

    AWhy not this: Canary testing exposes a new build to a small share of real users in production.

    BWhy this is right: Testing one function alone against expected results for varied inputs is the definition of unit testing.

    CWhy not this: Regression testing reruns existing tests after a change to catch side effects, not isolated input checks.

    DWhy not this: Integration testing checks interactions between components, but here no other component is running.

    Unit testing checks the smallest testable piece of code, such as one function, in isolation against expected outputs. Integration testing would involve several components working together, which the stem rules out.

    Open this question
  4. Question 54

    Security Architecture

    A function that enforces refund limits calls an external payment API. The pipeline must verify the limit logic on every commit, in seconds, without reaching the live API. What is the BEST approach?

    Show the answer

    Correct answerA. Unit tests with the payment client replaced by a stub

    AWhy this is right: A stub stands in for the API, isolating the function so the test is fast and independent of external services.

    BWhy not this: A full regression replay is broad and slow, and does not isolate the refund-limit function.

    CWhy not this: Calling a sandbox tests the real interaction and depends on the network, so it is neither isolated nor fast.

    DWhy not this: A canary exposes production users to the change and happens after build and test stages.

    A unit test isolates the function and replaces its external dependency with a test double, so it runs fast and needs no network. Sandbox integration tests depend on the external service and are slower, so they do not meet the speed and isolation constraints.

    Open this question
  5. Question 55

    Security Architecture

    An application pulls in a logging library indirectly, through another package, and a CVE is published for that library. Which technique identifies the affected application by matching its dependency tree against vulnerability databases?

    Show the answer

    Correct answerD. Software composition analysis

    AWhy not this: IAST observes code executing under test and reports flaws hit at runtime, not a dependency inventory matched to CVEs.

    BWhy not this: SAST analyzes the organization's own source for coding flaws, not third-party component versions against CVE data.

    CWhy not this: DAST probes a running app from outside and cannot reliably report which library versions are included.

    DWhy this is right: SCA enumerates direct and transitive dependencies and compares versions with known-vulnerability databases.

    SCA inventories direct and transitive open-source components and matches their versions against known-vulnerability data. SAST examines first-party code for insecure patterns and does not map third-party versions to published CVEs.

    Open this question
  6. Question 56

    Security Architecture

    Before implementing a key-exchange protocol for a high-assurance product, an architect needs proof that no sequence of messages lets an attacker learn the session key. Testing can only cover sampled sequences. What should the team use?

    Show the answer

    Correct answerA. Formal verification of the protocol design

    AWhy this is right: Formal verification proves a stated security property holds over all possible states and message sequences.

    BWhy not this: Fuzzing explores many inputs but still samples them, so it cannot prove no attack sequence exists.

    CWhy not this: IAST reports flaws only on code paths exercised by tests, so it cannot cover every sequence.

    DWhy not this: SAST matches code against insecure patterns and does not prove protocol-level properties.

    Formal verification uses mathematical models and logic to prove a property holds across every possible message sequence. Fuzzing and other testing only show behavior for inputs actually tried, so they cannot prove absence of an attack.

    Open this question
  7. Question 57

    Security Architecture

    A vendor's SBoM is a hand-edited spreadsheet created at project start, and a vulnerable library added in a later release never appeared in it. Customers now require an SBoM that matches each shipped build and can be verified as untampered. What should the vendor do?

    Show the answer

    Correct answerD. Generate the SBoM in the build pipeline for every release and sign it

    AWhy not this: A SAST report finds code flaws in first-party source and is not a component inventory customers can check.

    BWhy not this: A DAST report shows runtime behavior of staging, not the components in each shipped build.

    CWhy not this: Quarterly manual updates still leave gaps between releases and give customers no way to verify integrity.

    DWhy this is right: Build-time generation ties the inventory to each shipped artifact, and a signature proves it was not altered.

    Generating the SBoM automatically from each build keeps it matched to what ships, and a digital signature lets customers verify integrity. Periodic manual edits stay stale between updates, and a SAST report does not inventory components.

    Open this question
  8. Question 58

    Security Architecture

    Which three statements about formal methods in software assurance are accurate? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. A proof is only as sound as the specification it is checked againstC. They use mathematical logic to prove a design meets its specificationE. Model checking explores system states against stated properties

    AWhy not this: Blocking exploit attempts from inside the running app is RASP, a runtime protection.

    BWhy this is right: A proof shows conformance to the specification only, so a flawed or incomplete specification weakens the guarantee.

    CWhy this is right: Formal methods apply mathematical logic to show a design or code satisfies a formal specification.

    DWhy not this: Matching components to known-vulnerable versions is SCA, not formal methods.

    EWhy this is right: Model checking systematically explores the states of a model to check that properties hold.

    FWhy not this: Sending malformed input to a running application is fuzzing under DAST, not a proof technique.

    Formal methods prove, with mathematics and tools such as model checking, that a design or code meets a specification, and the result depends on that specification being right. Matching dependencies to vulnerability data describes SCA, not formal methods.

    Open this question
  9. Question 59

    Security Architecture

    A critical flaw is disclosed in a widely used library. The security team has no access to the source code or build pipelines of its third-party products and must quickly learn which ones include it. What should it do?

    Show the answer

    Correct answerD. Query each vendor's software bill of materials

    AWhy not this: SAST requires source code, which the team does not have for third-party products.

    BWhy not this: RASP protects a running app from attacks and does not inventory components; it also cannot usually be added to vendor products.

    CWhy not this: DAST tests exposed interfaces for runtime flaws and does not reveal which libraries are inside a product.

    DWhy this is right: A vendor SBoM lists the components in a product, so the library can be located without source or build access.

    An SBoM is a vendor-supplied inventory of a product's components, so it can be searched for the library without code access. SAST needs source code, which the team lacks, and DAST sees only behavior, not component lists.

    Open this question
  10. Question 60

    Security Architecture

    A retailer's single-page web app and in-store kiosks call its pricing and inventory microservices directly, and bots are scraping prices. Security wants a gateway that verifies callers, limits scraping, drops malformed calls and keeps service addresses private. Which four functions belong on the API gateway? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Reject requests that violate the published API schemaB. Validate JWT access tokens before forwarding callsC. Route calls to backends and translate payload formatsD. Throttle each client with per-key quotas

    AWhy this is right: Schema validation drops malformed or unexpected API requests before they reach services.

    BWhy this is right: The gateway verifies tokens centrally so backends receive only authenticated calls.

    CWhy this is right: Routing to backend services and transforming payloads is a standard gateway role and hides backends.

    DWhy this is right: Per-client quotas and throttling are core gateway controls against scraping and abuse.

    EWhy not this: Posture checks on devices are done by NAC at network admission, not by an API gateway.

    FWhy not this: Image scanning runs in the build pipeline or registry; the gateway handles live calls, not container contents.

    An API gateway sits in front of the services and handles authentication, throttling, schema validation, routing and payload translation. Device patch-level checks are a NAC function at network connection, and image scanning belongs in the build pipeline, not on calls passing through the gateway.

    Open this question
  11. Question 61

    Security Architecture

    A global streaming site's origin is hit by volumetric DDoS, large static video files load slowly overseas, and the checkout API returns per-user data. Which configuration best addresses all three?

    Show the answer

    Correct answerC. Cache static files at the edge, bypass the cache for checkout, and permit only CDN address ranges to the origin

    AWhy not this: A client VPN for visitors is impractical for a public site and leaves the origin serving files and exposed to DDoS.

    BWhy not this: Caching checkout risks serving one user's data to another, and an exposed origin can be attacked directly.

    CWhy this is right: Edge caching speeds static files, checkout stays uncached, and the origin only accepts the CDN's traffic.

    DWhy not this: A forward proxy serves outbound client browsing, and caching checkout leaks user data and does not stop the flood.

    Edge caching speeds static delivery worldwide, bypassing the cache keeps per-user checkout data private, and limiting the origin to CDN ranges forces attacks to hit the CDN's distributed capacity. Caching checkout would leak user data, and a public origin lets attackers bypass the CDN.

    Open this question
  12. Question 62

    Security Architecture

    Branch firewalls and servers send syslog directly to the central SIEM over a WAN link that drops several times a day, and events are lost during outages. Which addition best prevents the loss?

    Show the answer

    Correct answerA. Log collector at each branch

    AWhy this is right: A collector queues events locally and forwards them once the link recovers, so nothing is lost.

    BWhy not this: A sensor produces detections of its own; it does not store and relay other sources' logs.

    CWhy not this: A tap copies packets for monitoring tools; it does not receive or queue syslog events.

    DWhy not this: A forward proxy handles outbound web requests and has no role in log delivery.

    A local log collector receives events from branch sources, stores them while the WAN is down, and forwards them to the SIEM when it returns. An IDS sensor generates its own alerts but does not buffer other devices' logs.

    Open this question
  13. Question 63

    Security Architecture

    A team wants to see which hosts talk to which and in what volumes, without capturing packet payloads. Which component receives the NetFlow records exported by the routers?

    Show the answer

    Correct answerB. Flow collector

    AWhy not this: A reverse proxy fronts servers for inbound requests and does not collect router telemetry.

    BWhy this is right: A flow collector ingests exported records and summarizes who talked to whom and how much.

    CWhy not this: A tap duplicates full packets including payloads; it does not collect exported flow records.

    DWhy not this: A scanner probes hosts for weaknesses and does not receive traffic records.

    A flow collector receives and stores flow records exported by routers and switches, which show conversations and volumes but not payloads. A tap copies full packets, so it captures payloads and does not receive exported flow records.

    Open this question
  14. Question 64

    Security Architecture

    A passive IDS must capture every frame, including malformed ones, on a saturated full-duplex 10 Gbps uplink for forensic analysis. Which traffic source is best?

    Show the answer

    Correct answerA. Network tap

    AWhy this is right: A tap duplicates both directions of the link in hardware, giving complete, lossless capture.

    BWhy not this: An inline IPS sits in the traffic path and acts on traffic; it is not a passive copy source.

    CWhy not this: A forward proxy handles only proxied web requests, not every frame on a link.

    DWhy not this: SPAN mirroring is lowest priority on the switch, so frames drop under saturation and errors may be hidden.

    A network tap copies all traffic in both directions at the link level, including errored frames, without dropping under load. A SPAN port is processed by the switch, which can drop mirrored frames when oversubscribed and may filter bad ones.

    Open this question
  15. Question 65

    Security Architecture

    A software composition scan lists 300 vulnerable components across the estate, and the team can patch only 20 this sprint. What should the team do FIRST to decide which to fix?

    Show the answer

    Correct answerC. Analyze each finding's exploitability, exposure and asset criticality, then rank them

    AWhy not this: RASP blocks attacks at runtime as a control; it does not decide which findings to fix first.

    BWhy not this: An SBoM lists components; the scan already found the vulnerable ones, so a new inventory does not rank them.

    CWhy this is right: Vulnerability analysis weighs real-world risk of each finding, which is what ordering a limited patch queue requires.

    DWhy not this: SAST examines first-party source code and does not assess the risk of vulnerable third-party components.

    Vulnerability analysis validates findings and ranks them by exploitability, exposure and asset criticality, so limited patch capacity goes to the highest real risk. An SBoM only inventories components, and the scan has already identified them, so regenerating it does not help prioritize.

    Open this question
  16. Question 66

    Security Architecture

    After a merger, two hospitals run electronic health record systems from different vendors. Clinicians must view each other's patient records in real time, and neither vendor will change its internal data model. Which design BEST meets this need?

    Show the answer

    Correct answerD. An integration layer that exposes a standards-based API and maps each data model to a shared schema

    AWhy not this: Load balancing spreads requests across servers of one application and does not translate between two data models.

    BWhy not this: Vertical scaling adds capacity to a server and does nothing to make different systems exchange data.

    CWhy not this: Replication supports recoverability and data copies, but the other system still cannot read the data in real time.

    DWhy this is right: A shared schema and standard API let the two systems exchange usable records without altering either vendor's internal model.

    Interoperability means different systems can exchange and use each other's data. A standards-based API with mapping to a shared schema does this without changing either vendor's internal model. Replication improves recoverability, but it does not make one system's data usable by the other.

    Open this question