HireHireInterview Quizzes › Solutions Architect

Solutions Architect Interview Questions

Think you're ready? These are the questions that actually decide Solutions Architect interviews. Warm up on Easy — then face the Hard round, where 95% of candidates crumble. 80 questions across 3 levels, instant score, completely free.

80Questions
3Difficulty levels
95%Fail the hard round
FreeInstant score
Easy
Warm-up · 20 Qs
Medium
Practical · 30 Qs
Hard
Brutal · 30 Qs
⚡ Take the Solutions Architect quiz — get your score →

The Solutions Architect interview questions

Below are the real questions, grouped by difficulty. Expand any one to reveal the correct answer and why — or take the timed quiz for a score you can share. Can you clear the Hard round?

Easy round 20 questions

A client insists their app must survive a full AWS Availability Zone outage with no downtime. Which deployment approach directly satisfies this?
  • A. Deploy the app across multiple AZs behind a load balancer ✓
  • B. Take nightly snapshots and restore into a new AZ on failure
  • C. Run a single large instance in the most reliable AZ
  • D. Enable auto-scaling within one AZ to add capacity
Correct answer: A. Spreading instances across multiple AZs behind a load balancer keeps the app serving traffic when one AZ fails.
A stateless web tier sees traffic spike 5x every weekday at 9 AM and drop after. Which scaling strategy fits best?
  • A. Vertical scaling to a permanently larger instance
  • B. Horizontal auto-scaling driven by CPU/request metrics ✓
  • C. Manual capacity increase held all day
  • D. A single reserved instance sized for peak
Correct answer: B. A stateless tier with predictable spikes benefits from horizontal auto-scaling that adds and removes instances on demand.
You must choose storage for structured data with complex JOINs and strong consistency for transactions. Which is the right fit?
  • A. An object store like S3
  • B. A relational (SQL) database ✓
  • C. A key-value cache
  • D. A message queue
Correct answer: B. Relational databases are designed for structured data, JOINs, and ACID transactions.
Given a requirement to decouple a slow order-processing worker from a fast web front-end, what should sit between them?
  • A. A shared database table polled by both
  • B. A synchronous REST call from web to worker
  • C. A message queue the web tier writes to ✓
  • D. A direct socket connection
Correct answer: C. A message queue decouples producers and consumers so a slow worker cannot block the fast web tier.
A team wants to expose 30 microservices to mobile clients with one entry point for auth and rate limiting. What component provides this?
  • A. A load balancer only
  • B. An API gateway ✓
  • C. A CDN edge cache
  • D. A service mesh sidecar
Correct answer: B. An API gateway offers a single entry point handling auth, rate limiting, and routing to backend services.
Your architecture caches product data that changes at most once a day. What is the main benefit of caching here?
  • A. It guarantees the data is always the freshest version
  • B. It reduces load on the database and improves read latency ✓
  • C. It removes the need for a primary database
  • D. It automatically encrypts the data at rest
Correct answer: B. Caching rarely-changing read-heavy data cuts database load and speeds up reads.
A client asks why you recommend a CDN for their global static assets. What is the primary reason?
  • A. It caches assets near the origin server to speed up deployments
  • B. It serves content from edge locations near users, lowering latency ✓
  • C. It replaces the origin server entirely
  • D. It guarantees every user worldwide instantly sees updated assets after a change
Correct answer: B. A CDN serves cached content from edge locations close to users, reducing latency.
You are choosing between synchronous and asynchronous communication for sending confirmation emails after checkout. Which is more appropriate and why?
  • A. Synchronous, so checkout waits until the email is delivered
  • B. Asynchronous, so a slow email service doesn't delay checkout ✓
  • C. Synchronous, because email needs strong consistency
  • D. Asynchronous, because it guarantees exactly-once delivery
Correct answer: B. Emails are non-critical to the checkout path, so async processing keeps checkout fast even if email is slow.
A design review shows one database serving both heavy analytics queries and live transactions, and both are slow. What is a sound first fix?
  • A. Add more indexes to every table
  • B. Separate reads by using a read replica for analytics ✓
  • C. Increase the connection pool size only
  • D. Move everything to a NoSQL store
Correct answer: B. Offloading analytics to a read replica keeps heavy queries from competing with live transactions.
A single-region app must meet a strict RPO of near-zero for its database. Which approach best supports that?
  • A. Daily backups to another region
  • B. Synchronous replication to a standby ✓
  • C. Weekly snapshots with manual restore
  • D. Caching writes in memory
Correct answer: B. Synchronous replication commits data to a standby before acknowledging, giving near-zero data loss (RPO).
You need to prevent a downstream service failure from cascading and exhausting all threads in the caller. Which pattern applies?
  • A. Circuit breaker ✓
  • B. Database sharding
  • C. CDN caching
  • D. Blue-green deployment
Correct answer: A. A circuit breaker stops calls to a failing dependency, preventing thread exhaustion and cascading failure.
A client wants zero-downtime releases with instant rollback if the new version misbehaves. Which deployment strategy fits?
  • A. In-place upgrade of all servers at once
  • B. Blue-green deployment ✓
  • C. Manual nightly restart
  • D. Scaling up before deploy
Correct answer: B. Blue-green keeps two environments so you switch traffic instantly and roll back by switching back.
For a system that must horizontally scale its user-session storage, where should session state live?
  • A. In the memory of each individual web server
  • B. In an external shared store like Redis ✓
  • C. In a local file on each server
  • D. In the client cookie as full server state
Correct answer: B. An external shared session store lets any server handle any request, enabling horizontal scaling.
A microservice calls three others in sequence to fulfill a request, and latency is now too high. What design change most directly helps?
  • A. Add a circuit breaker to each call
  • B. Call the independent services in parallel instead of sequentially ✓
  • C. Increase the timeout on each call
  • D. Add more replicas of the caller
Correct answer: B. If the downstream calls are independent, running them in parallel reduces total latency.
You must protect data in transit between a browser and your API. Which is the correct control?
  • A. Encrypt the database at rest
  • B. Use TLS/HTTPS for the connection ✓
  • C. Hash the data before storing it
  • D. Enable IAM role rotation
Correct answer: B. TLS/HTTPS encrypts data in transit between client and server.
A stakeholder asks why you avoid storing large video files in the relational database. What is the best reason?
  • A. Relational engines must decompress each video into memory before it can be read
  • B. Object storage is cheaper and better suited for large blobs served directly ✓
  • C. Video files lose their encoding metadata when stored as database BLOBs
  • D. Videos must be normalized into rows first
Correct answer: B. Large media belongs in object storage, which is cost-effective and can serve blobs directly, keeping the DB lean.
When designing an idempotent payment API, what does idempotency guarantee for a retried request?
  • A. The request always returns a different result
  • B. Retrying with the same key does not create a duplicate charge ✓
  • C. The request is processed faster on retry
  • D. The request bypasses authentication on retry
Correct answer: B. Idempotency ensures a repeated request with the same key produces the same effect without duplicating the operation.
A CTO asks you to reduce coupling so teams can deploy independently. Which architectural choice supports this best?
  • A. A single shared monolith with one deploy pipeline
  • B. Independent microservices with clear API boundaries ✓
  • C. One large database shared by all modules
  • D. Tight in-process function calls across modules
Correct answer: B. Microservices with well-defined API boundaries let teams deploy independently, reducing coupling.
Your read-heavy service returns slightly stale data acceptably. Which consistency model lets you scale reads cheaply?
  • A. Strong consistency on every read
  • B. Eventual consistency with replicas ✓
  • C. Serializable isolation for all reads
  • D. Two-phase commit on reads
Correct answer: B. Eventual consistency allows scaling reads across replicas when slightly stale data is acceptable.
A design uses one load balancer as the only entry to the system, and the client worries about it being a single point of failure. What is the standard mitigation?
  • A. Run a redundant load balancer with health checks and failover ✓
  • B. Remove the load balancer and use one big server
  • C. Point DNS directly at a single instance
  • D. Cache all responses in the client
Correct answer: A. Deploying redundant load balancers with failover removes the single point of failure.

Medium round 30 questions

A web application experiences unpredictable traffic spikes during flash sales but sits idle most of the day. Which compute approach best balances cost and scalability for the stateless request-handling tier?
  • A. Provision a fixed fleet of large VMs sized for peak load
  • B. Use an auto-scaling group behind a load balancer with scale-out/in policies ✓
  • C. Run everything on a single vertically-scaled instance
  • D. Deploy to a reserved-capacity bare-metal server
Correct answer: B. Auto-scaling adds instances during spikes and removes them when idle, matching capacity to demand while controlling cost for stateless workloads.
An order service must notify inventory, billing, and shipping services without waiting for each to respond. Which integration pattern fits best?
  • A. Synchronous REST calls chained one after another
  • B. Publish an event to a message broker that multiple consumers subscribe to ✓
  • C. A shared database table that all services poll every minute
  • D. A single monolithic transaction spanning all four services
Correct answer: B. Publish/subscribe messaging decouples the producer from consumers and lets each downstream service process the event independently and asynchronously.
An application stores shopping-cart session data, needs sub-millisecond reads, and can tolerate occasional data loss on restart. Which storage choice is most appropriate?
  • A. A relational database with ACID transactions
  • B. An in-memory key-value store like Redis ✓
  • C. A cold object-storage archive tier
  • D. A columnar data warehouse optimized for analytics
Correct answer: B. An in-memory key-value store delivers the low-latency reads/writes ideal for ephemeral session and cart data where durability is not critical.
A REST API must stay responsive even when a downstream payment provider becomes slow or unresponsive. Which resilience pattern stops repeatedly calling the failing dependency and fails fast?
  • A. Retry with exponential backoff only
  • B. Circuit breaker ✓
  • C. Database connection pooling
  • D. Blue-green deployment
Correct answer: B. A circuit breaker trips after repeated failures and short-circuits further calls, preventing threads from piling up on a failing dependency.
You need to serve static images and CSS to users across multiple continents with low latency. Which is the most effective approach?
  • A. Increase the origin server's CPU and memory
  • B. Put a CDN in front of the origin to cache content at edge locations ✓
  • C. Add more database read replicas
  • D. Enable gzip only on the origin
Correct answer: B. A CDN caches static assets at edge locations close to users, dramatically reducing latency and offloading the origin.
A microservice needs to call a third-party API using a secret key. What is the recommended way to handle that credential in production?
  • A. Hard-code it in the source and commit it to the repo
  • B. Store it in a secrets manager and inject it at runtime ✓
  • C. Email it to the team and paste it into each server
  • D. Embed it in the client-side JavaScript bundle
Correct answer: B. A secrets manager centralizes storage, rotation, and access control, and injecting at runtime keeps credentials out of source control and client code.
Two services must stay loosely coupled, but one occasionally produces messages faster than the other can consume them. What does putting a message queue between them primarily provide?
  • A. Stronger schema validation of each message
  • B. Buffering and load leveling so the consumer processes at its own pace ✓
  • C. Automatic encryption of the payload at rest
  • D. Guaranteed lower latency than a direct call
Correct answer: B. A queue buffers bursts and levels load, letting the consumer drain messages at a sustainable rate instead of being overwhelmed.
A relational database is hitting CPU limits because of heavy read traffic from a reporting dashboard, while writes remain light. What is the most appropriate first step?
  • A. Add read replicas and route dashboard queries to them ✓
  • B. Shard the database by customer ID immediately
  • C. Switch the whole system to a NoSQL store
  • D. Disable indexes to speed up writes
Correct answer: A. Read replicas offload read-heavy traffic from the primary, directly relieving read-driven CPU pressure without a disruptive re-architecture.
A client wants zero-downtime deployments with the ability to instantly roll back if the new version misbehaves. Which deployment strategy best meets this?
  • A. Recreate: stop all old instances, then start new ones
  • B. Blue-green deployment with a traffic switch between two environments ✓
  • C. Deploy directly to production during off-hours
  • D. Manual FTP upload of new files over the old ones
Correct answer: B. Blue-green keeps two parallel environments so traffic can switch instantly and roll back by pointing back to the previous environment.
You are exposing several internal microservices to external clients and want a single entry point that handles authentication, rate limiting, and routing. Which component provides this?
  • A. A service mesh sidecar only
  • B. An API gateway ✓
  • C. A relational database view
  • D. A DNS round-robin record
Correct answer: B. An API gateway is the single ingress point that centralizes cross-cutting concerns like auth, rate limiting, and request routing to backend services.
Which component best decouples producers from consumers for asynchronous processing?
  • A. A synchronous RPC call
  • B. A shared in-process variable
  • C. A message queue ✓
  • D. A read replica
Correct answer: C. A message queue buffers work so producers and consumers operate independently and at their own pace.
A read-heavy service is straining its primary database. What is the most appropriate first step?
  • A. Add read replicas and a caching layer ✓
  • B. Increase the primary's connection pool size
  • C. Put a load balancer in front of the single primary database
  • D. Denormalize every table to eliminate joins
Correct answer: A. Read replicas and caching offload read traffic from the primary database, the classic read-scaling pattern.
Which HTTP status code signals that a client has been rate-limited?
  • A. 404 Not Found
  • B. 503 Service Unavailable
  • C. 401 Unauthorized
  • D. 429 Too Many Requests ✓
Correct answer: D. HTTP 429 indicates the client has sent too many requests in a given time window.
Per the CAP theorem, during a network partition a distributed system must choose between which two properties?
  • A. Consistency and availability ✓
  • B. Latency and throughput
  • C. Durability and security
  • D. Cost and scalability
Correct answer: A. When a partition occurs, a system can preserve either consistency or availability, not both.
What is the main benefit of a blue-green deployment?
  • A. Automatic database sharding
  • B. Zero-downtime releases with easy rollback ✓
  • C. Cheaper storage via compression
  • D. Real-time log aggregation
Correct answer: B. Blue-green keeps two environments so traffic can switch instantly and roll back with no downtime.
What does making an API operation idempotent guarantee?
  • A. Requests are always processed in order
  • B. Each request creates a new resource
  • C. Repeating a request yields the same result ✓
  • D. Requests are encrypted end to end
Correct answer: C. An idempotent operation produces the same outcome whether called once or many times.
Which caching strategy writes to the cache and the database in the same operation?
  • A. Write-through ✓
  • B. Write-back
  • C. Cache-aside
  • D. Read-through
Correct answer: A. Write-through updates cache and datastore synchronously, keeping them consistent on every write.
Which approach automatically handles sudden traffic spikes?
  • A. A larger fixed server
  • B. A nightly cron job
  • C. A stricter firewall rule
  • D. An auto-scaling group ✓
Correct answer: D. An auto-scaling group adds and removes instances automatically based on load metrics.
In disaster recovery, what does RPO measure?
  • A. Maximum acceptable data loss, measured in time ✓
  • B. Maximum acceptable downtime to recover
  • C. Average server response latency
  • D. Peak requests handled per second
Correct answer: A. Recovery Point Objective is the maximum tolerable amount of data loss expressed as a time window.
Where should session state live to keep a web tier horizontally scalable and stateless?
  • A. Local memory on each web server
  • B. An external distributed cache like Redis ✓
  • C. A cookie storing the full session object
  • D. The application binary itself
Correct answer: B. Externalizing session state to a shared cache lets any stateless server handle any request.
Which caching strategy writes data to the cache and the database at the same time?
  • A. Write-through ✓
  • B. Write-back
  • C. Cache-aside
  • D. Read-through
Correct answer: A. Write-through updates cache and the backing store synchronously on every write, keeping them consistent.
A read-heavy relational database is a bottleneck. What is the best first scaling approach?
  • A. Add read replicas to offload read traffic ✓
  • B. Increase synchronous write replication
  • C. Drop all secondary indexes
  • D. Reduce the connection pool size
Correct answer: A. Read replicas distribute read queries across additional copies, directly relieving read-heavy load.
Which design pattern prevents cascading failures between microservices?
  • A. Circuit breaker ✓
  • B. Singleton
  • C. Adapter
  • D. Observer
Correct answer: A. A circuit breaker stops calls to a failing dependency, preventing failures from cascading through the system.
In AWS, which service provides a logically isolated private network?
  • A. VPC ✓
  • B. IAM
  • C. CloudTrail
  • D. SNS
Correct answer: A. A Virtual Private Cloud (VPC) gives you an isolated virtual network to launch resources in.
What is a primary benefit of an eventually consistent data store?
  • A. Higher availability and lower latency in distributed systems ✓
  • B. Guaranteed immediate global consistency
  • C. ACID transactions across all nodes
  • D. Elimination of network partitions
Correct answer: A. Eventual consistency trades immediate consistency for higher availability and lower latency.
Which responsibility is NOT typically handled by an API Gateway?
  • A. Executing core business database transactions directly ✓
  • B. Rate limiting incoming requests
  • C. Request authentication
  • D. Routing requests to services
Correct answer: A. An API Gateway handles cross-cutting concerns like routing, auth, and throttling, not core business transactions.
What is the most cost-effective way to handle sudden, temporary traffic spikes?
  • A. Auto-scaling groups that add and remove capacity on demand ✓
  • B. Permanently provisioning peak capacity
  • C. Vertical scaling of a single server only
  • D. Disabling the load balancer during spikes
Correct answer: A. Auto-scaling adds capacity only when needed and removes it after, matching cost to demand.
Which database type is best suited for highly interconnected relationship data?
  • A. Graph database ✓
  • B. Key-value store
  • C. Columnar data warehouse
  • D. Time-series database
Correct answer: A. Graph databases model and traverse relationships between entities efficiently.
Why is idempotency important in API design?
  • A. Repeated identical requests produce the same result without side effects ✓
  • B. Requests execute faster on retry
  • C. Requests are automatically encrypted
  • D. Requests are automatically batched together
Correct answer: A. Idempotency ensures retries (e.g., after timeouts) don't cause duplicate side effects.
What does a blue-green deployment primarily reduce?
  • A. Deployment downtime and rollback risk ✓
  • B. Total storage costs
  • C. Network latency to users
  • D. Database table size
Correct answer: A. Blue-green keeps two environments so traffic can switch instantly, minimizing downtime and easing rollback.

Hard round 30 questions

A payment service publishes 'PaymentCaptured' events to a Kafka topic with 12 partitions, keyed by customer_id. A downstream ledger consumer must apply debits and credits per account in the exact order they occurred. During a rebalance, the team notices some accounts briefly process events out of order. What is the MOST likely root cause?
  • A. Kafka does not guarantee ordering, so per-account ordering is impossible without an external sequencer
  • B. The producer uses acks=1 instead of acks=all, corrupting offsets
  • C. A consumer committed offsets before fully processing in-flight records, so after rebalance another consumer reprocessed and interleaved them ✓
  • D. The 12 partitions exceed the consumer count, forcing round-robin delivery that ignores keys
Correct answer: C. Kafka preserves order within a partition, so out-of-order symptoms during rebalance almost always stem from committing offsets before processing completes, causing reprocessing/interleaving.
You run PostgreSQL with one primary and two asynchronous read replicas. A user updates their profile (write to primary), is redirected, and the next read hits a replica showing stale data. You must guarantee that a user always reads their own writes without forcing all reads to the primary. Which approach BEST achieves read-your-writes here?
  • A. Switch replication to synchronous for both replicas so all reads are current
  • B. Track the primary's LSN at write time and route that user's subsequent reads to a replica only once its replay LSN has caught up, else the primary ✓
  • C. Add a Redis cache in front of the replicas with a 5-second TTL
  • D. Enable REPEATABLE READ isolation on the replica connections
Correct answer: B. Capturing the write's LSN and gating replica reads until the replica has replayed past it gives per-session read-your-writes without making every read hit the primary.
A Saga orchestrator coordinates: ReserveInventory, ChargeCard, then CreateShipment. ChargeCard succeeds but CreateShipment fails permanently. The compensating action for ChargeCard is RefundCard, which itself times out and is retried. To keep the system correct under these retries, RefundCard MUST be:
  • A. Idempotent and keyed by the saga/transaction id so repeated invocations refund at most once ✓
  • B. Executed inside a distributed 2PC transaction with ChargeCard
  • C. Fire-and-forget, since eventual consistency tolerates duplicate refunds
  • D. Ordered strictly after all other compensations complete
Correct answer: A. Compensating actions run under at-least-once retry semantics, so they must be idempotent (keyed by transaction id) to avoid double refunds.
An event-sourced 'Account' aggregate rebuilds state by replaying all events on every command, and hot accounts now have 400k+ events, making command latency unacceptable. Which technique directly addresses this WITHOUT abandoning event sourcing?
  • A. Delete old events older than 90 days to shrink the stream
  • B. Snapshot aggregate state periodically and replay only events after the latest snapshot ✓
  • C. Move the write model to a relational table and drop the event log
  • D. Increase the aggregate's in-memory cache TTL
Correct answer: B. Snapshotting stores a materialized state at a version so replay only processes events after the snapshot, cutting rebuild cost while preserving the full event log.
A REST endpoint POST /transfers is called by clients that retry on network timeouts. Occasionally a timeout occurs after the server committed the transfer but before the response reached the client, so the retry creates a duplicate transfer. The cleanest server-side fix is:
  • A. Return 200 instead of 201 so clients stop retrying
  • B. Make clients wait 30s before any retry to avoid races
  • C. Require an Idempotency-Key header; persist the key with the result and return the stored result on any replay ✓
  • D. Switch the endpoint from POST to PUT so it becomes naturally idempotent
Correct answer: C. An idempotency key persisted with the operation's result lets the server detect replays and return the original outcome instead of re-executing, which PUT alone does not solve for create-with-side-effects.
You need zero data loss (RPO=0) for a write-heavy OLTP system even if an entire AWS region fails. Which topology genuinely meets RPO=0, and what is its unavoidable cost?
  • A. Asynchronous cross-region replication; cost is higher storage only
  • B. Synchronous cross-region replication of every commit; cost is added write latency bounded by inter-region round-trip time ✓
  • C. Periodic cross-region snapshots every 60 seconds; cost is a 60s data window
  • D. Single-region Multi-AZ with synchronous replicas; cost is compute overhead
Correct answer: B. RPO=0 across regions requires the commit to be durable in the remote region before acknowledging, which forces synchronous replication and pays the inter-region latency on every write; async and snapshots both allow data loss, and Multi-AZ does not survive a region loss.
A CQRS system writes orders to the command store and asynchronously projects them into a read model. A user places an order and is immediately shown an order list that omits it, generating support tickets. Without making the projection synchronous, the correct mitigation is:
  • A. Add a database trigger that copies writes into the read model inside the same transaction
  • B. Have the client optimistically render the just-submitted order from the command response until the projection catches up ✓
  • C. Poll the read model every 100ms server-side and block the response until the order appears
  • D. Switch the read model to strong consistency by reading from the command store for all queries
Correct answer: B. CQRS read models are eventually consistent by design; surfacing the write's own result optimistically on the client bridges the projection lag without collapsing the read/write separation.
gRPC service A calls service B with a 200ms deadline. B calls C, but B forwards a fresh 200ms deadline to C instead of propagating the remaining budget. Under load, what pathological behavior emerges?
  • A. C rejects all calls because deadlines cannot be forwarded in gRPC
  • B. B keeps waiting on C after A has already timed out and abandoned the request, wasting resources on doomed work ✓
  • C. A's deadline silently extends to 400ms due to additive propagation
  • D. C processes requests twice because deadlines trigger retries
Correct answer: B. Deadlines must propagate as the remaining budget; resetting to a full 200ms lets C keep working after A has given up, causing wasted work and cascading overload (work amplification).
You are strangling a monolith. A new 'Pricing' microservice must read customer data that still lives in the monolith's schema, whose column names and enums are messy legacy artifacts. To prevent the legacy model from leaking into the new service, you should:
  • A. Have Pricing query the monolith's tables directly using the legacy column names for speed
  • B. Introduce an anti-corruption layer that translates the legacy model into Pricing's clean domain model at the boundary ✓
  • C. Copy the monolith schema verbatim into the Pricing database to avoid translation
  • D. Expose the monolith tables via a shared ORM used by both services
Correct answer: B. An anti-corruption layer translates between the legacy and new domain models at the boundary, preventing legacy concepts from corrupting the new bounded context.
A globally distributed key-value store is configured for a quorum with N=3 replicas. To guarantee that reads always see the latest acknowledged write, which R/W setting satisfies the quorum overlap condition W + R > N with the LOWEST read latency?
  • A. W=1, R=3
  • B. W=2, R=2
  • C. W=3, R=1 ✓
  • D. W=1, R=1
Correct answer: C. W+R>N requires overlap; W=3,R=1 satisfies 4>3 and makes reads touch only one replica (lowest read latency) at the cost of slower writes.
In an eventually consistent system, which technique helps resolve conflicting concurrent writes?
  • A. Vector clocks or CRDTs ✓
  • B. A single global lock
  • C. Increasing the cache TTL
  • D. Rounding timestamps to seconds
Correct answer: A. Vector clocks and CRDTs capture causality so concurrent updates can be detected and merged deterministically.
Which shard key choice best avoids hotspots?
  • A. The record creation timestamp
  • B. A boolean status flag
  • C. A high-cardinality, evenly distributed key ✓
  • D. The customer's country
Correct answer: C. A high-cardinality, uniformly distributed key spreads writes evenly and prevents hot shards.
What is the Saga pattern primarily used for?
  • A. Compressing images at the edge
  • B. Managing distributed transactions across services ✓
  • C. Load balancing across regions
  • D. Encrypting inter-service traffic
Correct answer: B. A Saga coordinates a distributed transaction as a sequence of local steps with compensating actions.
What is a key drawback of two-phase commit (2PC)?
  • A. It cannot guarantee atomicity across nodes
  • B. It cannot abort a transaction once the prepare phase has begun
  • C. It silently loses committed data if a participant node restarts
  • D. It blocks resources and the coordinator is a single point of failure ✓
Correct answer: D. 2PC holds locks while waiting and stalls if the coordinator fails, hurting availability and throughput.
In a Dynamo-style quorum with N replicas, which condition guarantees a read sees the latest write?
  • A. R + W > N ✓
  • B. R + W < N
  • C. R = W = 1
  • D. R + W = N
Correct answer: A. When read and write quorums overlap (R + W > N), every read intersects the most recent write set.
When a circuit breaker is in the OPEN state, what does it do?
  • A. Retries the dependency on every request
  • B. Fails fast without calling the failing dependency ✓
  • C. Caches the last successful response forever
  • D. Routes traffic to a read replica
Correct answer: B. In the open state the breaker short-circuits calls immediately to give the failing dependency time to recover.
What is a key disadvantage of heavy synchronous inter-service calls?
  • A. Failures can cascade and services become tightly coupled ✓
  • B. They cannot transmit JSON payloads
  • C. They always violate the CAP theorem
  • D. They require a message broker to function
Correct answer: A. Synchronous chains propagate latency and failures downstream, coupling service availability together.
What does the Bulkhead pattern isolate?
  • A. Database rows during a transaction
  • B. API keys per client tenant
  • C. Logs by severity level
  • D. Resources so one failure doesn't sink the whole system ✓
Correct answer: D. The bulkhead partitions resources (e.g., thread pools) so a failure in one area cannot exhaust the rest.
How is exactly-once processing typically approximated in a distributed queue?
  • A. Disabling all retries on the broker
  • B. Idempotent consumers with message deduplication ✓
  • C. Setting the visibility timeout to zero
  • D. Using a single consumer thread only
Correct answer: B. Since brokers deliver at-least-once, idempotent consumers plus dedup keys yield effectively-once results.
What is the Strangler Fig pattern used for?
  • A. Incrementally replacing a legacy system piece by piece ✓
  • B. Throttling abusive API clients
  • C. Compressing responses to save bandwidth
  • D. Balancing load across availability zones
Correct answer: A. The Strangler Fig routes functionality to new services gradually until the legacy system can be retired.
During a network partition, how does a CP (consistency-partition) system behave?
  • A. It sacrifices availability to preserve consistency ✓
  • B. It sacrifices consistency to preserve availability
  • C. It guarantees both consistency and availability
  • D. It shuts down all nodes entirely
Correct answer: A. A CP system rejects or blocks requests during a partition rather than return inconsistent data.
Which technique best mitigates the 'thundering herd' problem when a hot cache key expires?
  • A. Request coalescing with a lock so only one request refills the cache ✓
  • B. Removing TTLs entirely from all keys
  • C. Increasing the number of clients
  • D. Switching every write to write-back
Correct answer: A. Coalescing/locking ensures one request repopulates the cache while others wait, avoiding a stampede on the origin.
What is the main drawback of the two-phase commit (2PC) protocol?
  • A. It blocks if the coordinator fails, reducing availability ✓
  • B. It requires every participant to run the same database vendor
  • C. It cannot guarantee atomicity
  • D. It commits each participant independently with no prepare phase
Correct answer: A. 2PC is a blocking protocol; participants can be stuck holding locks if the coordinator crashes mid-commit.
How does the Saga pattern maintain consistency across microservices?
  • A. A sequence of local transactions with compensating actions on failure ✓
  • B. A single global distributed lock across all services
  • C. A shared monolithic database for all services
  • D. Synchronous two-phase commit across services
Correct answer: A. Sagas use a chain of local transactions and issue compensating transactions to undo work if a step fails.
When is a wide-column store like Cassandra preferred over a traditional RDBMS?
  • A. High write throughput with known query patterns and horizontal scale ✓
  • B. Complex ad-hoc joins across many tables
  • C. Strong multi-row ACID transactions
  • D. Small datasets on a single node
Correct answer: A. Cassandra excels at high write throughput and linear horizontal scaling when queries are designed up front.
What does the 'sidecar' pattern in a service mesh enable?
  • A. Offloading cross-cutting concerns like mTLS and retries into a co-located proxy ✓
  • B. Storing the service's primary database
  • C. Compiling the microservice at runtime
  • D. Fully replacing the external load balancer
Correct answer: A. A sidecar proxy handles networking concerns (mTLS, retries, telemetry) outside the application code.
To approximate exactly-once processing in a distributed event pipeline, you typically combine:
  • A. Idempotent consumers with message deduplication via IDs or offsets ✓
  • B. At-most-once delivery with no tracking
  • C. Fire-and-forget messaging
  • D. Synchronous blocking calls only
Correct answer: A. Idempotent consumers plus dedup tracking make at-least-once delivery behave effectively exactly-once.
In an active-active multi-region deployment, what is the hardest problem to solve?
  • A. Conflict resolution for concurrent writes across regions ✓
  • B. Serving static assets from edge caches
  • C. Provisioning compute in each region
  • D. Configuring DNS routing
Correct answer: A. Concurrent writes in multiple regions can conflict, requiring conflict-resolution strategies like CRDTs or last-writer-wins.
What does a DynamoDB strongly consistent read guarantee?
  • A. The read reflects all writes that succeeded before the read began ✓
  • B. The read is always eventually consistent
  • C. The read uses serializable snapshot isolation
  • D. The read never returns the latest value
Correct answer: A. A strongly consistent read returns the most up-to-date data reflecting all prior successful writes.
What is the principal trade-off introduced by database sharding?
  • A. Cross-shard queries and transactions become complex ✓
  • B. Total storage capacity decreases
  • C. Single-shard reads become slower
  • D. The system loses the ability to scale horizontally
Correct answer: A. Sharding scales writes and storage but makes queries or transactions spanning multiple shards significantly harder.

Prep for another role

Questions are original, written and independently verified for HireHire's role interview quizzes. They reflect the kind of knowledge Solutions Architect interviews test, not any specific company's questions. HireHire maps live tech & IT jobs across India, updated regularly. Last updated: August 2026.