In TDD, a test double that replaces a component or system that the test subject depends on is called a _______.

  • Fake
  • Mock
  • Spy
  • Stub
In Test-Driven Development (TDD), a test double that replaces a component or system is called a Mock. Mock objects simulate the behavior of real objects in a controlled way during testing. They help isolate the unit under test.

What is the difference between inline-block and block display properties in CSS?

  • Inline elements flow in a line, and only take as much width as necessary. Block elements start on a new line and take the full width available.
  • Inline-block elements combine the features of both inline and block elements. They flow in a line and can have a width set.
  • Block elements are used for inline-level content, while inline-block elements are used for block-level content.
  • Inline elements are used for block-level content, while block elements are used for inline-level content.
The correct option explains that inline-block elements combine features of both inline and block elements, allowing them to flow in a line and have a set width.

In Docker, a _______ is a lightweight, standalone, executable package that includes everything needed to run a piece of software, including the code, runtime, libraries, environment variables, and configuration files.

  • Container
  • Image
  • Repository
  • Virtual Machine
In Docker, an "Image" is a lightweight, standalone, executable package that includes all the necessary components to run a piece of software. It serves as a blueprint for creating containers.

What does the HTML
element represent?

  • Data
  • Description
  • Division
  • Document
The

element in HTML represents a division or a section in an HTML document. It is a block-level container that is used to group related elements together and style them with CSS.

In backup strategies, what does the term "recovery point objective (RPO)" refer to?

  • Data transfer speed
  • Frequency of backups
  • Maximum data loss acceptable
  • Time taken to restore data
The "Recovery Point Objective (RPO)" in backup strategies refers to the maximum acceptable amount of data loss that an organization is willing to tolerate. It defines the point in time to which data must be recovered after an outage or loss.

Using strong _______ is important for securing user passwords.

  • Authentication
  • Encryption
  • Firewall
  • Hashing
Using strong hashing is important for securing user passwords. Hashing involves converting passwords into a fixed-length string of characters, making it challenging for attackers to reverse the process and obtain the original password.

What is the purpose of the "git merge" command?

  • Combine changes from different branches
  • Create a new branch
  • Delete a branch
  • Rename a branch
The "git merge" command in Git is used to combine changes from different branches. It integrates changes from the specified branch into the current branch, enabling collaboration and code integration in a Git repository.

How does containerization help in the deployment process?

  • Containerization allows applications to be deployed without any dependencies.
  • Containerization ensures that applications run consistently across various environments.
  • Containerization reduces the size of the application, leading to faster deployment times.
  • Containerization simplifies the process of deploying applications by encapsulating them along with their dependencies.
Containerization simplifies the deployment process by encapsulating applications along with their dependencies, libraries, and runtime environments into containers. These containers are lightweight and portable, ensuring that applications run consistently across different environments, from development to production. This eliminates issues related to compatibility and dependency conflicts, streamlining the deployment process.

In a distributed microservices architecture, how would you ensure effective error tracking and monitoring across services?

  • Ignoring errors in microservices
  • Implementing a centralized logging system
  • Relying solely on individual service logs
  • Using different log formats for each service
Implementing a centralized logging system is essential for effective error tracking in a microservices architecture. It allows for centralized monitoring, analysis, and troubleshooting across all services.

The use of appropriate _______ can significantly impact query optimization.

  • Aggregation
  • Indexing
  • Joining
  • Partitioning
The use of appropriate indexing can significantly impact query optimization. Indexing involves creating data structures to quickly locate and access the rows that satisfy the conditions in the query, leading to faster retrieval of data.

The _______ branch in Gitflow is used for preparing a new release of the software.

  • develop
  • feature
  • hotfix
  • release
The release branch in Gitflow is used for preparing a new release of the software. It allows for final testing, version bumping, and preparing the codebase for a stable release.

What does the title attribute do in HTML?

  • Adds a tooltip to an element
  • Defines the title of a web page
  • Provides additional information about an element
  • Specifies the alignment of the content within a table cell
The title attribute in HTML is used to define the title of a web page. It is typically displayed in the browser's title bar or tab.