Cloud Security interview questions: security architecture

Reviewed by Mark Dickie · Last updated

8 questions on this page you can answer and see marked on the spot. Go to the first one

Cloud security architecture is the design of controls, policies, and network structures that protect data and workloads running in a cloud environment. For an interview, you need to show you can reason about shared responsibility boundaries, identity-centric access design, network segmentation, and how to map threats like data exfiltration or privilege escalation to concrete mitigations. Interviewers will also probe your understanding of zero trust principles, encryption at rest and in transit, and how you harden multi-cloud or hybrid setups without creating operational friction for the teams who have to live inside the controls you define.

The table below maps the core architecture domains interviewers draw from and the level of depth expected in a typical engineering or architect-track interview:

DomainWhat interviewers probeTypical difficulty
Identity & access managementLeast-privilege policy design, role assumption, conditional access3–4
Network segmentationVPC/VNet design, micro-segmentation, east-west traffic control3–5
Data protectionEncryption strategy, key management, secrets handling2–4
Shared responsibilityWhere provider control ends and customer control begins1–3
Zero trust architectureTrust evaluation per request, policy enforcement points3–5
Incident response & detectionLogging coverage, detection design, blast-radius containment3–4

What does a cloud security architecture interview test?

Most interviews split into two halves: a design scenario and a knowledge-recall round. The design scenario usually gives you a cloud workload or migration problem and asks you to secure it end to end. The recall round checks whether you can name the right service, control, or pattern for a given threat without hand-waving.

How should you approach the design scenario?

  1. Clarify the shared responsibility split for the specific provider and service model (IaaS vs. PaaS vs. SaaS) before proposing anything.
  2. Start with identity: define who or what authenticates, what roles they assume, and under what conditions.
  3. Layer network controls next, including segmentation between trust zones and restrictions on egress paths.
  4. Specify data-protection controls: encryption at rest, key custody, and how secrets reach workloads at runtime.
  5. Close with detection and response: what logs you collect, which signals trigger alerts, and how you contain a compromised resource.

Key facts

  • Tarmac has 27 Cloud Security interview questions on this topic, 25 of them on this page, at difficulty 1–5 of 5.
  • Tarmac tracked 1,974 job postings asking for Cloud Security in November 2026.
  • Roles asking for Cloud Security advertise a median base salary of A$90,250, across 462 job postings as of November 2026.
  • Tarmac last reviewed these Cloud Security interview questions on 14 October 2026.

At a glance

Questions25 shown · 27 in the bank
Difficulty1–5 of 5
FormatsTrue / false, Short answer, Flashcard, Multiple choice, Design exercise

What you'll review

  1. zero trust vs perimeter models
  2. security reference architectures
  3. threat surface reduction

Practice questions

Try one before you open the answer. Pick an option and press Check; it's marked on the spot.

In a zero-trust security model, a user connected to the corporate internal network is granted implicit trust and does not need to re-authenticate when accessing an internal application, because the network perimeter already protects them. True or false?#

Options

Show answer

A user on the corporate internal network does not receive implicit trust under zero trust; they must authenticate and be authorized for each internal application. Zero trust follows the principle 'never trust, always verify,' so network location alone never grants access, unlike perimeter models that assume inside traffic is safe.

Why:

This statement is false. The defining principle of zero trust is 'never trust, always verify.' The perimeter model assumes traffic inside the network boundary is safe and grants implicit trust to internal users, but zero trust treats every access request the same way regardless of network location. Each request must be authenticated and authorized against identity, device posture, and other contextual signals before access is granted.

In a perimeter-based security model (also called 'castle-and-moat'), what is the fundamental assumption about a device that has successfully connected to the corporate network?#

Show answer

In a perimeter model, a device inside the network boundary is assumed to be trusted and may access internal resources with minimal additional verification.

Why:

The perimeter model treats the network boundary as the trust boundary: once a device passes through the firewall or VPN, it is considered inside the trusted zone and can reach internal resources with comparatively little ongoing verification. Zero Trust rejects this assumption by requiring continuous authentication and authorization for every request regardless of network location.

Complete the canonical Zero Trust security maxim: "Never trust, always ____."#

Show answer

Verify. The full maxim is "Never trust, always verify": every access request is authenticated, authorized, and continuously validated regardless of whether it originates inside or outside the network perimeter.

Why:

The defining maxim of the Zero Trust model is "Never trust, always verify," which means no implicit trust is granted based on network location. The prompt now gives the fixed opening "Never trust, always" so the single expected word is "verify." Alternatives such as "Assume breach" are Zero Trust principles but do not complete this maxim.

What is the primary purpose of a cloud security reference architecture?#

Show answer

A cloud security reference architecture is a reusable, standardized blueprint that defines recommended security controls, network zones, identity boundaries, and design patterns for deploying cloud workloads securely and consistently across an organization.

Why:

A security reference architecture is a reusable, standardized blueprint that defines recommended security controls, network zones, identity boundaries, and design patterns so that cloud deployments follow a consistent, vetted security baseline. It does not replace a security operations team, it is not merely an audit checklist, and it addresses cloud rather than on-premises physical hardware concerns.

In cloud IAM, what is the name of the security principle that grants each identity only the minimum permissions required to perform its job? Give the name and briefly explain how it reduces the threat surface.#

Show answer

The principle of least privilege. Every IAM role and service account receives only the minimum permissions it needs, so a compromised credential can reach only a few resources and actions, which shrinks the exploitable attack surface.

Why:

The question asks for a named principle, and the principle of least privilege is the one that specifically grants only the minimum permissions required. Its security benefit is that a compromised or misused credential can reach fewer resources and perform fewer actions, which limits the blast radius. Other IAM practices such as MFA or federation are valid controls but do not define the minimum-permission rule the question asks for.

What does it mean to reduce the threat surface in a cloud security architecture?#

Show answer

Threat surface reduction means minimizing the set of exposed entry points an attacker could target, such as open ports, public-facing APIs, IAM permissions, and enabled cloud services, so that fewer attack paths exist.

Why:

Threat surface (attack surface) reduction is the practice of shrinking the collection of points where an unauthorized actor could interact with a system. In cloud environments this includes closing unused ports, removing unnecessary public endpoints, scoping down IAM permissions, and disabling unneeded managed services. Each removal eliminates a potential attack path, leaving the attacker with fewer ways to gain access.

What is the fundamental difference between the zero-trust model and the traditional perimeter-based (castle-and-moat) security model?#

Show answer

Zero trust assumes no implicit trust based on network location and verifies every access request, whereas the perimeter model grants implicit trust to users and devices once they are inside the network boundary.

Why:

The zero-trust model assumes no implicit trust based on network location: every access request is authenticated, authorized, and continuously validated before access is granted. The traditional perimeter model assumes that users and devices inside the network boundary are trusted and can access resources freely once they have crossed the perimeter. This is why zero trust is often described as the opposite of castle-and-moat security.

In the cloud shared responsibility model, which service model places the GREATEST security responsibility on the cloud service provider (CSP), leaving the customer primarily responsible for data governance, identity, and access management?#

Options

Show answer

SaaS (Software as a Service) places the greatest security responsibility on the cloud provider. The provider runs and secures the whole stack, from physical facilities up through the application, while the customer keeps data governance, identity, and access management.

Why:

Under SaaS the cloud provider operates and secures the entire stack, including physical infrastructure, virtualization, OS, runtime, middleware, and the application, so it carries the most security responsibility of any cloud service model. The customer's remaining duties centre on data governance, identity management, and access control. In IaaS the customer must also secure the OS, middleware, and application layers, and in PaaS the customer secures applications and data while the provider covers the OS and runtime. On-premises deployment is not a cloud service model at all, so it does not fit the question.

Your team runs a fleet of cloud-hosted virtual machines in a public cloud VPC. Which single change, by itself, reduces the external attack (threat) surface of those VMs?#

Options

Show answer

The correct change is removing all inbound security group rules except port 443 from a known corporate CIDR block. Threat-surface reduction means shrinking the set of externally reachable entry points. Locking inbound rules to one port and one source range directly cuts what an adversary can probe. Logging, multi-AZ, and SIEM aggregation improve detection or resilience, not exposure.

Why:

Threat-surface reduction means shrinking the set of externally reachable entry points an adversary could discover or exploit. Restricting inbound security group rules to only port 443 from a known corporate CIDR block directly narrows the exposed network surface — fewer open ports and fewer source addresses. Enabling verbose audit logging and forwarding logs to a SIEM improve detection and forensics, not surface area. Adding availability zones improves resilience, not exposure. None of those alternatives remove or restrict an exploitable entry point.

Your organization runs several internet-facing microservices in a public cloud. Answer both parts in one sentence each. (1) Inbound: what single address-assignment setting must be removed from the service instances so that internet hosts can no longer address them directly? (2) Outbound: what default-action policy should be applied to egress traffic from the service subnets so that only an explicit list of approved destinations is reachable? Do not include detection, logging, or alerting.#

Show answer
  1. Inbound: remove the public IP addresses from the service instances so they have only private IPs and cannot be addressed directly from the internet. 2. Outbound: set egress to a deny-by-default policy for the service subnets, permitting only an explicit allowlist of destinations.
Why:

The inbound part asks for the address-assignment setting that makes instances directly reachable: a public IP address. Removing it (leaving only private IPs) means internet hosts cannot route to the instances directly. The outbound part asks for the default action on egress: deny by default, with an explicit allowlist of permitted destinations, so a compromised service cannot contact arbitrary hosts. A good answer names both the removal of public IPs and a default-deny egress policy with an allowlist; detection or logging measures do not answer either part.

In a traditional perimeter-based security model, a user or device that authenticates at the network boundary (for example, via VPN or an edge firewall) is generally granted broad access to internal resources. Name the zero-trust principle that corrects this implicit trust, and state what it requires for each access request.#

Show answer

The corrective principle is explicit, continuous verification: 'never trust, always verify.' Every access request is authenticated and authorized based on identity and real-time context, such as device posture and the requested resource, and is granted under least-privilege policies, regardless of whether the request originates inside or outside the network perimeter.

Why:

Zero trust replaces the 'trust but verify' posture of perimeter models with 'never trust, always verify': network location confers no trust, so every request must be authenticated, authorized, and scoped to least privilege using identity and context. This counters the perimeter model's core weakness, where an attacker who breaches the boundary is treated as trusted inside.

A mid-sized SaaS company runs a flat internal network behind a single perimeter firewall. Once employees connect through VPN, they can reach most internal services. The security team wants to move to a zero-trust architecture. Describe the transition, covering: (1) how you replace trust based on network location with identity-based access, (2) how you segment the network to limit lateral movement, and (3) how you handle continuous verification and monitoring without crippling developer productivity.#

Show answer

Phase 1, identity-based access: Put an identity-aware proxy (for example, Cloudflare Access, Google BeyondCorp, or Azure AD Conditional Access with App Proxy) in front of each internal application instead of granting broad network access over the VPN. Every request is authenticated through the corporate IdP using SAML or OIDC and authorized per application based on user identity, group membership, and device posture such as managed status, disk encryption, and OS patch level. Phase 2, segmentation: Split the flat network into least-privilege segments aligned to application tiers (web, API, database) and, where useful, business units. Enforce default-deny allow-lists with cloud-native controls such as security groups or host-based micro-segmentation, so the web tier reaches the API tier only on its required port, the API tier reaches the database only on the database port, and no other inter-segment traffic is permitted. This limits lateral movement if one segment is compromised. Phase 3, continuous verification and monitoring: Evaluate device posture and session risk on every request rather than only at VPN connect time, feeding MDM and EDR signals into the policy engine. Use short-lived access tokens, for example 15-minute tokens, instead of long-lived network sessions. Send logs to a SIEM with UEBA to detect anomalies such as unusual source locations, access to unfamiliar services, or sudden spikes in data transfer. To protect productivity, rely on SSO so checks are transparent to users, automate device enrollment so managed laptops pass posture checks without manual steps, and provide a self-service path for temporary elevated access to production segments with approval workflows and automatic expiry.

Why:

The question asks for a practical zero-trust transition design covering three areas: replacing network-location trust with identity-based, per-request authorization; segmenting the network with default-deny allow-lists to limit lateral movement; and applying continuous verification and monitoring while keeping developer workflows smooth. A strong answer names concrete mechanisms for each area, such as an identity-aware proxy, tiered allow-list segmentation, device posture checks, short-lived credentials, SIEM/UEBA monitoring, and automated enrollment with just-in-time access. The sample answer covers each pillar with these details, so it is a sound open-ended design question best graded against those expectations rather than a single fixed answer.

In the NIST SP 800-207 zero trust reference architecture, which logical component makes the real-time allow-or-deny access decision when a subject requests access to an enterprise resource?#

Options

Show answer

The Policy Decision Point (PDP) is the NIST SP 800-207 zero trust component that makes the real-time allow-or-deny decision for each access request to an enterprise resource. It evaluates the request against configured policy and attributes gathered from other components. The Policy Enforcement Point then carries out that verdict in the data path.

Why:

The Policy Decision Point is the logical component defined in NIST SP 800-207 that evaluates each access request against configured policies and renders an allow-or-deny decision in real time. The Policy Enforcement Point sits in the data path in front of the resource and enforces the decision the Policy Decision Point made, but it does not itself decide. The Policy Information Point supplies supplementary attributes, such as device posture, time, or threat-intel signals, that the Policy Decision Point may consult, yet it does not produce the authorization verdict. The Continuous Diagnostics and Mitigation system feeds ongoing posture telemetry into the policy evaluation context but is not the component that issues per-request access decisions.

Under PCI DSS guidance, what is the main compliance benefit of using network segmentation to isolate the Cardholder Data Environment (CDE) from non-CDE workloads in a cloud environment? Explain in a few sentences.#

Show answer

It reduces the scope of the PCI DSS assessment. Non-CDE systems that are properly isolated from the CDE by segmentation controls fall out of scope, so only the CDE and systems directly connected to it must be validated against PCI DSS requirements.

Why:

PCI DSS documents network segmentation as a mechanism for scope reduction. When the CDE is effectively isolated by segmentation controls, adjacent non-CDE systems are excluded from the assessment scope, so fewer systems must be validated against PCI DSS requirements. The answer is the scope reduction itself, not a security claim: segmentation still needs to be verified (for example by penetration testing of the segmentation controls) to keep the out-of-scope status valid.

A payment card workload is being migrated to a public cloud and must stay in PCI DSS v4.0 scope. In 3-6 sentences, answer the following: (1) How often must the entity document and confirm CDE scope, and how often must a service provider additionally confirm its scope? Give the intervals in months. (2) How do the cloud provider's shared responsibility model and its Attestation of Compliance (AOC) affect which controls you can count as inherited? (3) Name one technique that reduces CDE scope in a cloud network. (4) What is the required audit log retention period, and how much of it must be immediately available? Give the period in months.#

Show answer

Under PCI DSS v4.0 Requirement 12.5.2, the entity must document its CDE scope and confirm it at least every 12 months and after significant changes; a service provider must confirm scope every 6 months (Requirement 12.5.2.1). The shared responsibility model defines which controls the cloud provider operates and which ones you must implement yourself, and the provider's Attestation of Compliance covers only its own in-scope services, so you must verify that every service you rely on is included in that AOC before inheriting its controls. Network segmentation (or tokenization, or P2PE) reduces the CDE by keeping systems that do not store, process, or transmit cardholder data out of scope. Audit logs must be retained for at least 12 months, with at least 3 months immediately available for analysis (Requirement 10.5.1).

Why:

This question is now a short-answer item with a fixed set of facts, so it can be graded by keywords. PCI DSS v4.0 Requirement 12.5.2 requires CDE scope to be documented and confirmed at least every 12 months and after significant changes, and Requirement 12.5.2.1 adds a 6-month confirmation for service providers. In a cloud migration, the shared responsibility model determines which controls the provider runs and which you must implement, and the provider's Attestation of Compliance only covers the provider's own in-scope services, so the inherited services must be checked against it. Segmentation, tokenization, or P2PE can shrink the CDE. Requirement 10.5.1 requires audit logs to be retained for 12 months, with at least 3 months immediately available. The sample answer covers each of these points in a concise form.

In a multi-account cloud landing zone, security designs often place centralized logs in a dedicated log-archive account, separate from workload accounts. Name and explain two distinct security benefits of this separation. Benefits that are only about convenient cross-account dashboards or a single place to search logs do not count.#

Show answer

First, access isolation: the log-archive account has its own permission boundary, so workload account administrators cannot read, alter, or delete the audit trail of their own activity, which supports separation of duties. Second, tamper-evidence and durable retention: copies of the logs stored outside each workload account, ideally with immutability controls such as write-once object locks, survive if a workload account is compromised, has its logging disabled, or is closed, so investigators still have an intact record.

Why:

The prompt asks for two distinct security benefits of keeping logs in a separate log-archive account. A strong answer names two different mechanisms and explains each. One valid benefit is access isolation: the archive has its own permission boundary, so workload administrators cannot read, change, or erase the audit trail of their own actions, which also supports separation of duties. A second valid benefit is tamper-evidence and durable retention: copies stored outside the workload account, optionally with immutability controls, survive a compromise, disabled logging, or account closure. Other defensible benefits, such as limiting blast radius or giving auditors least-privilege read-only access, would also be acceptable if clearly explained. Only dashboard-style visibility alone is excluded, because it is operational convenience rather than a security control.

An application running in a VPC currently reaches Amazon S3 through a NAT Gateway, sending API requests over the public internet. Which change reduces the threat surface by eliminating an internet-exposed path, rather than merely adding a control on top of an existing one?#

Options

Show answer

Replacing the NAT Gateway route for S3 with a VPC gateway endpoint for S3 reduces threat surface by removing an internet-exposed path. Traffic from the VPC to S3 then stays on the AWS network instead of crossing the public internet. WAF rules, SSE-KMS encryption, and IP allow-lists add controls but leave that internet path in place.

Why:

A VPC gateway endpoint for S3 routes traffic over the AWS internal network backbone, so the application's requests to S3 no longer leave the VPC through the NAT Gateway onto the public internet. That removes the internet-exposed egress path and the attack surface it creates. The other choices add protective controls: WAF rules inspect inbound web requests to the application, SSE-KMS encrypts data at rest, and an IP allow-list restricts who can call the bucket. None of them removes the public-internet path, so they harden the existing surface rather than reducing it.

A multi-tenant SaaS on AWS exposes its API through a regional REST API (API Gateway v1) that uses a classic VPC Link. The microservices run on Amazon EKS in private subnets of a VPC and have no public IP addresses or internet route. Name the two AWS components needed to forward REST API requests to a private EKS service, specify the load balancer type a classic VPC Link requires and its subnet placement, and state what each component does.#

Show answer

A VPC Link connects the regional REST API, which sits outside the VPC, privately into the VPC. A classic REST API VPC Link targets a Network Load Balancer (NLB) that is internal and placed in the private subnets; the NLB forwards requests to the EKS service's pods (for example, through the AWS Load Balancer Controller with IP-mode target groups). No public subnet or internet-facing load balancer is needed, so the services stay unexposed.

Why:

A regional REST API runs outside any VPC, so it cannot reach private IP addresses directly. The two components are a VPC Link, which provides a private connection from API Gateway into the VPC, and an internal Network Load Balancer in the private subnets that routes traffic to the EKS service pods. The question pins the REST API v1 classic VPC Link, which requires an NLB; HTTP APIs use a different VPC Link type that can also target an ALB or Cloud Map, so the answer is scoped to the REST API case. Because the load balancer is internal and the link is private, the services never need a public address or an internet route.

An organization is transitioning from a perimeter-based (castle-and-moat) security model to zero-trust. A security architect proposes several changes. Which one is fundamentally inconsistent with zero-trust principles?#

Options

Show answer

Removing internal firewalls because a VPN tunnel already authenticates users is fundamentally inconsistent with zero-trust. Zero-trust rejects the idea that network location or a single authenticated entry point implies trust. Every internal request still needs identity-based verification and segmentation, while micro-segmentation, per-call authorization, and just-in-time privileged access all reinforce zero-trust.

Why:

Zero-trust eliminates the assumption that being inside a network boundary implies trust. The proposal to remove internal firewalls because the VPN tunnel already authenticates users preserves the exact perimeter-model assumption zero-trust dismantles: a successful entry point is treated as sufficient proof of trustworthiness for everything behind it, and internal segmentation is dropped rather than strengthened. In a zero-trust model, every access request is authenticated and authorized based on identity and context, regardless of network position. Micro-segmentation limits lateral movement, per-call identity-based authorization embodies 'never trust, always verify', and just-in-time elevation with no standing admin rights minimizes standing access; all three align with zero-trust.

You are the lead security architect for a mid-size SaaS company (500 employees, hybrid workloads split between AWS and an on-prem data center for legacy systems). The current security model is perimeter-based: a VPN grants remote workers broad access to the internal network, a WAF and next-gen firewall sit in the DMZ, and the internal network is largely flat with implicit trust between services. Leadership has mandated a migration to zero trust within 18 months. Design a phased zero-trust architecture that addresses (1) identity and access, (2) network segmentation, (3) workload-to-workload communication, and (4) continuous monitoring. Identify the key trade-offs and risks of the migration and how you would mitigate them.#

Show answer

Phase 1, identity and access: Enforce SSO with MFA for all applications, make device posture (managed device, compliance state) an access condition, and replace VPN access to web applications with an identity-aware proxy or equivalent policy enforcement point. Access is evaluated per request using user identity, device posture, location and risk signals, and standing privileged access is replaced by just-in-time elevation with approval. Phase 2, network segmentation: Break the flat network into segments aligned to application tiers (presentation, application, data). Use default-deny between segments with explicit allow-list rules (host firewalls, cloud security groups, or service mesh network policy) for only the documented, required flows, so a compromised workload cannot move laterally. Phase 3, workload-to-workload trust: Give AWS workloads IAM roles with short-lived STS credentials and IMDSv2. For service-to-service calls across AWS and on-prem, issue cryptographic workload identities (for example SPIFFE/SPIRE SVIDs) and enforce mutual TLS through a service mesh, replacing IP-based trust. Legacy on-prem systems that cannot do mTLS sit behind an authenticating proxy at the segment boundary. Phase 4, continuous monitoring: Feed access logs, authentication events and policy decisions into a SIEM with UEBA, and evaluate risk continuously. Anomalous behavior such as impossible travel or bulk data access triggers step-up MFA or session revocation. Trade-offs and risks: (a) Latency from policy evaluation, mitigated by caching decisions with short TTLs and co-locating enforcement points with workloads. (b) Legacy incompatibility, mitigated by protocol-translation proxies and a longer timeline for those segments. (c) Operational complexity of fine-grained policy, mitigated by policy-as-code with peer review, testing and drift detection. (d) Coexistence during the transition, mitigated by running controls in monitor-only mode first, confirming no legitimate traffic is blocked, then enforcing segment by segment. (e) User friction from repeated MFA and device checks, mitigated by risk-based step-up and SSO. Success is measured by the share of requests evaluated by the policy engine (target 100%), mean time to detect lateral movement, the reduction in standing privileged accounts, and the number of segments enforcing default-deny.

Why:

A strong answer must cover all four pillars the prompt names (identity and access, network segmentation, workload-to-workload trust, continuous monitoring), sequence them into phases within the 18-month window, and name concrete trade-offs (latency, legacy compatibility, policy complexity, transition coexistence, user friction) each paired with a mitigation. Because the answer is an open architecture design rather than a single fact, it is graded on coverage and reasoning, which is why it stays a short-answer question with keyword support for offline grading.

Under PCI-DSS v4.0, what does Requirement 3.7.4 require for cryptographic keys that protect stored cardholder data, and who sets the rotation interval? Answer in two or three sentences.#

Show answer

Requirement 3.7.4 requires that keys be changed when they reach the end of their cryptoperiod. The entity defines the cryptoperiod in its key-management policy, guided by industry best practices and guidelines. PCI-DSS v4.0 does not mandate a fixed interval such as quarterly, so annual or other defined periods are acceptable if the entity documents and follows them.

Why:

Requirement 3.7.4 in PCI-DSS v4.0 ties key changes to the end of each cryptoperiod rather than to a fixed calendar schedule. The cryptoperiod is set by the entity in its key-management policy, informed by industry guidance, so the standard does not prescribe quarterly rotation. A strong answer names the cryptoperiod concept and the entity's responsibility for defining it, and does not present any specific interval such as quarterly as a PCI requirement. Annual rotation, which AWS KMS automatic rotation uses by default, is a common choice an entity may document.

In the NIST SP 800-207 Zero Trust Architecture reference model, the Policy Enforcement Point (PEP) and the Policy Decision Point (PDP, also called the Policy Engine) serve distinct roles. Which statement correctly describes their separation of concerns?#

Options

Show answer

In NIST SP 800-207, the Policy Enforcement Point intercepts access requests and enforces the decision at the resource boundary, while the Policy Decision Point (Policy Engine) evaluates identity, device posture, and other context against policy to decide access. Keeping decision logic centralized while enforcement stays local is the purpose of this separation.

Why:

NIST SP 800-207 defines the PDP (Policy Engine) as the component that evaluates signals such as identity, device posture, behavioral analytics, and other contextual data against policy to render an access decision. The PEP sits between the subject and the protected resource and enforces that decision (allow, deny, or require step-up authentication). The two are deliberately separated so that decision logic stays centralized and consistent while enforcement is local to each resource. The statement that gives the PDP the enforcement role and the PEP the evaluation role reverses the roles. The statement merging both into one microservice contradicts the architecture's separation principle. The statement splitting them as pure authentication versus authorization oversimplifies, because both participate in the full access-decision flow rather than a clean credential-versus-session boundary.

A multi-tier application on AWS has an internet-facing Application Load Balancer, twelve application servers each with an Elastic IP in public subnets, and a managed RDS database in a private subnet. The security team wants to reduce the externally reachable attack surface, meaning the set of components an unauthenticated internet user can directly attempt to connect to. Which single change removes the most components from that set?#

Options

Show answer

Moving the twelve application servers into private subnets and releasing their Elastic IPs removes the most components from the internet-reachable set, shrinking it from the load balancer plus twelve servers to the load balancer alone. WAF filters requests, mTLS secures internal traffic, GuardDuty detects threats, and RDS security group rules limit internal access, but none of these change which components accept connections from the internet.

Why:

The externally reachable set is every component an unauthenticated internet user can directly open a connection to. In the original design that set is the load balancer plus the twelve application servers, each with a public Elastic IP. Moving the servers to private subnets and releasing their Elastic IPs removes all twelve from the set, leaving only the load balancer, a net reduction of twelve. Attaching WAF to the load balancer filters requests but leaves the reachable set unchanged. Requiring mutual TLS changes how authenticated traffic is secured but does not change which components accept connections from the internet. Enabling GuardDuty adds detection and may shorten dwell time but removes nothing from the reachable set. Restricting the RDS security group to the application servers only limits internal access to a database that already sits in a private subnet, so it removes zero internet-reachable components.

A multinational financial-services firm runs a hybrid estate: about 60% in on-premises data centers with flat internal L2/L3 networks, about 30% in AWS across shared VPCs per business unit, and about 10% SaaS, including the corporate IdP. Remote access uses a legacy IPSec VPN that places users on a trusted internal subnet. East-west traffic is largely unrestricted except for a few segmented DMZs. A red-team exercise showed lateral movement from a compromised developer endpoint to the critical trade-settlement database in under 8 minutes. The CISO has mandated a zero-trust architecture. Design the target-state architecture and a 12–18 month brownfield migration plan. Cover: the identity and access-control plane, network segmentation, data-centric controls, visibility and telemetry, and how you sequence the rollout so the business is not disrupted. Name the concrete components you would use and state the order in which you would protect the trade-settlement database.#

Show answer

Identity and access: A central policy decision point evaluates each request against identity, device posture and resource sensitivity. A separate policy enforcement point (a ZTNA broker, reverse proxy or service-mesh sidecar) enforces that decision before any connection is proxied. Humans use phishing-resistant MFA such as FIDO2 or passkeys; workloads use short-lived certificates. Sessions are re-evaluated continuously, and a posture change triggers step-up or termination. Legacy applications that cannot use modern auth are reached through an identity-aware proxy that brokers to the IdP, so they still pass the same enforcement point.

Network segmentation: On premises, host-based microsegmentation agents enforce default-deny policy on ingress and egress, using rules derived from the approved trust policy, so lateral flows need an explicit allow. In AWS, security groups and network ACLs restrict ingress first (named source groups and required ports only), then egress. A service mesh with mTLS and per-service authorization covers service-to-service calls. Inter-VPC traffic goes through a transit gateway with network firewall inspection, not open peering routes.

Data-centric controls: Trade-settlement, PII and general data are classified, and labels feed the policy decision, so restricted data requires a managed device and a compliant session whatever the network path. Data is encrypted at rest with KMS-managed keys and in transit with mTLS. DLP inspection at the egress enforcement point blocks or alerts when classified data leaves.

Visibility and telemetry: Every trust decision (principal, device, resource, decision, reason) is logged to a central SIEM. Detections such as posture drops, impossible travel and anomalous east-west flows feed back into the policy engine for step-up or revocation. A SOAR playbook isolates the device and revokes its sessions. The red-team pivot scenario has a detection-and-isolation target set in advance in the SOC runbook and is re-tested each quarter.

Sequencing (15 months, brownfield): Phase 0 (months 1–3) deploys the policy decision point, enforcement points and SIEM pipeline alongside the VPN. IdP hardening is the only production-touching change, rolled out in canary groups with rollback. Phase 1 (months 4–8) pilots ZTNA for one business unit's remote workforce. In the same phase the trade-settlement database is protected first: its host agents run in monitor mode, the allowlist is tuned, then enforcement is switched on and the flat on-premises path to it is closed. Phase 2 (months 9–12) moves all remote access to ZTNA and extends east-west segmentation to the rest of on-premises and to greenfield AWS VPCs. Phase 3 (months 13–15) covers the remaining brownfield VPCs and segments, and the VPN is decommissioned only after 30 days of full-load validation. Each phase keeps the prior path and rule set available for rollback. Done means: no east-west path to a restricted asset exists without a policy decision, every decision is logged, and the pivot test isolates within the pre-set target.

Why:

The question is an open design problem, so it is graded against the five weighted criteria in its rubric rather than a single key. The sample answer covers each one with concrete artifacts: a decision point separate from an enforcement point with phishing-resistant MFA (identity plane); default-deny microsegmentation on premises and ingress-first security groups plus mTLS in AWS (segmentation); classification labels that feed access decisions with encryption and egress DLP (data controls); central decision logging with feedback and SOAR isolation against a preset target (telemetry); and a phased plan that protects the trade-settlement database within the first eight months, keeps the VPN as rollback, and sets measurable done criteria (sequencing). Each criterion names a checkable artifact, so an answer that omits the database protection or the logging loop would lose those points regardless of vendor choice.

You are the principal security architect for a global financial-services firm that must run critical trading and settlement workloads across AWS (us-east-1) and Azure (West Europe) at the same time, for regulatory redundancy. The firm is subject to MiFID II, GDPR, and SOC 2 Type II. Design a zero-trust security reference architecture spanning both clouds. Your design must address: (1) east-west network segmentation, including the cross-cloud path; (2) unified identity and access for humans and workloads; (3) key management and encryption at rest; (4) data residency and compliance enforcement; and (5) continuous monitoring and drift detection. For each service or control plane you choose, name it and state its key-rotation or credential-rotation behavior precisely. Choose the products you consider best for this firm and justify each choice; no particular product is required.#

Show answer

Segmentation: on AWS, each tier (web, application, data) sits in its own subnet tier with per-service security groups that deny by default. On Azure, each tier sits in a VNet with NSGs and Application Security Groups. All PaaS access uses private endpoints with public network access disabled. The cross-cloud link is a dedicated AWS Direct Connect circuit and an ExpressRoute circuit that both terminate at a colocation facility or cloud exchange, joined through a customer-managed router or a network-as-a-service provider, with a site-to-site VPN into a transit VNet as a fallback. The AWS Transit Gateway does not peer with ExpressRoute directly. Traffic on this link is never a flat trust zone: it is filtered by firewalls at both ends and by security groups and NSGs at the workload edges. Identity: one authoritative IdP (Entra ID, chosen because the firm already uses it for HR and device trust) is federated to AWS IAM Identity Center via SAML and to Azure via SAML or OIDC. Humans receive time-bound STS sessions and Azure PIM eligible activation, with no standing privileged roles. Break-glass accounts require hardware-token MFA and alert in real time on any use. Workloads authenticate east-west with mTLS using SPIFFE-style identities issued by Istio on EKS and AKS, and authorization policies key on those identities. Key management: AWS KMS customer managed keys backed by FIPS 140-3 Level 3 HSMs are used in us-east-1, and Azure Key Vault Managed HSM holds keys in West Europe. No key material crosses the cloud boundary. KMS automatic rotation is enabled on the customer managed keys, and Managed HSM keys use its automatic rotation policy. Keys in any CloudHSM-backed custom key store would instead be rotated by a documented manual procedure (create a new key, re-point the alias, and re-encrypt or re-wrap data), because KMS does not auto-rotate them. Envelope encryption covers S3 (SSE-KMS), EBS and Managed Disks, and TDE with customer-managed keys on databases. Residency: Terraform modules hard-code approved regions, AWS Organizations SCPs deny actions outside approved regions, Azure Policy allowed-locations denies out-of-region resources, and cross-region replication is disabled or limited to approved regions. Amazon Macie and Microsoft Purview classify PII and trade data, and their output, along with CloudTrail and Activity logs and retained policy records, supports GDPR data-location duties, MiFID II record-keeping, and SOC 2 evidence. Monitoring: CloudTrail and Azure Activity logs stream to a central SIEM such as Microsoft Sentinel. Security Hub with Defender for Cloud provides CSPM and CIEM across both clouds. OPA or Conftest runs in CI/CD and blocks non-compliant Terraform plans before apply. Scheduled drift detection (a plan against live state or a CSPM rule) opens tickets for unmanaged resources and automatically quarantines production exposures by removing public access and detaching security group or NSG associations.

Why:

This is an open design problem, so it is graded with a weighted rubric rather than a single key. The five criteria cover the five required pillars: segmentation with a physically realistic cross-cloud path that is not a flat trust zone, unified identity with just-in-time privilege and mTLS workload identity, in-cloud HSM-backed keys with per-service rotation stated accurately, residency enforced by preventive controls, and monitoring with policy-as-code and drift remediation. The rubric names no product as mandatory; it asks that each chosen service be named and justified, and that its rotation behavior be stated correctly. The sample answer satisfies every criterion with one reasonable set of choices, and a different set of products would score equally well if it meets the same concrete requirements.

Related interview questions

Job market

See cloud-security salaries and hiring demand from live job postings.

The other 2 questions

This page shows 25 and marks what you pick. That's as far as a page can go. A free account opens the other 2 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.

Start with this topic

Free · the whole bank · 100 answers per 30 days, each marked with written feedback

Interview booked? Practise the job ad instead

What moved, monthly

One email a month when the bulletin comes out: what moved in the markets we track, and the new question topics we published. Confirm your address to join. Unsubscribe any time.