CompTIA SY0-701: Security Architecture Essentials
A team is adding document recognition to a contractor-onboarding service. Applicants submit identity documents, an external recognition provider extracts selected fields, and an internal reviewer decides whether to accept the record. Product managers favor the fastest integration: let the browser send a document directly to the provider and return its result to the application. The security architect proposes an alternative in which the company receives and controls the document first.
Neither diagram is secure simply because its boxes say “cloud,” “encrypted,” or “zero trust.” The decision depends on who can read each document, what authority is carried across each connection, how outside results are interpreted, and what happens when a component is unavailable or dishonest. This fictional case offers a practical way to make those tradeoffs visible without pretending to describe a real organization’s systems or legal requirements. Security architecture is the work of choosing enforceable boundaries and proving that they support a business operation under normal and abnormal conditions. A list of firewalls, frameworks, and products cannot substitute for that decision.
Before choosing components, establish the system’s protection needs. Here the application must associate each uploaded file with the correct tenant and applicant, prevent unauthorized staff or other applicants from reading it, avoid exposing provider credentials to the browser, keep recognition results from changing verified identity fields without review, and delete copies according to a retention decision that the business owner can actually enforce.
Availability is part of the same design. Applicants must receive an understandable pending status if recognition is delayed; administrators need a way to retry work without silently creating duplicate records; and onboarding must not be marked complete merely because an external API returned a successful HTTP status. The provider’s output is evidence for a reviewer, not authorization to approve an identity.
NIST SP 800-160 Volume 1 Revision 1 treats trustworthy security as a systems-engineering concern, tied to stakeholder protection needs and verifiable system behavior across the life cycle. It does not prescribe this application’s cloud provider, storage design, or legal retention interval. The useful translation is to write testable requirements before debating which security product to deploy.
For example, “private storage” is not yet a requirement an engineer can prove. “An authenticated user from tenant A cannot fetch a file belonging to tenant B, even when they know its object identifier” is testable. So is “a worker’s recognition credential cannot list unrelated applicants’ files.” Requirements should make a failed decision observable, not merely express security aspirations.
OWASP’s threat modeling guidance recommends describing processes, data stores, external entities, flows, and trust boundaries. For this service, draw the applicant’s browser, the company’s application API, a private intake store, an isolated processing worker, the recognition provider, a result store, and the staff review interface. Mark where the data or responsibility changes hands. Do not draw a single “secure cloud” boundary around every service and leave the authorization questions unanswered.
The applicant supplies a file and a claimed case identifier. The application must resolve the authorized applicant and tenant from a verified session and server-side case record; it should not accept the tenant simply because it appears in a form field. The intake store receives bytes that may be malformed or hostile. The worker receives permission to read a narrowly selected object, not unrestricted storage administration. The external provider receives only the data the agreed recognition task requires, under a separate service credential. Its response crosses back as untrusted external data even when transport authentication succeeds.
| Boundary crossed | Decision to enforce | Evidence and failure behavior |
|---|---|---|
| Applicant to application API | Is this caller allowed to create a document for this case and tenant? | Server-resolved tenant/case ownership; reject another tenant’s identifier before issuing upload authority. |
| API to private intake storage | Can the upload alter only the intended temporary object? | Short-lived, object-scoped write permission; no public listing or read-back before checks. |
| Intake store to processing worker | Is the object eligible to be parsed and sent outside? | Type, size, content and policy results recorded; suspicious or unsupported inputs stay quarantined. |
| Worker to recognition provider | May this specific task disclose these selected fields to this approved service? | Distinct service identity, permitted destination, request correlation, retention agreement; no browser-held provider secret. |
| Provider response to case record | Does this result belong to this job, applicant and tenant? | Authenticated response plus server-side job lookup; reject replay, mismatched job, unexpected fields or unauthorized overwrite. |
The table is an architectural review artifact, not a claim that those controls already exist. A design review should attach actual policy rules, configuration evidence, failure traces and owners before granting deployment approval. Where the team lacks evidence, the honest status is “unverified,” not “compliant.”
In a direct integration, the browser uploads to the recognition provider and the application receives a job identifier or extracted result. It may reduce company-managed file storage and processing time, but it changes who accepts untrusted files, what applicant data enters a third party, and what is exposed to client code. A long-lived provider API key embedded in a browser would be unacceptable. Direct upload might still be viable if the provider supports carefully constrained, short-lived upload authorization and the company’s server independently validates tenant ownership, result authenticity, retention and retrieval permissions.
In a brokered design, the application accepts the authorized job, stores the untrusted file in an isolated intake area, and queues a scoped worker to validate and submit it. This creates an additional place where sensitive material exists and must be protected. It also gives the organization more control over file eligibility, timing, audit evidence and outbound disclosure. The queue is not a security boundary by itself; a broadly privileged worker can be just as dangerous as an exposed browser credential.
For the fictional service, a brokered intake is the stronger working proposal because review of file eligibility and outbound data minimization are hard requirements. That recommendation is conditional. It would change if the provider’s direct-upload model offered equivalent controls with less retained company data, or if the company could not operate the broker safely. Architecture involves recorded choices, not a universal preference for adding middle layers.
Ask what changes when a second recognition provider is introduced. Will each provider get a separate credential and explicit policy? Can a request to one provider be replayed against another? Can an emergency provider switch bypass applicant disclosure or retention rules? A design that handles one happy-path vendor call but cannot answer these questions has not demonstrated a dependable trust boundary.
Private networking, TLS and firewall rules constrain reachability, but none of them establishes that a service may read a particular tenant’s document. The worker might connect from an allowed network and still use an overprivileged credential. Conversely, a remote service can be legitimate if its identity, permitted resources, request context and traffic are properly controlled.
NIST SP 800-207A explains why cloud-native access control must consider application and service identities in addition to network parameters. This is particularly relevant when the intake API, queue consumer and provider connection operate in different environments. The publication describes architectural patterns; it does not establish that a specific API gateway, service mesh or token format is mandatory for this fictional integration.
Authorize at the resource where the action occurs. The API checks whether the applicant can start work on a case. The worker is limited to assigned document objects and a permitted provider operation. The result writer must check the job’s stored case and tenant rather than trusting either field returned by the provider. If identity or policy information is unavailable, sensitive cross-tenant reads and privileged writes should fail closed, while the application may safely show the job as pending and offer an audited retry.
That separation is easier to reason about when the team already understands identity lifecycle and authorization decisions. For document-processing integrations, the practical decision is which identity may request which operation, how each step checks that authority, and what evidence the system retains when the result is challenged.
Use distinct application and provider credentials. Short validity periods and narrowly scoped permissions reduce exposure, but they do not replace server-side case checks or revocation. A logging system should retain the verified acting principal, object reference, policy result and job ID; it should not copy raw identity documents, complete secrets or provider response bodies into unrestricted logs.
The intake object is untrusted even after it arrives through HTTPS. A misleading file extension, forged content type, malformed document or decompression bomb may be an attack on the parser or a way to consume processing capacity. OWASP’s file upload guidance calls for layered controls such as allowlisting business-needed types, size limits, authorization, safe storage and appropriate content inspection. No scan guarantees that a file is harmless; the worker still requires isolation, limited permissions and bounded resource use.
The original filename is display data, not a safe storage path. Give the object a generated identifier, store the original name separately if needed, and check it before rendering or exporting. A successful signature or extension test cannot grant permission to execute embedded content. If a document fails validation, keep its decision and reason in a restricted case record rather than feeding it repeatedly through the same vulnerable converter.
Callbacks deserve an equally explicit policy. A result endpoint should authenticate the sender using a supported mechanism, verify the server-side job association, handle duplicates idempotently, apply expiry and replay controls where appropriate, and reject fields or state transitions that the recognition provider has no authority to change. A signature on a callback is not proof that its extracted name matches the applicant or that an existing case belongs to the sender’s tenant.
Outbound connections also need a destination boundary. If a worker accepts a callback URL or remote document URL from a customer or model output, it can be tricked into contacting internal services. OWASP’s SSRF prevention guidance supports explicit allowed destinations, careful address validation, and restrictions on redirects and connection behavior. For this fixed provider integration, constructing the endpoint from administrator-controlled configuration is safer than accepting arbitrary URLs in a job payload.
Consider a recognition request that times out after the provider accepted the file. Retrying blindly might create another copy and another charge, while discarding the job could strand an applicant. The worker needs a durable state model: submitted, pending confirmation, completed, rejected, or requiring manual reconciliation. Use a stable internal job key and any provider-supported idempotency mechanism, but do not assume every provider implements idempotency or that a network timeout proves no work occurred.
The system also needs a recovery path for a provider outage. The onboarding interface can keep the case pending, prevent repeated public uploads, and notify an authorized reviewer about a delayed decision. It must not silently approve a contractor because recognition was unavailable. If the team proposes an alternate provider, test which data must move, which new authorization is required and whether old provider copies are addressed by contractual and technical deletion controls.
Deletion itself must cross boundaries. Removing a company intake object does not automatically delete the provider’s submitted copy, cached result, backup or audit record. Map retention obligations to actual systems and confirm which deletions can be proved, requested, or merely scheduled. Do not promise instantaneous disappearance where the service contract or technical architecture cannot support it. Security and resilience meet at these edges: a queue backlog, lost callback, disabled identity provider, expired key and accidental public storage policy each require a known response. Teams should rehearse failure while verifying that tenant boundaries and business approval gates remain intact.
The final review should record the rejected direct-upload option, the selected brokered design, the reasons for the selection and its new operational obligations. Assign an owner to the intake API, storage policy, parser isolation, provider integration, callback verification, case data, incident monitoring and vendor relationship. A team cannot close an architecture finding with “security will configure it later.”
A practical verification exercise for this fictional service should include a valid tenant A upload and deliberately attempt tenant B’s case identifier; use a file with the wrong content type; submit a duplicate callback with a different job identifier; interrupt the provider after submission; and try to retrieve a document through an expired token. Record the expected and observed result for each test. The test set is not complete proof against all threats, but it can falsify important security claims before deployment.
NIST Cybersecurity Framework 2.0 is useful for communicating desired cybersecurity outcomes and governance responsibility. It does not prescribe this processing topology or certify that the controls work. The design team must attach implementation-specific evidence, including cloud configuration, identity policy, fault-handling results, retention decisions and residual-risk acceptance by an authorized owner.
Keep the review decision distinct from a general security policy. A policy may require least privilege and vendor oversight across every service; this architecture record identifies exactly how this one workflow enforces those requirements and how the team will know when it stops doing so. If a provider changes its callback contract, a new data category is collected or an authorization service moves, the diagram and its tests should be reopened. Good security architecture is not the diagram with the most locks. It is the design whose trust boundaries, failure behavior and business tradeoffs are clear enough that another engineer can independently challenge them—and whose owners are prepared to fix what that challenge reveals.