Correct Answer: Automatically changing resources based on demand
Explanation:
Autoscaling automatically adds or removes computing resources as application demand changes.
Incorrect! Try again.
10Which metric is commonly used to trigger autoscaling?
Autoscaling
Easy
A.Keyboard layout
B.Screen brightness
C.CPU utilization
D.File name length
Correct Answer: CPU utilization
Explanation:
CPU utilization is a common autoscaling metric because high usage can indicate that more instances are needed.
Incorrect! Try again.
11Which data management pattern is common in microservices?
Data Management
Easy
A.A separate database for each service
B.A shared text file for every service
C.A browser cookie for all business data
D.A single variable for every data item
Correct Answer: A separate database for each service
Explanation:
A database per service supports service independence and prevents direct coupling through shared database tables.
Incorrect! Try again.
12What does eventual consistency mean in a distributed system?
Data Management
Easy
A.Data may differ briefly but later becomes consistent
B.All data is deleted after each transaction
C.Every update is immediately visible everywhere
D.Only one service is allowed to store data
Correct Answer: Data may differ briefly but later becomes consistent
Explanation:
With eventual consistency, distributed copies may temporarily differ but converge after updates are propagated.
Incorrect! Try again.
13According to the twelve-factor app methodology, where should deployment-specific configuration be stored?
The twelve-factor app methodology
Easy
A.Inside compiled application binaries
B.In environment variables
C.In hard-coded source values
D.Inside user interface images
Correct Answer: In environment variables
Explanation:
The twelve-factor methodology recommends storing configuration in the environment rather than hard-coding it.
Incorrect! Try again.
14What does the twelve-factor methodology recommend for application dependencies?
The twelve-factor app methodology
Easy
A.Declare and isolate them explicitly
B.Hide them inside operating system folders
C.Download them manually after startup
D.Share them without recording versions
Correct Answer: Declare and isolate them explicitly
Explanation:
Dependencies should be explicitly declared and isolated to make application environments consistent and reproducible.
Incorrect! Try again.
15How should twelve-factor application processes generally operate?
The twelve-factor app methodology
Easy
A.As shared memory segments
B.As permanent database locks
C.As stateful desktop programs
D.As stateless processes
Correct Answer: As stateless processes
Explanation:
Twelve-factor processes should be stateless, with persistent data stored in backing services such as databases.
Incorrect! Try again.
16Who manages the underlying servers in a serverless architecture?
Serverless architectures
Easy
A.The cloud provider
B.The application user
C.The network visitor
D.The database customer
Correct Answer: The cloud provider
Explanation:
In serverless architectures, the cloud provider provisions, maintains, and scales the underlying infrastructure.
Incorrect! Try again.
17What commonly causes a serverless function to execute?
Serverless architectures
Easy
A.A keyboard replacement
B.A monitor resolution change
C.A source file rename
D.An event or request
Correct Answer: An event or request
Explanation:
Serverless functions are commonly event-driven and execute in response to events such as HTTP requests or file uploads.
Incorrect! Try again.
18Why does Netflix use microservices in its streaming platform?
Case studies on Netflix, Amazon, Uber, etc.
Easy
A.To remove the need for networking
B.To support scalability and service independence
C.To keep every feature in one process
D.To require one deployment for all changes
Correct Answer: To support scalability and service independence
Explanation:
Netflix uses microservices so that individual platform capabilities can scale and evolve independently.
Incorrect! Try again.
19What organizational benefit is associated with Amazon's use of small, service-focused teams?
Case studies on Netflix, Amazon, Uber, etc.
Easy
A.Teams can own and develop services independently
B.Teams place all code in one component
C.Teams must share one deployment schedule
D.Teams avoid using service interfaces
Correct Answer: Teams can own and develop services independently
Explanation:
Small service-focused teams can own, develop, deploy, and maintain their services with greater independence.
Incorrect! Try again.
20Why did Uber adopt microservices as its platform grew?
Case studies on Netflix, Amazon, Uber, etc.
Easy
A.To place every feature in one database procedure
B.To eliminate all cloud infrastructure
C.To support growth with independently scalable services
D.To prevent services from communicating through APIs
Correct Answer: To support growth with independently scalable services
Explanation:
Microservices helped Uber divide its growing platform into services that could be developed and scaled independently.
Incorrect! Try again.
21An online retailer wants each product team to deploy its service independently without coordinating every release. Which architectural decision best supports this goal?
Cloud-native architecture
Medium
A.Require every service to use a shared internal object model
B.Route all service requests through a single application process
C.Place all services in one repository and release them together
D.Give each service a clear business capability and deployment pipeline
Correct Answer: Give each service a clear business capability and deployment pipeline
Explanation:
Services organized around business capabilities can be developed, tested, and deployed independently, which is a core cloud-native characteristic.
Incorrect! Try again.
22A payment service publishes a PaymentCompleted event without knowing which services will consume it. What is the main architectural benefit?
Loosely coupled services
Medium
A.Consumers can evolve without direct dependencies on the producer
B.The producer and consumers share one deployment lifecycle
C.The producer can directly control every consumer transaction
D.Consumers always process events in the same global order
Correct Answer: Consumers can evolve without direct dependencies on the producer
Explanation:
Event publication reduces direct knowledge between services, allowing consumers to be added or changed with less impact on the producer.
Incorrect! Try again.
23Service instances receive dynamic IP addresses and may be replaced frequently. How should an API gateway locate healthy instances?
Service Discovery
Medium
A.Broadcast each request to every node in the cluster
B.Query a service registry containing current instance locations
C.Read static IP addresses from the application source code
D.Store one permanent instance address in a DNS cache
Correct Answer: Query a service registry containing current instance locations
Explanation:
A service registry tracks dynamically created and removed instances, enabling the gateway to discover healthy endpoints at runtime.
Incorrect! Try again.
24Four service instances have active connection counts of 12, 7, 19, and 4. Which instance would a least-connections load balancer select for the next request?
Load Balancing
Medium
A.The instance with 4 connections
B.The instance with 19 connections
C.The instance with 12 connections
D.The instance with 7 connections
Correct Answer: The instance with 4 connections
Explanation:
The least-connections algorithm selects the healthy instance currently handling the fewest active connections.
Incorrect! Try again.
25A worker service processes messages from a queue. CPU usage stays low even when thousands of messages are waiting. Which scaling metric is most appropriate?
Autoscaling
Medium
A.The number of configured API routes
B.The number and age of queued messages
C.The amount of allocated disk storage
D.The count of source-code repositories
Correct Answer: The number and age of queued messages
Explanation:
Queue depth and message age directly reflect unprocessed work, making them better scaling signals than CPU usage for this workload.
Incorrect! Try again.
26An order workflow updates the order, payment, and inventory services, each with its own database. Which approach best handles a failure after payment succeeds but inventory reservation fails?
Data Management
Medium
A.Lock all databases through a shared application connection
B.Use one foreign key across all three service databases
C.Use a saga that invokes a payment compensation action
D.Repeat every operation until all databases become identical
Correct Answer: Use a saga that invokes a payment compensation action
Explanation:
A saga coordinates local transactions and uses compensating actions, such as issuing a refund, when a later step fails.
Incorrect! Try again.
27A service uses different database URLs in development, testing, and production. According to the twelve-factor methodology, where should these values be stored?
The twelve-factor app methodology
Medium
A.In a shared document copied manually during every deployment
B.In environment-based configuration outside the application code
C.In separate branches containing modified application source files
D.In constants compiled into each environment's executable file
Correct Answer: In environment-based configuration outside the application code
Explanation:
The twelve-factor methodology requires configuration that varies by deployment to be stored in the environment rather than in source code.
Incorrect! Try again.
28A containerized service writes logs to local files, but those logs disappear whenever the container is replaced. Which change best follows twelve-factor guidance?
The twelve-factor app methodology
Medium
A.Send logs to another thread in the same process
B.Store logs permanently in the container image
C.Write logs as event streams to standard output
D.Disable replacement of containers that contain log files
Correct Answer: Write logs as event streams to standard output
Explanation:
Twelve-factor applications treat logs as event streams. The execution environment can collect standard output and forward it to centralized storage.
Incorrect! Try again.
29A serverless function may receive the same payment event more than once because the platform retries failed deliveries. Which design most effectively prevents duplicate charges?
Serverless architectures
Medium
A.Create a new database table for each invocation
B.Use an idempotency key for each payment operation
C.Disable application logging during payment processing
D.Increase the function's memory for every invocation
Correct Answer: Use an idempotency key for each payment operation
Explanation:
An idempotency key lets the service recognize an already processed payment request and return the prior result without charging again.
Incorrect! Try again.
30Users experience high latency on the first request after a serverless function has been idle. Which measure most directly reduces this cold-start impact?
Serverless architectures
Medium
A.Increase the event retention period in the message broker
B.Store larger response objects in the function deployment package
C.Replace asynchronous events with synchronous database triggers
D.Configure provisioned concurrency for expected baseline traffic
Correct Answer: Configure provisioned concurrency for expected baseline traffic
Explanation:
Provisioned concurrency keeps function environments initialized and ready, reducing the latency caused by cold starts.
Incorrect! Try again.
31A video platform wants playback recommendations to remain available even when the personalization service is failing. Which pattern associated with Netflix-style resilience best addresses this requirement?
Case studies on Netflix, Amazon, Uber, etc.
Medium
A.Place playback and personalization in one database transaction
B.Use a circuit breaker and return cached recommendations
C.Stop all user requests until personalization fully recovers
D.Retry each failed request forever without a delay
Correct Answer: Use a circuit breaker and return cached recommendations
Explanation:
A circuit breaker prevents repeated calls to a failing dependency, while a cached fallback allows the main user experience to continue.
Incorrect! Try again.
32A large e-commerce company wants teams to own services from development through production. Which practice most closely matches Amazon's service-oriented operating model?
Case studies on Netflix, Amazon, Uber, etc.
Medium
A.Small teams own services and their operational outcomes
B.Quarterly releases combine every service into one deployment
C.One central team deploys and operates every business service
D.All teams modify a shared database through common tables
Correct Answer: Small teams own services and their operational outcomes
Explanation:
Amazon is associated with small autonomous teams and end-to-end service ownership, often summarized by the idea that teams build and run their services.
Incorrect! Try again.
33A ride-sharing platform must continuously match drivers with nearby riders as locations change. Which architecture is most suitable for this Uber-like workload?
Case studies on Netflix, Amazon, Uber, etc.
Medium
A.A static website backed by a single read-only database
B.Event streams combined with geospatially partitioned services
C.A monthly data export processed by desktop applications
D.A nightly batch job using one global spreadsheet
Correct Answer: Event streams combined with geospatially partitioned services
Explanation:
Location updates are continuous events, while geospatial partitioning helps process matching requests efficiently within relevant geographic regions.
Incorrect! Try again.
34A product catalog service becomes unavailable, but the storefront should continue showing recently viewed products. Which cloud-native design principle best supports this behavior?
Cloud-native architecture
Medium
A.Shared-memory communication between all service instances
B.Strong coupling through synchronous calls for every page
C.Graceful degradation using cached or reduced functionality
D.Coordinated shutdown of every dependent application service
Correct Answer: Graceful degradation using cached or reduced functionality
Explanation:
Graceful degradation preserves essential functionality by using fallbacks or cached data when a dependent service is unavailable.
Incorrect! Try again.
35A customer service must add a field to its response without immediately breaking existing consumers. Which API change best preserves loose coupling?
Loosely coupled services
Medium
A.Remove older fields as soon as the new field is introduced
B.Change the response format without publishing a new contract
C.Rename all existing fields and require immediate consumer updates
D.Add an optional field while preserving existing response fields
Correct Answer: Add an optional field while preserving existing response fields
Explanation:
An additive, backward-compatible change allows older consumers to continue working while newer consumers adopt the optional field.
Incorrect! Try again.
36A terminated service instance remains listed in the registry and continues receiving requests. Which mechanism would most directly reduce this problem?
Service Discovery
Medium
A.Health checks with lease expiration and deregistration
B.Long-lived client caches without endpoint refreshes
C.Static host entries distributed during application builds
D.Random port changes performed without registry updates
Correct Answer: Health checks with lease expiration and deregistration
Explanation:
Health checks and expiring leases remove failed or unreachable instances from the registry so clients stop routing traffic to them.
Incorrect! Try again.
37A web application stores user sessions only in each server's local memory. Users lose their sessions when requests reach different instances. What is the most scalable correction?
Load Balancing
Medium
A.Send every user permanently to the first available server
B.Copy all sessions manually whenever an instance is added
C.Reduce the deployment to one large application instance
D.Store session state in a shared external data service
Correct Answer: Store session state in a shared external data service
Explanation:
Externalizing session state makes application instances stateless, allowing a load balancer to route requests to any healthy instance.
Incorrect! Try again.
38A service repeatedly scales out and then scales in within a few minutes because its CPU utilization fluctuates near the target threshold. Which configuration change best limits this oscillation?
Autoscaling
Medium
A.Remove all minimum and maximum instance limits
B.Replace CPU monitoring with a fixed deployment schedule
C.Trigger scaling from every individual incoming request
D.Add stabilization windows and separate scaling thresholds
Correct Answer: Add stabilization windows and separate scaling thresholds
Explanation:
Stabilization windows and different scale-out and scale-in thresholds introduce hysteresis, preventing frequent scaling caused by short-lived metric changes.
Incorrect! Try again.
39A reporting dashboard needs fast queries across data produced by several microservices, but direct cross-service joins are causing failures and high latency. Which design is most appropriate?
Data Management
Medium
A.Merge all service schemas into one shared transactional database
B.Perform synchronous joins through each service for every screen
C.Allow the dashboard to modify every service database directly
D.Build a read model from events published by the services
Correct Answer: Build a read model from events published by the services
Explanation:
An event-driven read model creates query-optimized data without coupling the dashboard to operational databases or requiring synchronous cross-service joins.
Incorrect! Try again.
40A service requires several minutes to shut down because it keeps temporary work only in process memory. Which redesign best supports the twelve-factor principle of disposability?
The twelve-factor app methodology
Medium
A.Run administrative tasks inside the long-lived web process
B.Increase shutdown timeouts and keep all state in memory
C.Make shutdown graceful and persist resumable work externally
D.Prevent the platform from replacing unhealthy service instances
Correct Answer: Make shutdown graceful and persist resumable work externally
Explanation:
Disposable processes should start quickly, stop gracefully, and avoid depending on local process state that would be lost during replacement.
Incorrect! Try again.
41A request passes synchronously through services A, B, and C. Each service independently retries a failed downstream call up to two additional times. If C remains unavailable, what architectural change most directly prevents retry amplification while preserving transient-failure recovery?
Cloud-native architecture
Hard
A.Retry at one designated boundary with backoff, jitter, and a bounded budget
B.Enable three retries at every service and add randomized fixed delays
C.Move retry responsibility to service C and increase its request timeout
D.Replace synchronous calls with longer timeouts at every service boundary
Correct Answer: Retry at one designated boundary with backoff, jitter, and a bounded budget
Explanation:
Centralizing retries at a defined boundary avoids multiplicative attempts. Backoff, jitter, and a retry budget still permit recovery without overwhelming an unhealthy dependency.
Incorrect! Try again.
42A producer publishes CustomerAddressChanged events. Several consumers fail whenever the producer adds optional fields or changes its internal database schema. Which redesign best reduces structural coupling?
Loosely coupled services
Hard
A.Require every consumer to deploy simultaneously whenever an event field changes
B.Expose the producer's schema registry as a shared runtime database dependency
C.Publish complete database rows so consumers can ignore fields they do not need
D.Publish versioned business events with compatibility rules and consumer contract tests
Correct Answer: Publish versioned business events with compatibility rules and consumer contract tests
Explanation:
Stable business contracts, explicit compatibility policies, and consumer-driven tests allow independent evolution. Publishing database rows leaks internal storage design and increases coupling.
Incorrect! Try again.
43Instances register with a discovery service using leases. During a network partition, an isolated instance continues serving traffic but cannot renew its lease. Which behavior best limits routing to stale instances after connectivity is restored?
Service Discovery
Hard
A.Expire registrations by lease TTL and combine discovery with active health checks
B.Route by static instance addresses and reconcile the registry once per deployment
C.Retain all registrations until each instance explicitly sends a shutdown message
D.Use infinite client-side cache entries and refresh them only after call failures
Correct Answer: Expire registrations by lease TTL and combine discovery with active health checks
Explanation:
Lease expiration removes registrations that cannot renew, while health checks catch instances that remain reachable but are not ready. Explicit deregistration alone is unreliable during partitions or crashes.
Incorrect! Try again.
44A service has instances with similar CPU capacity, but request durations vary from 10 ms to 30 s. Connections are reused through HTTP/2, so connection count poorly represents active work. Which load-balancing policy is most appropriate?
Load Balancing
Hard
A.Random selection weighted by each instance's configured memory allocation
B.Least outstanding requests adjusted by observed latency and instance health
C.Round robin based only on the order in which instances were registered
D.Consistent hashing based on the client's ephemeral source port
Correct Answer: Least outstanding requests adjusted by observed latency and instance health
Explanation:
Outstanding-request and latency signals reflect variable in-flight work better than connection count or plain round robin. Health weighting also avoids sending work to degraded instances.
Incorrect! Try again.
45Jobs arrive at an average rate of jobs per minute. One worker processes jobs per minute, and the target utilization is . Ignoring burst headroom, how many workers are required to sustain the average rate?
Autoscaling
Hard
A.16 workers
B.18 workers
C.15 workers
D.12 workers
Correct Answer: 16 workers
Explanation:
At utilization, one worker contributes jobs per minute. Therefore, workers are required.
Incorrect! Try again.
46An order workflow reserves inventory, authorizes payment, and schedules shipment across independently owned databases. Atomic distributed transactions are unavailable. Which design best handles a payment failure after inventory has been reserved?
Data Management
Hard
A.Mark the order complete and repair payment inconsistencies in monthly batches
B.Share the inventory database with the payment service for local rollback
C.Retry payment forever while retaining the inventory reservation indefinitely
D.Use a saga that records progress and invokes an inventory-release compensation
Correct Answer: Use a saga that records progress and invokes an inventory-release compensation
Explanation:
A saga coordinates local transactions and compensating actions. Durable progress tracking also supports recovery when failures occur between workflow steps.
Incorrect! Try again.
47The same container image must run in development, staging, and production, but each environment uses different credentials and service endpoints. Which implementation most closely follows twelve-factor methodology?
The twelve-factor app methodology
Hard
A.Store credentials in source-controlled files selected by the deployment branch
B.Compile environment-specific values into separate images during each release
C.Inject environment-specific configuration at runtime through the environment
D.Discover credentials by parsing environment names embedded in hostnames
Correct Answer: Inject environment-specific configuration at runtime through the environment
Explanation:
The twelve-factor configuration principle separates deploy-specific values from code. A single immutable artifact can then be promoted while configuration is supplied by the runtime environment.
Incorrect! Try again.
48A serverless function processes messages from an at-least-once queue and charges a customer through an external payment API. A timeout may occur after the API accepts a charge but before the function records success. Which mechanism best prevents duplicate charges?
Serverless architectures
Hard
A.Acknowledge the queue message immediately before invoking the payment API
B.Increase function memory so the payment request usually completes more quickly
C.Disable queue retries and route every timeout directly to a dead-letter queue
D.Use a deterministic idempotency key accepted and persisted by the payment API
Correct Answer: Use a deterministic idempotency key accepted and persisted by the payment API
Explanation:
An idempotency key makes repeated attempts represent the same logical charge, including when the caller cannot determine whether the first attempt succeeded.
Incorrect! Try again.
49A streaming platform modeled after Netflix must continue presenting useful content when its personalized recommendation service is unavailable. Which resilience strategy best matches this requirement?
Case studies on Netflix, Amazon, Uber, etc.
Hard
A.Fail the entire home page so all sections remain transactionally consistent
B.Serve cached or generic recommendations through a circuit-breaker fallback
C.Redirect every user to the recommendation service's operational dashboard
D.Retry recommendation requests without limit until personalization recovers
Correct Answer: Serve cached or generic recommendations through a circuit-breaker fallback
Explanation:
Graceful degradation preserves the core viewing experience. A circuit breaker limits pressure on the failed service, while cached or generic results provide acceptable fallback content.
Incorrect! Try again.
50An Amazon-style retail platform partitions checkout into regional cells. A malformed configuration causes failures in one cell. Which property most directly reduces the incident's blast radius?
Case studies on Netflix, Amazon, Uber, etc.
Hard
A.Each cell owns isolated compute and data resources for a bounded customer subset
B.Every cell shares one global connection pool to maximize infrastructure usage
C.Configuration changes are applied globally before any cell begins health checks
D.All regional requests are routed through one stateful checkout coordinator
Correct Answer: Each cell owns isolated compute and data resources for a bounded customer subset
Explanation:
Cell isolation confines resource exhaustion and faulty changes to a bounded partition. Shared stateful dependencies would allow the same failure to spread across cells.
Incorrect! Try again.
51An Uber-like dispatch system stores driver locations that update every few seconds. Matching must remain low-latency, while temporary location staleness is acceptable. Which architecture is most suitable?
Case studies on Netflix, Amazon, Uber, etc.
Hard
A.Broadcast each rider request synchronously to every active driver's device
B.Run serializable joins over the billing database for every rider request
C.Write all locations to one relational row protected by a global transaction
D.Maintain a partitioned geospatial index fed asynchronously by location events
Correct Answer: Maintain a partitioned geospatial index fed asynchronously by location events
Explanation:
A partitioned geospatial index supports proximity queries at high update rates. Asynchronous event ingestion accepts bounded staleness while avoiding global scans and transactions.
Incorrect! Try again.
52A user request triggers asynchronous work across six services and three message brokers. Logs contain timestamps but cannot reliably reconstruct one request because clocks differ and messages are retried. Which observability change provides the strongest causal trace?
Cloud-native architecture
Hard
A.Attach propagated trace and span identifiers to calls, messages, logs, and retries
B.Store each service's logs locally until the entire workflow has completed
C.Increase log verbosity and search for matching user-agent header values
D.Synchronize clocks hourly and sort all service logs by local timestamp
Correct Answer: Attach propagated trace and span identifiers to calls, messages, logs, and retries
Explanation:
Propagated trace context records causal relationships across synchronous and asynchronous boundaries. Timestamps alone cannot reliably establish causality under skew, concurrency, and retries.
Incorrect! Try again.
53Service A publishes an event and then waits synchronously for acknowledgments from every current consumer before committing its own transaction. What form of coupling has primarily been reintroduced?
Loosely coupled services
Hard
A.Temporal coupling because producer progress depends on simultaneous consumer availability
B.Language coupling because all event handlers must use the producer's framework
C.Storage coupling because all consumers must use an identical database engine
D.Spatial coupling because every consumer must execute in the same operating system
Correct Answer: Temporal coupling because producer progress depends on simultaneous consumer availability
Explanation:
The producer can progress only while all consumers are available at the same time. This negates a key benefit of asynchronous messaging: temporal independence.
Incorrect! Try again.
54A client-side discovery cache has a 60-second TTL. After an instance is terminated, clients continue routing to it until cache expiration, causing failures. Which modification reduces stale routing without making the registry a dependency for every request?
Service Discovery
Hard
A.Use background cache refresh, short negative feedback eviction, and bounded TTLs
B.Republish terminated addresses with higher priority until all clients reconnect
C.Query the registry synchronously before every request and disable local caching
D.Remove cache expiration and depend entirely on transport-level connection retries
Correct Answer: Use background cache refresh, short negative feedback eviction, and bounded TTLs
Explanation:
Background refresh preserves registry independence on the request path, while failure-triggered eviction quickly removes bad endpoints. Bounded TTLs provide eventual correction.
Incorrect! Try again.
55A cache cluster is scaled from 100 to 101 nodes. The system must minimize key remapping while keeping load reasonably balanced. Which technique best satisfies both goals?
Load Balancing
Hard
A.Consistent hashing with virtual nodes distributed around the hash ring
B.Modulo hashing with the node count used as the divisor
C.Least connections with keys pinned to the first responding node
D.Round robin with each key reassigned on every cache operation
Correct Answer: Consistent hashing with virtual nodes distributed around the hash ring
Explanation:
Consistent hashing remaps only a limited portion of keys when membership changes. Virtual nodes improve distribution and reduce imbalance among physical nodes.
Incorrect! Try again.
56A CPU-based autoscaler repeatedly adds instances during short traffic spikes, then removes them before their caches warm. Latency worsens despite adequate average capacity. Which tuning is most likely to stabilize the system?
Autoscaling
Hard
A.Disable readiness checks so newly started instances receive full traffic immediately
B.Add separate scale-up and scale-down thresholds plus a scale-down stabilization window
C.Terminate the oldest instances first whenever CPU falls below the target briefly
D.Use one identical CPU threshold and evaluate it more frequently in both directions
Correct Answer: Add separate scale-up and scale-down thresholds plus a scale-down stabilization window
Explanation:
Hysteresis and a stabilization window prevent rapid reversal after scaling out. They allow new instances to warm and reduce oscillation caused by brief metric changes.
Incorrect! Try again.
57A service updates its database and publishes an integration event. Crashes between these operations sometimes produce missing events or events for rolled-back writes. Which pattern best resolves the dual-write problem without requiring a distributed transaction?
Data Management
Hard
A.Let consumers poll the service's private tables using shared credentials
B.Publish the event first and delay the database update by a fixed interval
C.Write the state change and an outbox record in one local transaction
D.Retry both operations independently until their latest timestamps match
Correct Answer: Write the state change and an outbox record in one local transaction
Explanation:
The transactional outbox atomically records both the domain change and publication intent. A separate relay can publish the event with retry and deduplication.
Incorrect! Try again.
58A web service scales horizontally, but user sessions are stored in each process's memory. Requests routed to a different instance lose session state. Which change most directly applies the twelve-factor processes principle?
The twelve-factor app methodology
Hard
A.Prevent horizontal scaling and increase the capacity of one application process
B.Replicate process memory synchronously among every application instance
C.Store session state in an attached backing service and keep processes stateless
D.Configure the load balancer to preserve permanent client-to-instance affinity
Correct Answer: Store session state in an attached backing service and keep processes stateless
Explanation:
Twelve-factor processes are stateless and share nothing. Durable or shared session data belongs in a backing service, allowing instances to be replaced and scaled independently.
Incorrect! Try again.
59A latency-sensitive serverless API receives unpredictable bursts but has a strict 100 ms response objective. Profiling shows that cold initialization alone takes 600 ms. Which intervention most directly addresses the measured tail-latency cause?
Serverless architectures
Hard
A.Batch unrelated API requests into one invocation every five seconds
B.Send failed invocations to a dead-letter queue after three attempts
C.Increase the function timeout from one second to thirty seconds
D.Maintain provisioned concurrency for the latency-critical execution path
Correct Answer: Maintain provisioned concurrency for the latency-critical execution path
Explanation:
Provisioned concurrency keeps execution environments initialized, directly reducing cold-start latency. Longer timeouts and dead-letter queues do not improve successful response latency.
Incorrect! Try again.
60A read model consumes ordered account events from a partitioned stream. Events for the same account must remain ordered, but events for different accounts may be processed concurrently. Which partitioning strategy satisfies this constraint?
Data Management
Hard
A.Partition by account identifier and preserve order within each partition
B.Partition by event type and process all event types in separate regions
C.Partition randomly for each event and sort by arrival time at consumers
D.Partition by producer instance and rely on timestamps for account ordering
Correct Answer: Partition by account identifier and preserve order within each partition
Explanation:
Using the account identifier as the partition key places one account's events in a single ordered partition while allowing different partitions to run concurrently.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →