Which Git command is used to view the branches that have been merged into the current branch?

  • git branch
  • git branch --merged
  • git log
  • git merge
The git branch --merged command is used to view the branches that have been merged into the current branch. It helps identify which branches are safe to delete after merging.

In Google Cloud Platform, what service is used for big data analytics?

  • BigQuery
  • Cloud Storage
  • Datastore
  • Pub/Sub
BigQuery is the Google Cloud Platform service specifically designed for big data analytics. It enables super-fast SQL queries using the processing power of Google's infrastructure, making it suitable for analyzing large datasets.

What feature of collaboration tools allows multiple developers to work on the same codebase simultaneously without interfering with each other's changes?

  • Version Control
  • Code Dependency
  • Code Synchronization
  • Collaboration Sync
The correct option is Version Control. Version control systems, such as Git, enable multiple developers to work on the same codebase concurrently by managing changes, merging edits, and maintaining a version history. This ensures seamless collaboration without conflicts.

In Gitflow, the _______ branch is created from the master branch for emergency fixes.

  • develop
  • feature
  • hotfix
  • release
In Gitflow, the hotfix branch is created from the master branch for emergency fixes. Hotfixes are used to address critical issues in the production environment directly.

In a distributed database system, what challenges might arise in terms of consistency, and how would you address them?

  • Consistency models
  • Distributed transactions
  • Eventual consistency
  • Strong consistency
Challenges in consistency in distributed systems can be addressed through techniques like distributed transactions, ensuring data consistency across multiple nodes.

In RESTful APIs, _______ is a mechanism used to control access to resources.

  • Authentication
  • Authorization
  • Decryption
  • Encryption
In RESTful APIs, Authorization is a mechanism used to control access to resources. It determines whether the authenticated user has the necessary permissions to perform a particular action on a resource.

A stored procedure is _______ in a relational database, which can be executed by invoking its name.

  • a precompiled collection of one or more SQL statements
  • a temporary table
  • a trigger
  • an index
A stored procedure in a relational database is a precompiled collection of one or more SQL statements. It is stored as a database object and can be executed by invoking its name.

Imagine a scenario where two users are trying to update the same record in a database concurrently. Describe the potential issues that may arise and propose a concurrency control strategy to address them.

  • Issues: Deadlocks, Race Conditions
  • Issues: Lost Updates, Inconsistent Data
  • Strategy: Apply Pessimistic Locking
  • Strategy: Use Timestamps for Versioning
Concurrent updates on the same database record may lead to issues such as lost updates and inconsistent data. Using timestamps for versioning is a strategy to address this, allowing the system to track and compare versions to ensure updates occur in a controlled and consistent manner, reducing conflicts.

In SQL, the ALTER TABLE command is used to _______ an existing database table.

  • Add
  • Delete
  • Modify
  • Update
The ALTER TABLE command in SQL is used to modify an existing database table. It allows you to add, delete, or modify columns and constraints of a table.

NoSQL databases are often used in scenarios where _______.

  • ACID compliance is required
  • Data is highly structured
  • Scalability and high-performance are crucial
  • Schema is predefined
NoSQL databases are often used in scenarios where scalability and high-performance are crucial. They excel in handling large volumes of unstructured or semi-structured data with a focus on horizontal scaling.