Unit 5: Cloud-Native Development - Practice Quiz

INT363 — Cloud Microservices 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What 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 build applications that run only on local servers
D. To increase the coupling between services

2 In the context of microservices, what does 'Loosely Coupled' mean?

A. Services can be deployed and updated independently without affecting others
B. Services are physically connected via cables
C. Services share a single database and memory space
D. Services must always be written in the same programming language

3 Which component is primarily responsible for keeping track of the network locations of service instances?

A. Load Balancer
B. API Gateway
C. Service Discovery
D. Circuit Breaker

4 What is the main function of a Load Balancer in a cloud-native environment?

A. To distribute incoming network traffic across multiple servers
B. To compile code
C. To discovery service registry locations
D. To store session data permanently

5 What is 'Horizontal Scaling' (Scaling Out)?

A. Adding more instances of machines/services to the resource pool
B. Replacing the hard drive with an SSD
C. Reducing the number of servers to save money
D. Adding more power (CPU, RAM) to an existing machine

6 According to the CAP theorem, which two guarantees are often chosen in distributed cloud microservices favoring high availability?

A. Consistency and Partition Tolerance
B. Availability and Partition Tolerance
C. Availability and Latency
D. Consistency and Availability

7 Which of the following is NOT one of the Twelve-Factor App methodologies?

A. Disposability
B. Sticky Sessions
C. Codebase
D. Port Binding

8 In the Twelve-Factor App methodology, how should configuration be managed?

A. Hardcoded in the source code
B. Kept in a text file committed to the repo
C. Stored in the environment variables
D. Stored in a separate database table only

9 What is 'Serverless' architecture?

A. An architecture dependent on dedicated physical servers
B. A model where the cloud provider manages the allocation of machine resources dynamically
C. A system that runs entirely on the client's browser
D. An architecture where no servers exist at all

10 Which Netflix tool is famous for randomly terminating instances in production to ensure system resilience?

A. Hystrix
B. Eureka
C. Chaos Monkey
D. Zuul

11 Which pattern involves a database per service rather than a shared database?

A. Database per Service
B. Shared Repository
C. Data Warehouse
D. Monolithic Database Pattern

12 In 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

13 What is 'Client-Side Discovery'?

A. The client connects to a Load Balancer which then routes the traffic
B. The client hardcodes the IP address of the server
C. The client broadcasts a message to the entire network
D. The client queries the Service Registry to get the location of a service instance

14 Which of the following describes 'Vertical Scaling'?

A. Distributing the database across regions
B. Adding more CPU or RAM to an existing single server
C. Adding more machines to the cluster
D. Using a Content Delivery Network

15 What does the 'Disposability' factor in the Twelve-Factor App methodology emphasize?

A. Using temporary databases only
B. Fast startup and graceful shutdown
C. Code should be thrown away after use
D. Deleting logs immediately

16 Amazon's 'Two-Pizza Team' rule is related to which aspect of microservices?

A. API Rate Limiting
B. Load Balancing
C. Organizational Structure and Team Size
D. Database Sharding

17 What 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. The initial configuration of a cloud account
D. Booting up a computer in a cold server room

18 How does Uber manage the complexity of thousands of microservices?

A. Using a single shared database
B. Manually configuring IP addresses
C. Using a service mesh and rigorous RPC standards
D. By reverting to a monolith

19 In the Twelve-Factor App, how should 'Dependencies' be handled?

A. They should be ignored
B. They should be copied manually into the folder
C. They should be explicitly declared and isolated
D. They should be implicitly relied upon based on the OS

20 What is the 'Backing Services' factor in the Twelve-Factor App?

A. Services that are hardcoded into the application logic
B. Treating backing services (databases, queues) as attached resources
C. Services that back up data to tape drives
D. Running background services on the client machine

21 Which technology is most commonly associated with container orchestration in cloud-native development?

A. VMware
B. VirtualBox
C. Apache Tomcat
D. Kubernetes

22 What does 'Polyglot Persistence' mean in the context of Data Management?

A. Using different data storage technologies to handle different data storage needs
B. Persisting data only in English
C. Writing data in multiple languages
D. Using a single database for all data types

23 The 'Build, Release, Run' factor dictates that:

A. Build, release, and run stages must be strictly separated
B. You can change code directly in the running stage
C. Releases should not have unique IDs
D. Building and running happen simultaneously

24 What is the primary benefit of Autoscaling?

A. It reduces the storage size of the database
B. It ensures resources match the current demand automatically to optimize cost and performance
C. It guarantees code quality
D. It automatically writes unit tests

25 In cloud-native apps, logs should be treated as:

A. Event streams
B. Text files stored on the local hard drive
C. Database tables
D. Emails sent to the admin

26 Which consistency model is most common in cross-microservice operations?

A. Strong Consistency
B. Eventual Consistency
C. Immediate Consistency
D. ACID Consistency

27 Netflix Hystrix is an implementation of which pattern?

A. Factory Pattern
B. Observer Pattern
C. Circuit Breaker Pattern
D. Singleton Pattern

28 What 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. Production servers should be used for Development
D. Developers should have access to Production data

29 Which of the following is a key characteristic of Serverless architectures (FaaS)?

A. Long-running stateful processes
B. Stateless, ephemeral functions
C. Fixed monthly cost regardless of usage
D. Manual OS patching

30 What is the 'Port Binding' factor?

A. The app is completely self-contained and exports a service via port binding
B. Services should rely on a separate web server container (like Tomcat) injected at runtime
C. Hardcoding ports in the code
D. Using only port 80 for all services

31 How do cloud-native applications typically handle 'Admin Processes'?

A. They are embedded in the main request loop
B. They are handled manually by editing the database
C. They run as one-off processes
D. They are strictly forbidden

32 In a Serverless environment, what usually triggers a function execution?

A. Events (HTTP request, database change, file upload)
B. A continuous loop in the code
C. A manual start button
D. The server booting up

33 Which distributed data pattern manages transactions that span multiple microservices?

A. Single Transaction Script
B. Saga Pattern
C. Shared Database
D. Two-Phase Commit (2PC)

34 What challenge did Netflix face that led to the creation of Eureka?

A. They needed a new video compression algorithm
B. They needed to know the physical location of every server
C. They needed a way for services to locate each other dynamically in AWS
D. They ran out of hard drive space

35 What is a 'Sidecar' pattern in cloud-native development?

A. A backup server
B. Deploying a helper process alongside the main application container
C. A method of pair programming
D. A secondary database

36 According to the 'Processes' factor of the 12-Factor App, applications should be:

A. Stateless and share-nothing
B. Stateful
C. Run as a single monolithic process
D. Dependent on sticky sessions

37 Why is 'Concurrency' managed via the process model in 12-Factor Apps?

A. To save battery life
B. To prevent multiple users from logging in
C. To use threads exclusively
D. To scale out by adding more process instances rather than making one process larger

38 What is the primary role of an API Gateway in cloud-native architecture?

A. To generate frontend UI code
B. To act as a single entry point for clients, routing requests to appropriate microservices
C. To replace the database
D. To store the application data

39 Which of the following describes 'Immutable Infrastructure'?

A. Servers are patched and updated in place
B. Hardware that is physically secured
C. Servers are never modified after deployment; they are replaced with new ones
D. Infrastructure that cannot be deleted

40 In the context of Amazon's case study, what is the 'Service Interface' mandate?

A. Teams share database schemas directly
B. All data and functionality must be exposed through service interfaces (APIs)
C. Teams must communicate via email
D. Only C++ can be used

41 What is the 'Codebase' factor rule?

A. No revision control needed
B. One codebase tracked in revision control, many deploys
C. Multiple codebases for one app
D. Copy-pasting code between apps

42 Which balancing algorithm sends requests sequentially to servers in a list?

A. IP Hash
B. Round Robin
C. Weighted Response Time
D. Least Connections

43 What is a disadvantage of Serverless architecture?

A. Vendor Lock-in
B. Paying for idle time
C. High maintenance of OS
D. Complexity of manual scaling

44 In Data Management, what is the 'CQRS' pattern?

A. Centralized Query Remote System
B. Code Quality Review Standard
C. Command Query Responsibility Segregation
D. Common Query Resource Sharing

45 How did Uber handle the transition from a monolithic architecture?

A. They outsourced development
B. They rewrote the whole app in one night
C. They stayed with the monolith
D. They broke the monolith into microservices based on business domains (e.g., passenger management, billing)

46 Which mechanism ensures a service instance is actually capable of handling requests before the Load Balancer sends traffic?

A. Health Checks
B. DNS lookup
C. Static routing
D. Random selection

47 What 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

48 What is the relationship between Microservices and Containers?

A. Containers prevent microservices from communicating
B. Containers are a popular packaging technology for deploying microservices
C. They are the same thing
D. Microservices must run on bare metal, not containers

49 A 'Circuit Breaker' enters the 'Open' state when:

A. A user logs in
B. The failure threshold is reached
C. The service is starting up
D. The service is healthy

50 Which of the following best describes the 'Simian Army' used by Netflix?

A. A team of security guards
B. A suite of automated tools to test system reliability by inducing failures
C. A customer support team
D. A video compression algorithm