One common technique for dealing with errors in distributed systems is _______.

  • Backtracking
  • Circuit Breaker
  • Idempotent Operations
  • Replication
In distributed systems, a common technique for dealing with errors is the use of Circuit Breakers. A circuit breaker helps in detecting and preventing further errors by temporarily interrupting the normal flow of operations.

What does AWS stand for?

  • Advanced Web Services
  • Agile Web Services
  • Amazon Web Services
  • Application Web Services
AWS stands for Amazon Web Services. It is a comprehensive and widely used cloud computing platform provided by Amazon. Amazon Web Services offers a variety of services, including computing power, storage, and databases, among others.

The GROUP BY clause is used to _______ data in a result set based on specified columns.

  • Filter
  • Group
  • Join
  • Sort
The GROUP BY clause in SQL is used to group data in a result set based on specified columns. It is often used with aggregate functions to perform operations on grouped data.

What distinguishes NoSQL databases from traditional relational databases?

  • Only suitable for small datasets
  • Schema flexibility
  • Strict schema enforcement
  • Use of SQL language
NoSQL databases offer schema flexibility, allowing for dynamic and varied data structures, unlike traditional relational databases that enforce a rigid schema.

What is the purpose of a database schema in database design?

  • Defining the Database Structure
  • Managing Database Security
  • Querying the Database
  • Storing Data Records
The purpose of a database schema in database design is to define the structure of the database, including tables, fields, relationships, and constraints. It provides a blueprint for organizing and understanding the database.

In TDD, what does the term "mocking" refer to?

  • Creating a fake user interface for testing purposes.
  • Generating random test data to evaluate system robustness.
  • Intentionally introducing defects to assess error-handling capabilities.
  • Simulating the behavior of objects or systems that the tested code interacts with, enabling isolated unit testing.
In TDD, "mocking" involves simulating the behavior of objects or systems that the tested code interacts with. This allows for isolated unit testing, ensuring that the focus is on the specific code being tested rather than external dependencies.

Which NoSQL database is designed for high availability and partition tolerance?

  • Apache Cassandra
  • CouchDB
  • MongoDB
  • Redis
Apache Cassandra is designed for high availability and partition tolerance, making it suitable for distributed and fault-tolerant systems. It follows the principles of the CAP theorem.

You're designing a responsive website. Which CSS technique would you use to ensure the layout adjusts according to the screen size?

  • Flexbox
  • Floats
  • Grid Layout
  • Media Queries
Media Queries are used in CSS to apply different styles based on the characteristics of the device or screen. It's a key technique in creating responsive designs.

What is a merge conflict in version control systems like Git?

  • A conflict that arises when merging branches with conflicting changes
  • A conflict that occurs during code review
  • A situation where branches are automatically merged without issues
  • A smooth integration of code changes
A merge conflict in Git happens when there are conflicting changes in the branches being merged. This occurs when changes in one branch cannot be automatically merged with the changes in another branch, requiring manual resolution.

What is the difference between "git merge" and "git rebase"?

  • Both commands have the same effect
  • Merging preserves the commit history, while rebasing rewrites it
  • Merging rewrites the commit history, while rebasing preserves it
  • None of the above
The key difference is that "git merge" preserves the commit history by creating a new merge commit, while "git rebase" rewrites the commit history by applying the changes of one branch onto another. Rebase creates a linear, cleaner history but should be used with caution in shared branches.