1What is the primary goal of Cloud-Native architecture?
A.To build and run scalable applications in modern, dynamic environments
B.To rely exclusively on physical hardware management
C.To increase the coupling between services
D.To build applications that run only on local servers
Correct Answer: To build and run scalable applications in modern, dynamic environments
Explanation:
Cloud-native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds.
Incorrect! Try again.
2In the context of microservices, what does 'Loosely Coupled' mean?
A.Services are physically connected via cables
B.Services share a single database and memory space
C.Services must always be written in the same programming language
D.Services can be deployed and updated independently without affecting others
Correct Answer: Services can be deployed and updated independently without affecting others
Explanation:
Loose coupling ensures that changes to one service do not require changes to or downtime for other services, enabling independent deployment.
Incorrect! Try again.
3Which component is primarily responsible for keeping track of the network locations of service instances?
A.Service Discovery
B.Circuit Breaker
C.Load Balancer
D.API Gateway
Correct Answer: Service Discovery
Explanation:
Service Discovery is the mechanism used to locate network addresses (IP and Port) of available service instances in a dynamic environment.
Incorrect! Try again.
4What is the main function of a Load Balancer in a cloud-native environment?
A.To store session data permanently
B.To discovery service registry locations
C.To distribute incoming network traffic across multiple servers
D.To compile code
Correct Answer: To distribute incoming network traffic across multiple servers
Explanation:
Load balancers distribute traffic across multiple instances to ensure reliability, performance, and to prevent any single instance from being overwhelmed.
Incorrect! Try again.
5What is 'Horizontal Scaling' (Scaling Out)?
A.Reducing the number of servers to save money
B.Replacing the hard drive with an SSD
C.Adding more power (CPU, RAM) to an existing machine
D.Adding more instances of machines/services to the resource pool
Correct Answer: Adding more instances of machines/services to the resource pool
Explanation:
Horizontal scaling involves adding more nodes or instances to a system to handle increased load, which is a core concept of cloud-native systems.
Incorrect! Try again.
6According to the CAP theorem, which two guarantees are often chosen in distributed cloud microservices favoring high availability?
A.Availability and Partition Tolerance
B.Consistency and Availability
C.Availability and Latency
D.Consistency and Partition Tolerance
Correct Answer: Availability and Partition Tolerance
Explanation:
In distributed cloud systems (like microservices), Partition Tolerance is non-negotiable. Systems often choose AP (Availability and Partition Tolerance) over strict Consistency to ensure the system remains up during network issues.
Incorrect! Try again.
7Which of the following is NOT one of the Twelve-Factor App methodologies?
A.Codebase
B.Port Binding
C.Disposability
D.Sticky Sessions
Correct Answer: Sticky Sessions
Explanation:
Sticky Sessions are generally discouraged in the 12-Factor methodology because they hinder statelessness. The methodology advocates for stateless processes.
Incorrect! Try again.
8In the Twelve-Factor App methodology, how should configuration be managed?
A.Stored in the environment variables
B.Kept in a text file committed to the repo
C.Hardcoded in the source code
D.Stored in a separate database table only
Correct Answer: Stored in the environment variables
Explanation:
The 12-Factor App methodology states that configuration should be stored in the environment to separate config from code.
Incorrect! Try again.
9What is 'Serverless' architecture?
A.A system that runs entirely on the client's browser
B.A model where the cloud provider manages the allocation of machine resources dynamically
C.An architecture dependent on dedicated physical servers
D.An architecture where no servers exist at all
Correct Answer: A model where the cloud provider manages the allocation of machine resources dynamically
Explanation:
Serverless (like AWS Lambda) doesn't mean no servers; it means developers do not have to manage, provision, or patch the servers.
Incorrect! Try again.
10Which Netflix tool is famous for randomly terminating instances in production to ensure system resilience?
A.Zuul
B.Chaos Monkey
C.Hystrix
D.Eureka
Correct Answer: Chaos Monkey
Explanation:
Chaos Monkey is a tool invented by Netflix to test the resilience of its IT infrastructure by intentionally disabling computers in its production network.
Incorrect! Try again.
11Which pattern involves a database per service rather than a shared database?
A.Shared Repository
B.Database per Service
C.Data Warehouse
D.Monolithic Database Pattern
Correct Answer: Database per Service
Explanation:
To ensure loose coupling, microservices usually follow the Database per Service pattern so that services are not tightly bound by a shared schema.
Incorrect! Try again.
12In Service Discovery, what is the role of a 'Service Registry'?
A.To store the database credentials
B.To maintain a database of available service instances
C.To authenticate users
D.To balance the load between regions
Correct Answer: To maintain a database of available service instances
Explanation:
A Service Registry (like Eureka or Consul) is a database that contains the network locations of service instances.
Incorrect! Try again.
13What is 'Client-Side Discovery'?
A.The client broadcasts a message to the entire network
B.The client hardcodes the IP address of the server
C.The client queries the Service Registry to get the location of a service instance
D.The client connects to a Load Balancer which then routes the traffic
Correct Answer: The client queries the Service Registry to get the location of a service instance
Explanation:
In Client-Side Discovery, the client is responsible for determining the network locations of available service instances by querying a registry.
Incorrect! Try again.
14Which of the following describes 'Vertical Scaling'?
A.Using a Content Delivery Network
B.Adding more CPU or RAM to an existing single server
C.Adding more machines to the cluster
D.Distributing the database across regions
Correct Answer: Adding more CPU or RAM to an existing single server
Explanation:
Vertical scaling (scaling up) involves increasing the capacity of a single machine, which has physical limits compared to horizontal scaling.
Incorrect! Try again.
15What does the 'Disposability' factor in the Twelve-Factor App methodology emphasize?
A.Code should be thrown away after use
B.Fast startup and graceful shutdown
C.Deleting logs immediately
D.Using temporary databases only
Correct Answer: Fast startup and graceful shutdown
Explanation:
Disposability means the application can be started or stopped rapidly. This facilitates fast scaling, rapid deployment, and robustness.
Incorrect! Try again.
16Amazon's 'Two-Pizza Team' rule is related to which aspect of microservices?
A.Organizational Structure and Team Size
B.Load Balancing
C.API Rate Limiting
D.Database Sharding
Correct Answer: Organizational Structure and Team Size
Explanation:
Amazon's rule states that a team should be small enough to be fed by two pizzas, promoting small, autonomous teams that own specific microservices.
Incorrect! Try again.
17What is a 'Cold Start' in Serverless computing?
A.The latency experienced when a function is invoked for the first time or after a period of inactivity
B.Restarting a frozen physical server
C.Booting up a computer in a cold server room
D.The initial configuration of a cloud account
Correct Answer: The latency experienced when a function is invoked for the first time or after a period of inactivity
Explanation:
Cold start refers to the delay when the cloud provider has to spin up a new container to run a function that hasn't been called recently.
Incorrect! Try again.
18How does Uber manage the complexity of thousands of microservices?
A.Manually configuring IP addresses
B.By reverting to a monolith
C.Using a service mesh and rigorous RPC standards
D.Using a single shared database
Correct Answer: Using a service mesh and rigorous RPC standards
Explanation:
Uber utilizes sophisticated tooling, service meshes, and standardized Remote Procedure Calls (RPC) to manage communication between thousands of services.
Incorrect! Try again.
19In the Twelve-Factor App, how should 'Dependencies' be handled?
A.They should be implicitly relied upon based on the OS
B.They should be ignored
C.They should be copied manually into the folder
D.They should be explicitly declared and isolated
Correct Answer: They should be explicitly declared and isolated
Explanation:
Dependencies must be explicitly declared (e.g., via a manifest like package.json or pom.xml) and isolated to ensure consistent execution environments.
Incorrect! Try again.
20What is the 'Backing Services' factor in the Twelve-Factor App?
A.Treating backing services (databases, queues) as attached resources
B.Services that are hardcoded into the application logic
C.Running background services on the client machine
D.Services that back up data to tape drives
Correct Answer: Treating backing services (databases, queues) as attached resources
Explanation:
Backing services (like databases, caching systems, message queues) should be treated as attached resources accessed via a URL or other locator stored in config.
Incorrect! Try again.
21Which technology is most commonly associated with container orchestration in cloud-native development?
A.Apache Tomcat
B.VirtualBox
C.VMware
D.Kubernetes
Correct Answer: Kubernetes
Explanation:
Kubernetes is the industry standard for container orchestration, automating deployment, scaling, and management of containerized applications.
Incorrect! Try again.
22What does 'Polyglot Persistence' mean in the context of Data Management?
A.Using different data storage technologies to handle different data storage needs
B.Writing data in multiple languages
C.Persisting data only in English
D.Using a single database for all data types
Correct Answer: Using different data storage technologies to handle different data storage needs
Explanation:
Polyglot persistence allows microservices to use the best database tool for the specific job (e.g., SQL for transactions, NoSQL for documents, Redis for caching).
Incorrect! Try again.
23The 'Build, Release, Run' factor dictates that:
A.Building and running happen simultaneously
B.Build, release, and run stages must be strictly separated
C.You can change code directly in the running stage
D.Releases should not have unique IDs
Correct Answer: Build, release, and run stages must be strictly separated
Explanation:
Strict separation ensures that code changes are processed into an immutable build, combined with config to create a release, which is then executed.
Incorrect! Try again.
24What is the primary benefit of Autoscaling?
A.It guarantees code quality
B.It automatically writes unit tests
C.It ensures resources match the current demand automatically to optimize cost and performance
D.It reduces the storage size of the database
Correct Answer: It ensures resources match the current demand automatically to optimize cost and performance
Explanation:
Autoscaling dynamically adjusts resources based on load, saving money during low traffic and maintaining performance during high traffic.
Incorrect! Try again.
25In cloud-native apps, logs should be treated as:
A.Emails sent to the admin
B.Event streams
C.Text files stored on the local hard drive
D.Database tables
Correct Answer: Event streams
Explanation:
The Twelve-Factor App methodology states that logs should be treated as a stream of aggregated, time-ordered events, rather than managing log files manually.
Incorrect! Try again.
26Which consistency model is most common in cross-microservice operations?
A.Immediate Consistency
B.ACID Consistency
C.Eventual Consistency
D.Strong Consistency
Correct Answer: Eventual Consistency
Explanation:
Due to the distributed nature of microservices and the CAP theorem, systems often rely on eventual consistency to maintain high availability and performance.
Incorrect! Try again.
27Netflix Hystrix is an implementation of which pattern?
A.Factory Pattern
B.Observer Pattern
C.Circuit Breaker Pattern
D.Singleton Pattern
Correct Answer: Circuit Breaker Pattern
Explanation:
Hystrix is a library designed to control the interactions between distributed services by implementing the Circuit Breaker pattern to prevent cascading failures.
Incorrect! Try again.
28What is 'Dev/Prod Parity' in the Twelve-Factor App?
A.Development should use Windows and Production should use Linux
B.Development and Production environments should be as similar as possible
C.Developers should have access to Production data
D.Production servers should be used for Development
Correct Answer: Development and Production environments should be as similar as possible
Explanation:
Dev/prod parity minimizes the time and gaps between development and production, preventing 'it works on my machine' issues.
Incorrect! Try again.
29Which of the following is a key characteristic of Serverless architectures (FaaS)?
A.Manual OS patching
B.Fixed monthly cost regardless of usage
C.Long-running stateful processes
D.Stateless, ephemeral functions
Correct Answer: Stateless, ephemeral functions
Explanation:
Serverless functions are designed to be short-lived (ephemeral) and stateless, spun up to handle an event and then spun down.
Incorrect! Try again.
30What is the 'Port Binding' factor?
A.Hardcoding ports in the code
B.Using only port 80 for all services
C.The app is completely self-contained and exports a service via port binding
D.Services should rely on a separate web server container (like Tomcat) injected at runtime
Correct Answer: The app is completely self-contained and exports a service via port binding
Explanation:
The application should not rely on the runtime injection of a webserver; instead, it should bind to a port and listen for requests directly.
Incorrect! Try again.
31How do cloud-native applications typically handle 'Admin Processes'?
A.They run as one-off processes
B.They are handled manually by editing the database
C.They are embedded in the main request loop
D.They are strictly forbidden
Correct Answer: They run as one-off processes
Explanation:
Admin tasks (like database migrations) should run as one-off processes in an environment identical to the app's regular long-running processes.
Incorrect! Try again.
32In a Serverless environment, what usually triggers a function execution?
Serverless architectures are fundamentally event-driven; functions execute in response to specific triggers or events.
Incorrect! Try again.
33Which distributed data pattern manages transactions that span multiple microservices?
A.Shared Database
B.Saga Pattern
C.Two-Phase Commit (2PC)
D.Single Transaction Script
Correct Answer: Saga Pattern
Explanation:
The Saga pattern manages distributed transactions by executing a sequence of local transactions, with compensating transactions to undo changes if a step fails.
Incorrect! Try again.
34What challenge did Netflix face that led to the creation of Eureka?
A.They ran out of hard drive space
B.They needed a new video compression algorithm
C.They needed a way for services to locate each other dynamically in AWS
D.They needed to know the physical location of every server
Correct Answer: They needed a way for services to locate each other dynamically in AWS
Explanation:
Netflix created Eureka for Service Discovery to allow mid-tier load balancing and failover in the dynamic AWS cloud environment.
Incorrect! Try again.
35What is a 'Sidecar' pattern in cloud-native development?
A.A backup server
B.Deploying a helper process alongside the main application container
C.A secondary database
D.A method of pair programming
Correct Answer: Deploying a helper process alongside the main application container
Explanation:
The Sidecar pattern involves co-locating a helper container (for logging, proxying, or config) in the same pod/host as the main application container.
Incorrect! Try again.
36According to the 'Processes' factor of the 12-Factor App, applications should be:
A.Run as a single monolithic process
B.Stateful
C.Dependent on sticky sessions
D.Stateless and share-nothing
Correct Answer: Stateless and share-nothing
Explanation:
Applications should be stateless. Any data that needs to persist must be stored in a stateful backing service (like a database), not in the process memory.
Incorrect! Try again.
37Why is 'Concurrency' managed via the process model in 12-Factor Apps?
A.To save battery life
B.To use threads exclusively
C.To prevent multiple users from logging in
D.To scale out by adding more process instances rather than making one process larger
Correct Answer: To scale out by adding more process instances rather than making one process larger
Explanation:
The process model implies scaling horizontally (adding more processes) to handle increased load, which aligns with cloud-native scaling.
Incorrect! Try again.
38What is the primary role of an API Gateway in cloud-native architecture?
A.To store the application data
B.To replace the database
C.To act as a single entry point for clients, routing requests to appropriate microservices
D.To generate frontend UI code
Correct Answer: To act as a single entry point for clients, routing requests to appropriate microservices
Explanation:
An API Gateway aggregates backend services, handles routing, authentication, and rate limiting, presenting a unified interface to the client.
Incorrect! Try again.
39Which of the following describes 'Immutable Infrastructure'?
A.Infrastructure that cannot be deleted
B.Hardware that is physically secured
C.Servers are never modified after deployment; they are replaced with new ones
D.Servers are patched and updated in place
Correct Answer: Servers are never modified after deployment; they are replaced with new ones
Explanation:
Immutable infrastructure prevents configuration drift. Instead of updating a server, you build a new image and replace the old server.
Incorrect! Try again.
40In the context of Amazon's case study, what is the 'Service Interface' mandate?
A.Teams must communicate via email
B.All data and functionality must be exposed through service interfaces (APIs)
C.Teams share database schemas directly
D.Only C++ can be used
Correct Answer: All data and functionality must be exposed through service interfaces (APIs)
Explanation:
Jeff Bezos issued a mandate that all teams must expose their data and functionality through service interfaces, prohibiting direct linking or shared databases.
Incorrect! Try again.
41What is the 'Codebase' factor rule?
A.Multiple codebases for one app
B.One codebase tracked in revision control, many deploys
C.No revision control needed
D.Copy-pasting code between apps
Correct Answer: One codebase tracked in revision control, many deploys
Explanation:
A 12-factor app is always tracked in a version control system (like Git). There is a one-to-one correlation between the codebase and the app.
Incorrect! Try again.
42Which balancing algorithm sends requests sequentially to servers in a list?
A.Round Robin
B.Least Connections
C.IP Hash
D.Weighted Response Time
Correct Answer: Round Robin
Explanation:
Round Robin directs traffic to the first server, then the second, and so on, circling back to the beginning.
Incorrect! Try again.
43What is a disadvantage of Serverless architecture?
A.Vendor Lock-in
B.High maintenance of OS
C.Paying for idle time
D.Complexity of manual scaling
Correct Answer: Vendor Lock-in
Explanation:
Because serverless relies heavily on proprietary cloud provider features (AWS Lambda, Azure Functions), moving to another provider can be difficult.
CQRS separates the models for reading and writing data, allowing them to scale independently and be optimized separately.
Incorrect! Try again.
45How did Uber handle the transition from a monolithic architecture?
A.They outsourced development
B.They rewrote the whole app in one night
C.They broke the monolith into microservices based on business domains (e.g., passenger management, billing)
D.They stayed with the monolith
Correct Answer: They broke the monolith into microservices based on business domains (e.g., passenger management, billing)
Explanation:
Uber transitioned by decomposing their monolithic codebase into domain-driven microservices to handle their massive scale.
Incorrect! Try again.
46Which mechanism ensures a service instance is actually capable of handling requests before the Load Balancer sends traffic?
A.Health Checks
B.Static routing
C.DNS lookup
D.Random selection
Correct Answer: Health Checks
Explanation:
Load balancers perform health checks (pings) to ensure a backend server is up and running before routing traffic to it.
Incorrect! Try again.
47What does 'Elasticity' refer to in cloud computing?
A.The ability of the hardware to bend
B.The speed of the network cables
C.The ability to rapidly provision and de-provision resources based on demand
D.The long-term storage capacity
Correct Answer: The ability to rapidly provision and de-provision resources based on demand
Explanation:
Elasticity allows a system to grow and shrink resources automatically in real-time to match workload demand.
Incorrect! Try again.
48What is the relationship between Microservices and Containers?
A.Containers are a popular packaging technology for deploying microservices
B.Microservices must run on bare metal, not containers
C.They are the same thing
D.Containers prevent microservices from communicating
Correct Answer: Containers are a popular packaging technology for deploying microservices
Explanation:
While they are different concepts, containers (like Docker) provide the ideal isolation and portability required for deploying microservices.
Incorrect! Try again.
49A 'Circuit Breaker' enters the 'Open' state when:
A.The service is healthy
B.A user logs in
C.The failure threshold is reached
D.The service is starting up
Correct Answer: The failure threshold is reached
Explanation:
When failures exceed a certain threshold, the circuit breaker 'opens' to stop requests from reaching the failing service, allowing it time to recover.
Incorrect! Try again.
50Which of the following best describes the 'Simian Army' used by Netflix?
A.A suite of automated tools to test system reliability by inducing failures
B.A video compression algorithm
C.A team of security guards
D.A customer support team
Correct Answer: A suite of automated tools to test system reliability by inducing failures
Explanation:
The Simian Army (including Chaos Monkey) helps Netflix test their cloud infrastructure's reliability by intentionally causing various types of failures.
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 →