The _______ command is used to view the commit history in Git.

  • git branch
  • git diff
  • git log
  • git status
The git log command is used to view the commit history in Git. It displays a chronological list of commits, showing details such as commit messages, author, date, and commit SHA.

What is idempotency in the context of Infrastructure as Code?

  • A strategy for load balancing in cloud environments
  • Ensures that applying the same configuration multiple times produces the same result as applying it once
  • Refers to the speed at which infrastructure changes are deployed
  • The ability to scale infrastructure horizontally
Idempotency ensures that applying the same configuration multiple times produces the same result as applying it once. In Infrastructure as Code (IaC), this is crucial to maintaining consistency and avoiding unintended consequences.

What does the HTML
element represent?

  • Defines a division or a section in an HTML document
  • Defines a link
  • Defines a table
  • Defines an image
The

element in HTML represents a division or a section in an HTML document. It is a block-level container that can be used to group content for styling purposes or to create layout structures.

The _______ pattern is commonly used for centralized log aggregation in cloud-native environments.

  • Adapter
  • Facade
  • Observer
  • Sidecar
The Sidecar pattern is commonly used for centralized log aggregation in cloud-native environments. In this pattern, a separate process or container (the sidecar) is responsible for collecting and forwarding logs, allowing for better scalability and independence of logging concerns.

The process of automatically deploying changes to a staging environment for testing is known as Continuous _______.

  • Delivery
  • Deployment
  • Integration
  • Testing
The process of automatically deploying changes to a staging environment for testing is known as Continuous Deployment. It ensures that the changes are thoroughly tested in a controlled environment before being released to production.

The "P" in ACID stands for _______.

  • Persistence
  • Processing
  • Properties
  • Protection
In ACID (Atomicity, Consistency, Isolation, Durability), the "P" stands for Persistence. It ensures that once a transaction is committed, its effects are permanent and survive subsequent system failures.

What is memoization and how is it used for optimizing function performance in JavaScript?

  • A design pattern for creating dynamic web components
  • A method for encrypting sensitive data in JavaScript
  • A technique to cache and reuse the results of expensive function calls
  • An approach to asynchronous programming in JavaScript
Memoization is a technique in JavaScript used to cache and reuse the results of expensive function calls. By storing the results of expensive function calls and returning the cached result when the same inputs occur again, it helps optimize overall function performance.

The CSS margin property controls the _______ of an element.

  • Alignment
  • Padding
  • Spacing
  • Width
The CSS margin property controls the spacing of an element. It defines the space outside the element's border, providing separation from other elements.

You're designing a new database system for a social media platform that requires high availability and scalability. Would you choose SQL or NoSQL, and why?

  • Both SQL and NoSQL
  • It depends on the specific requirements
  • NoSQL
  • SQL
For a social media platform with high availability and scalability needs, NoSQL databases are often preferred. They offer horizontal scalability and flexibility in handling diverse data types commonly found in social media applications.

How does containerization help in the deployment process?

  • All of the above
  • Consistency
  • Isolation
  • Portability
Containerization helps in the deployment process by ensuring consistency across different environments, providing isolation for applications, and offering portability, allowing containers to run consistently across various systems.