In cloud security, what is the principle of least privilege?
AGrant users only minimum permissions necessary to perform tasks
BGive all users administrator access for efficiency
CDisable security features for better performance
DUse the weakest encryption available
Correct Answer:
A. Grant users only minimum permissions necessary to perform tasks
EXPLANATION
Least privilege minimizes security risk by restricting access. Users get only permissions needed for their role, reducing damage from compromised accounts.
What is the purpose of connection pooling in database management?
AReuse database connections to reduce overhead and improve performance
BEncrypt all database communications
CBackup database at regular intervals
DMonitor database queries in real-time
Correct Answer:
A. Reuse database connections to reduce overhead and improve performance
EXPLANATION
Connection pooling maintains a pool of reusable connections, reducing the cost of opening/closing connections repeatedly. This significantly improves application performance.
Which of the following best describes microservices architecture?
ABreaking applications into small, independently deployable services
BRunning entire application as single monolith
CStoring all data in one centralized database
DUsing multiple programming languages is forbidden
Correct Answer:
A. Breaking applications into small, independently deployable services
EXPLANATION
Microservices decompose applications into loosely-coupled, independently deployable services. This enables scalability, flexibility, and technology diversity.
In AI/ML, what does a neural network's activation function do?
AIntroduce non-linearity to enable learning complex patterns
BNormalize input data
CCalculate loss function
DPerform data augmentation
Correct Answer:
A. Introduce non-linearity to enable learning complex patterns
EXPLANATION
Activation functions (ReLU, Sigmoid, Tanh) add non-linearity, allowing neural networks to learn non-linear relationships. Without them, networks become linear classifiers.
ADistribute data across multiple servers to improve scalability
BCreate backups of databases
CEncrypt sensitive data
DPerform real-time analytics
Correct Answer:
A. Distribute data across multiple servers to improve scalability
EXPLANATION
Sharding partitions data based on a key (e.g., user ID) across servers. This horizontal scaling improves performance and handles large datasets efficiently.
What is the primary purpose of database replication in distributed systems?
AImprove availability and fault tolerance
BIncrease query processing speed only
CReduce storage costs
DEliminate the need for backups
Correct Answer:
A. Improve availability and fault tolerance
EXPLANATION
Replication maintains copies across nodes for high availability, disaster recovery, and load distribution. It doesn't eliminate backups—they serve different purposes.